myapp_create.pl Model Configuration UserConfig [DB_Type] [DB_Args]
This will create a new model-class within a catalyst app. DB_Type may be replaced one of the User::Config::DB. DB_Args depend on them. currently supported are the following types
This will use the default memory backed database interface. This doesn't support any arguments.
This will use DBIx::Class for the storage of the values. The db-args will be the connection-string needed to connect to the database.
myapp_create.pl Model Configuration UserConfig DBIC dbi:SQlite:database.db MyApp::Schema MyResulSet
The order for the arguments is the database-string, the schema-class and the resultset. See User::Config::DB::DBIC
This will use a table in a given database for storing all values in a single keyed table. The synopsis would be eg.
myapp_create.pl Model Configuration UserConfig Keyed dbi:SQlite:database.db tablename
This will use User::Config::DB::Ldap as store. If no argument is given, the ldap-connection needed will be retrieved using
<$c-user->ldap_connection>, so your Authentication::Store must use Ldap. If only one arg is given, this will be interpreted as code to retrieve a bound Net::Ldap object. Otherwise four parameters are needed as following:
myapp_create.pl Model Configuration UserConfig Ldap host rootdn binddn bindpwd
In all cases the default parameter counting can be omitted by inserting '--' and adding explicit pairs of keys and values as used in the initializer.
generates the class
generates tests for the new class
Benjamin Tietz <firstname.lastname@example.org>
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.