SchemaDartRunner constructor

SchemaDartRunner()

Implementation

SchemaDartRunner() : super('schema-dart', '') {
  argParser.addOption(
    'connection-string',
    abbr: 'c',
    // mandatory: true,
    help: 'PostgreSQL connection string in the following format:\n'
        'postgresql://<username>:<password>@<host>:<port>/<database-name>',
  );

  argParser.addOption(
    'output-dir',
    abbr: 'o',
    // mandatory: true,
    help: 'The output directory for the generated dart files',
  );

  argParser.addOption(
    'schema',
    abbr: 's',
    defaultsTo: 'public',
    help: 'specify the schema',
  );

  argParser.addMultiOption(
    'tables',
    abbr: 't',
    valueHelp: 'String',
    help: 'provide a specific list of tables to generate data classes for.\n'
        '(defaults to all tables)',
  );

  argParser.addFlag(
    'verbose',
    abbr: 'v',
    negatable: false,
    help: 'Enable verbose logging.',
  );

  argParser.addFlag(
    'version',
    negatable: false,
    help: 'Print the current version.',
  );
}