Ejemplo n.º 1
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go on
        the command line after this command. Positional arguments are allowed.
    """
        export_util.AddBaseExportFlags(
            parser,
            gz_supported=False,
            database_required=True,
            database_help_text=flags.SQLSERVER_DATABASE_LIST_EXPORT_HELP_TEXT)
Ejemplo n.º 2
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        export_util.AddBaseExportFlags(parser)
        parser.add_argument(
            '--query',
            required=True,
            help='A SQL SELECT query (e.g., SELECT * FROM table) that specifies '
            'the data to export.')
Ejemplo n.º 3
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        export_util.AddBaseExportFlags(parser)
        parser.add_argument(
            '--table',
            '-t',
            type=arg_parsers.ArgList(min_length=1),
            metavar='TABLE',
            required=False,
            help='Tables to export from the specified database. If you specify '
            'tables, specify one and only one database.')