(
['Actions'],
["action" => hidden => { one_of => [
- ['create' => 'Create version diffs needs preversion',],
+ ['create' => 'Create version diffs needs preversion'],
['upgrade' => 'Upgrade the database to the current schema '],
- ['install' => 'Install the schema version tables to an existing database',],
- ['deploy' => 'Deploy the schema to the database',],
- ['select' => 'Select data from the schema', ],
- ['insert' => 'Insert data into the schema', ],
- ['update' => 'Update data in the schema', ],
- ['delete' => 'Delete data from the schema',],
+ ['install' => 'Install the schema version tables to an existing database'],
+ ['deploy' => 'Deploy the schema to the database'],
+ ['select' => 'Select data from the schema'],
+ ['insert' => 'Insert data into the schema'],
+ ['update' => 'Update data in the schema'],
+ ['delete' => 'Delete data from the schema'],
['op:s' => 'compatiblity option all of the above can be suppied as --op=<action>'],
['help' => 'display this help', { implies => { schema_class => '__dummy__' } } ],
['selfinject-pod' => 'hidden', { implies => { schema_class => '__dummy__' } } ],
['config-file|config:s' => 'Supply the config file for parsing by Config::Any', { depends => 'config_stanza'} ],
['connect-info:s%' => 'Supply the connect info as trailing options e.g. --connect-info dsn=<dsn> user=<user> password=<pass>' ],
['connect:s' => 'Supply the connect info as a JSON-encoded structure, e.g. an --connect=["dsn","user","pass"]'],
- ], required => 1 }],
+ ] }],
['schema-class:s' => 'The class of the schema to load', { required => 1 } ],
['config-stanza:s' => 'Where in the config to find the connection_info, supply in form MyApp::Model::DB',],
['resultset|resultset-class|class:s' => 'The resultset to operate on for data manipulation' ],