package DBIx::Class::PK::Auto;
+use base qw/Class::Data::Inheritable/;
use strict;
use warnings;
return $ret;
}
+=item sequence
+
+Manually define the correct sequence for your table, to avoid the overhead
+associated with looking up the sequence automatically.
+
+=cut
+
+__PACKAGE__->mk_classdata('sequence');
+
1;
=back
sub get_autoinc_seq {
my $self=shift;
+
+ # return the user-defined sequence if known
+ return $self->sequence if ($self->sequence);
+
my $dbh= $self->storage->dbh;
my $sth = $dbh->column_info( undef, undef, $self->_table_name, '%');
while (my $foo = $sth->fetchrow_arrayref){