[Dbix-class] [PATCH] Intro.pod
Terrence Brannon
schemelab at gmail.com
Thu Aug 6 14:07:19 GMT 2009
Index: Intro.pod
===================================================================
--- Intro.pod (revision 7239)
+++ Intro.pod (working copy)
@@ -200,7 +200,11 @@
=head2 Connecting
-To connect to your Schema, you need to provide the connection details. The
+To connect to your Schema, you need to provide the connection details
or a database handle.
+
+=head3 Via connection details
+
+The
arguments are the same as for L<DBI/connect>:
my $schema = My::Schema->connect('dbi:SQLite:/home/me/myapp/my.db');
@@ -227,6 +231,14 @@
See L<DBIx::Class::Schema::Storage::DBI/connect_info> for more
information about
this and other special C<connect>-time options.
+=head3 Via database handle
+
+my $dbh = Some::DBH::Factory->connect;
+my $schema = My::Schema->connect
+ (
+ sub { $dbh }, \%attr
+ );
+
=head2 Basic usage
Once you've defined the basic classes, either manually or using
More information about the DBIx-Class
mailing list