NAME

thin-generate-schema.pl - Generate model class of DBIx::Thin

SYNOPSIS

thin-generate-schema.pl [options] TABLE_NAME MODULE_NAME

Description:
   Generate a model class of DBIx::Thin

Options:
   -c, --config        Configuration file
   -d, --dsn           Connection datasource
   -u, --username      Username
   -p, --password      Password
   -k, --primary-key   Primary key field
   -u, --utf8          enable utf8 flag on DBIx::Thin
   -h, --help          Print this message and exit

Example:
  $ thin-generate-schema.pl --config=config.pl user Your::Model::User

CONFIGRATION FILE

You can specify a configuration file to hide connection info (dsn, username, password) from your command line. configuration file is just perl code and here is an example:

return {
    dsn => 'DBI:mysql:database=your_project',
    username => 'root',
    password => '',
};