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

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to