[Catalyst-commits] r8253 -
trunk/Catalyst-Model-DBIC-Schema/lib/Catalyst/Model/DBIC
zamolxes at dev.catalyst.perl.org
zamolxes at dev.catalyst.perl.org
Fri Aug 22 00:57:36 BST 2008
Author: zamolxes
Date: 2008-08-22 00:57:35 +0100 (Fri, 22 Aug 2008)
New Revision: 8253
Modified:
trunk/Catalyst-Model-DBIC-Schema/lib/Catalyst/Model/DBIC/Schema.pm
Log:
added Config::General examples
Modified: trunk/Catalyst-Model-DBIC-Schema/lib/Catalyst/Model/DBIC/Schema.pm
===================================================================
--- trunk/Catalyst-Model-DBIC-Schema/lib/Catalyst/Model/DBIC/Schema.pm 2008-08-21 23:19:16 UTC (rev 8252)
+++ trunk/Catalyst-Model-DBIC-Schema/lib/Catalyst/Model/DBIC/Schema.pm 2008-08-21 23:57:35 UTC (rev 8253)
@@ -196,6 +196,28 @@
}
],
+Or using L<Config::General>:
+
+ <Model::FilmDB>
+ schema_class MyApp::Schema::FilmDB
+ connect_info dbi:Pg:dbname=mypgdb
+ connect_info postgres
+ connect_info
+ <connect_info>
+ AutoCommit 0
+ on_connect_do some SQL statement
+ on_connect_do another SQL statement
+ </connect_info>
+ </Model::FilmDB>
+
+or
+
+ <Model::FilmDB>
+ schema_class MyApp::Schema::FilmDB
+ connect_info dbi:SQLite:dbname=foo.db
+ </Model::FilmDB>
+
+
=item storage_type
Allows the use of a different C<storage_type> than what is set in your
More information about the Catalyst-commits
mailing list