1 package # hide from PAUSE
2 DBIx::Class::CDBICompat::Constructor;
4 use base qw(DBIx::Class::CDBICompat::ImaDBI);
13 __PACKAGE__->set_sql(Retrieve => <<'');
19 my ($class, $method, $fragment) = @_;
20 return croak("constructors needs a name") unless $method;
23 my $meth = "$class\::$method";
24 return carp("$method already exists in $class")
27 *$meth = Sub::Name::subname $meth => sub {
29 $self->sth_to_objects($self->sql_Retrieve($fragment), \@_);