| 1 | package DBIO::PostgreSQL::Test::SequenceTest; | ||
| 2 | # ABSTRACT: Test result class for PostgreSQL sequence tests | ||
| 3 | |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | __PACKAGE__->table('sequence_test'); | |
| 10 | |||
| 11 | 1 | __PACKAGE__->add_columns( | |
| 12 | pkid1 => { | ||
| 13 | data_type => 'integer', | ||
| 14 | sequence => 'pkid1_seq', | ||
| 15 | is_auto_increment => 1, | ||
| 16 | auto_nextval => 1, | ||
| 17 | }, | ||
| 18 | pkid2 => { | ||
| 19 | data_type => 'integer', | ||
| 20 | sequence => 'pkid2_seq', | ||
| 21 | is_auto_increment => 1, | ||
| 22 | auto_nextval => 1, | ||
| 23 | }, | ||
| 24 | nonpkid => { | ||
| 25 | data_type => 'integer', | ||
| 26 | sequence => 'nonpkid_seq', | ||
| 27 | is_auto_increment => 1, | ||
| 28 | auto_nextval => 1, | ||
| 29 | }, | ||
| 30 | name => { | ||
| 31 | data_type => 'varchar', | ||
| 32 | size => 100, | ||
| 33 | is_nullable => 1, | ||
| 34 | }, | ||
| 35 | ); | ||
| 36 | |||
| 37 | 1 | __PACKAGE__->set_primary_key('pkid1', 'pkid2'); | |
| 38 | |||
| 39 | 1 | 1; | |
| 40 | |||
| 41 | __END__ | ||
| 42 | |||
| 43 | =pod | ||
| 44 | |||
| 45 | =encoding UTF-8 | ||
| 46 | |||
| 47 | =head1 NAME | ||
| 48 | |||
| 49 | DBIO::PostgreSQL::Test::SequenceTest - Test result class for PostgreSQL sequence tests | ||
| 50 | |||
| 51 | =head1 VERSION | ||
| 52 | |||
| 53 | version 0.900001 | ||
| 54 | |||
| 55 | =head1 AUTHOR | ||
| 56 | |||
| 57 | DBIO & DBIx::Class Authors | ||
| 58 | |||
| 59 | =head1 COPYRIGHT AND LICENSE | ||
| 60 | |||
| 61 | Copyright (C) 2026 DBIO Authors | ||
| 62 | Portions Copyright (C) 2005-2025 DBIx::Class Authors | ||
| 63 | Based on DBIx::Class, heavily modified. | ||
| 64 | |||
| 65 | This is free software; you can redistribute it and/or modify it under | ||
| 66 | the same terms as the Perl 5 programming language system itself. | ||
| 67 | |||
| 68 | =cut | ||