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. """ import_util.AddBaseImportFlags(parser) flags.AddDatabase( parser, 'The database (for example, guestbook) to which the import is made.', required=True) parser.add_argument('--table', required=True, help='The database table to import csv file into.') parser.add_argument( '--columns', required=False, type=arg_parsers.ArgList(min_length=1), metavar='COLUMNS', help= 'The columns to import from csv file. These correspond to actual ' 'database columns to import. If not set, all columns from csv file ' 'are imported to corresponding database columns.')
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. """ import_util.AddBaseImportFlags(parser, filetype='MySQL dump') flags.AddDatabase(parser, flags.DEFAULT_DATABASE_IMPORT_HELP_TEXT)
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. """ import_util.AddBaseImportFlags( parser, filetype='BAK file', gz_supported=False, user_supported=False) flags.AddDatabase( parser, flags.SQLSERVER_DATABASE_IMPORT_HELP_TEXT, required=True) flags.AddEncryptedBakFlags(parser)
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. """ import_util.AddBaseImportFlags(parser, filetype='MySQL dump') flags.AddDatabase( parser, 'Database (for example, guestbook) to which the import is' ' made. If not set, it is assumed that the database is specified in' ' the file to be imported.')
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. """ import_util.AddBaseImportFlags(parser, filetype='MySQL dump') flags.AddDatabase( parser, 'Database to which the import is made. If not set, it is assumed that ' 'the database is specified in the file to be imported. If your SQL ' 'dump file includes a database statement, it will override the ' 'database set in this flag.')