1 package DBIx::Class::Storage::DBI::MSSQL;
6 use base qw/DBIx::Class::Storage::DBI/;
8 # __PACKAGE__->load_components(qw/PK::Auto/);
11 my( $id ) = $_[0]->_dbh->selectrow_array('SELECT @@IDENTITY' );
19 DBIx::Class::Storage::DBI::MSSQL - Automatic primary key class for MSSQL
23 # In your table classes
24 __PACKAGE__->load_components(qw/PK::Auto Core/);
25 __PACKAGE__->set_primary_key('id');
29 This class implements autoincrements for MSSQL.
33 Brian Cassidy <bricas@cpan.org>
37 You may distribute this code under the same terms as Perl itself.