[Bast-commits] r7325 -
DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI
rbuels at dev.catalyst.perl.org
rbuels at dev.catalyst.perl.org
Mon Aug 17 21:46:21 GMT 2009
Author: rbuels
Date: 2009-08-17 21:46:21 +0000 (Mon, 17 Aug 2009)
New Revision: 7325
Modified:
DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm
Log:
added POD section about schema support to DBIx::Class::Storage::Pg
Modified: DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm
===================================================================
--- DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm 2009-08-17 18:29:40 UTC (rev 7324)
+++ DBIx-Class/0.08/branches/pg_unqualified_schema/lib/DBIx/Class/Storage/DBI/Pg.pm 2009-08-17 21:46:21 UTC (rev 7325)
@@ -166,8 +166,29 @@
This class implements autoincrements for PostgreSQL.
-=head1 AUTHORS
+=head1 POSTGRESQL SCHEMA SUPPORT
+This supports multiple PostgreSQL schemas, with one caveat: for
+performance reasons, the schema search path is queried the first time it is
+needed and CACHED for subsequent uses.
+
+For this reason, you should do any necessary manipulation of the
+PostgreSQL search path BEFORE instantiating your schema object, or as
+part of the on_connect_do option to connect(), for example:
+
+ my $schema = My::Schema->connect
+ ( $dsn,$user,$pass,
+ { on_connect_do =>
+ [ 'SET search_path TO myschema, foo, public' ],
+ },
+ );
+
+=head1 CONTRIBUTORS
+
+Robert Buels <rbuels at cpan.org>
+
+=head1 AUTHOR
+
Marcus Ramberg <m.ramberg at cpan.org>
=head1 LICENSE
More information about the Bast-commits
mailing list