Oracle/Test/SequenceTest.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Oracle/Storage/WhereJoins.pm ↑ Summary
1 package DBIO::Oracle::Test::SequenceTest;
2 # ABSTRACT: Test result class for Oracle sequence tests
3  
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use base qw/DBIO::Test::BaseResult/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 __PACKAGE__->table('sequence_test');
10  
11 3 __PACKAGE__->add_columns(
12 # A scalar-ref sequence is passed through verbatim; a plain string is quoted
13 # by the SQL dialect. pkid1 is pre-quoted (lowercase), pkid2 is unquoted (so
14 # Oracle folds it to uppercase), nonpkid relies on dialect quoting.
15 pkid1 => {
16 data_type => 'integer',
17 auto_nextval => 1,
18 sequence => \'"pkid1_seq"',
19 },
20 pkid2 => {
21 data_type => 'integer',
22 auto_nextval => 1,
23 sequence => \'pkid2_seq',
24 },
25 nonpkid => {
26 data_type => 'integer',
27 auto_nextval => 1,
28 sequence => 'nonpkid_seq',
29 },
30 name => {
31 data_type => 'varchar',
32 size => 100,
33 is_nullable => 1,
34 },
35 );
36  
37 3 __PACKAGE__->set_primary_key('pkid1', 'pkid2');
38  
39 3 1;
40  
41 __END__
42  
43 =pod
44  
45 =encoding UTF-8
46  
47 =head1 NAME
48  
49 DBIO::Oracle::Test::SequenceTest - Test result class for Oracle 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
« Oracle/Storage/WhereJoins.pm ↑ Summary