From: Peter Rabbitson Date: Thu, 30 Oct 2008 15:26:36 +0000 (+0000) Subject: Fix some lapses in Storage::DBI pod X-Git-Tag: v0.08240~287 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=34f1f658469243459d9b267d086d0d0215242cb7;p=dbsrgits%2FDBIx-Class.git Fix some lapses in Storage::DBI pod --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index e6586c2..978a12e 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -359,11 +359,11 @@ The same 4-element argument set one would normally pass to L, optionally followed by L recognized by DBIx::Class: - $connect_info_args = [ $dsn, $user, $pass, \%dbi_attributes, \%extra_attributes ]; + $connect_info_args = [ $dsn, $user, $password, \%dbi_attributes, \%extra_attributes ]; =item * -A lone code reference which returns a connected L +A single code reference which returns a connected L optinally followed by L recognized by DBIx::Class: @@ -371,12 +371,12 @@ recognized by DBIx::Class: =item * -A lone hashref with all the attributes and the dsn/user/pass mixed together: +A single hashref with all the attributes and the dsn/user/password mixed together: $connect_info_args = [{ dsn => $dsn, user => $user, - pass => $pass, + password => $pass, %dbi_attributes, %extra_attributes, }]; @@ -497,6 +497,11 @@ If this option is true, L will use savepoints when nesting transactions, making it possible to recover from failure in the inner transaction without having to abort all outer transactions. +=item cursor_class + +Use this argument to supply a cursor class other than the default +L. + =back Some real-life examples of arguments to L and L @@ -581,7 +586,7 @@ sub connect_info { unshift @args, delete $attrs{$_}; } } - else { # otherwise assume dsn/user/pass + \%attrs + \%extra_attrs + else { # otherwise assume dsn/user/password + \%attrs + \%extra_attrs %attrs = ( % { $args[3] || {} }, % { $args[4] || {} },