X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=deeb5b0156b5e9f54c39bab1d2f0c02cfba86e02;hb=947acfd929fb4d83f467581114228eb0682b41c9;hp=f0d7a7ad120963e9c7908d63dd17ef4e8284df08;hpb=8091aa9182ff763aa607dd82f4d61b99f8adab37;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index f0d7a7a..deeb5b0 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -7,8 +7,24 @@ use vars qw($VERSION); use base qw/DBIx::Class::Componentised Class::Data::Accessor/; sub mk_classdata { shift->mk_classaccessor(@_); } +sub component_base_class { 'DBIx::Class' } -$VERSION = '0.0499_01'; +# Always remember to do all digits for the version even if they're 0 +# i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports +# brain damage and presumably various other packaging systems too + +$VERSION = '0.05003'; + +sub MODIFY_CODE_ATTRIBUTES { + my ($class,$code,@attrs) = @_; + unless ($class->can('_attr_cache')) { + $class->mk_classdata('_attr_cache'); + $class->_attr_cache({}); + } + my $cache = $class->_attr_cache; + $class->_attr_cache->{$code} = [@attrs]; + return (); +} 1; @@ -55,7 +71,7 @@ Some examples where different database connections are useful are: different users with different rights different databases with the same schema. -=head1 Simple +=head2 Simple First you need to create a base class which all other classes will inherit from. See L for information on how to do this. @@ -78,21 +94,27 @@ manual below. =head1 SEE ALSO -=head2 L - DBIC Core Classes +=over 4 + +=item L - DBIC Core Classes + +=item L - User's manual -=head2 L - User's manual +=item L - L Compat layer -=head2 L - L Compat layer +=item L -=head2 L - database-level methods +=item L -=head2 L - table-level methods +=item L -=head2 L - row-level methods +=item L - row-level methods -=head2 L - primary key methods +=item L - primary key methods -=head2 L - relationships between tables +=item L - relationships between tables + +=back =head1 AUTHOR @@ -116,6 +138,28 @@ Marcus Ramberg Paul Makepeace +CL Kao + +Jess Robinson + +Marcus Ramberg + +Will Hawes + +Todd Lipcon + +Daniel Westermann-Clark + +Alexander Hartmaier + +Zbigniew Lukasiak + +Nigel Metheringham + +Jesper Krogh + +Brandon Black + =head1 LICENSE You may distribute this code under the same terms as Perl itself.