From: Jess Robinson Date: Thu, 12 Mar 2009 20:24:55 +0000 (+0000) Subject: Document how to overload connect/connection X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4c7d99ca4a9aad86839d47ed90e72c227c43feea;p=dbsrgits%2FDBIx-Class-Historic.git Document how to overload connect/connection --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index 2c0b43f..cf7267d 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -483,6 +483,12 @@ Note that C expects an arrayref of arguments, but C does not. C wraps it's arguments in an arrayref before passing them to C. +=head3 Overloading + +C is a convenience method. It is equivalent to calling +$schema->clone->connection(@connectinfo). To write your own overloaded +version, overload L instead. + =cut sub connect { shift->clone->connection(@_) } @@ -760,6 +766,9 @@ Similar to L except sets the storage object and connection data in-place on the Schema class. You should probably be calling L to get a proper Schema object instead. +=head3 Overloading + +Overload C to change the behaviour of C. =cut