X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FIntro.pod;h=cd8b0917a461106299c956835a3d2ca3603a165e;hb=b03f30a3a6e04ff27de81710085f9f0aa95b11f0;hp=8e4b7fdb3b88df561ab41066a8ca0409262536db;hpb=d6988be8c653765a1a5dcf988a2e539029584450;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Manual/Intro.pod b/lib/DBIx/Class/Manual/Intro.pod index 8e4b7fd..cd8b091 100644 --- a/lib/DBIx/Class/Manual/Intro.pod +++ b/lib/DBIx/Class/Manual/Intro.pod @@ -114,6 +114,10 @@ automatic row ordering: __PACKAGE__->load_components(qw/ Ordered /); __PACKAGE__->position_column('rank'); +Ordered will refer to a field called 'position' unless otherwise directed. Here you are defining +the ordering field to be named 'rank'. (NOTE: Insert errors may occur if you use the Ordered +component, but have not defined a position column or have a 'position' field in your row.) + Set the table for your class: __PACKAGE__->table('album'); @@ -225,7 +229,7 @@ second database you want to access: Note that L does not cache connections for you. If you use multiple connections, you need to do this manually. -To execute some sql statements on every connect you can add them as an option in +To execute some SQL statements on every connect you can add them as an option in a special fifth argument to connect: my $another_schema = My::Schema->connect( @@ -236,7 +240,7 @@ a special fifth argument to connect: { on_connect_do => \@on_connect_sql_statments } ); -See L for more information about +See L for more information about this and other special C-time options. =head3 Via a database handle