Firebird.pm

filter: Statementstmt 78.5% 11 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 78.9% 15 / 19 CC 1 SCAR 2.2
CC
1
Cov
79%
connection
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Firebird/Diff/Table.pm ↑ Summary Firebird/Storage.pm »
1 package DBIO::Firebird;
2 # ABSTRACT: Firebird-specific schema management for DBIO
3 1 our $VERSION = '0.900001';
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use base 'DBIO::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 0 ▶sub connection {
Subroutine connection: not called CC=1 SCAR=6.9
Pod documented
12 0 my ($self, @info) = @_;
13 0 $self->storage_type('+DBIO::Firebird::Storage');
14 0 return $self->next::method(@info);
15 }
16  
17  
18  
19 1 1;
20  
21 __END__
22  
23 =pod
24  
25 =encoding UTF-8
26  
27 =head1 NAME
28  
29 DBIO::Firebird - Firebird-specific schema management for DBIO
30  
31 =head1 VERSION
32  
33 version 0.900001
34  
35 =head1 SYNOPSIS
36  
37 package MySchema;
38 use DBIO Schema => -fb;
39  
40 # elsewhere
41 my $schema = MySchema->connect($dsn, $user, $pass);
42 # Storage is automatically set to DBIO::Firebird::Storage
43  
44 =head1 DESCRIPTION
45  
46 This class is a thin L<DBIO> subclass that automatically sets the storage
47 class to L<DBIO::Firebird::Storage> when a connection is established. Load
48 it into your schema instead of the base L<DBIO> class when connecting to
49 Firebird databases.
50  
51 The C<-fb> shortcut (see L<DBIO::Shortcut::fb>) is the convenient way to load
52 it: C<use DBIO 'Schema', -fb;> sets up the C<DBIO::Schema> base and pins the
53 storage type to L<DBIO::Firebird::Storage>.
54  
55 =head1 METHODS
56  
57 =head2 connection
58  
59 $schema->connection($dsn, $user, $pass, \%attrs);
60  
61 Sets the storage type to L<DBIO::Firebird::Storage> before delegating to
62 the parent C<connection> method.
63  
64 =head1 SEE ALSO
65  
66 =over
67  
68 =item * L<DBIO::Firebird::Storage> - Firebird storage via L<DBD::Firebird>
69  
70 =item * L<DBIO::Firebird::Storage::InterBase> - InterBase storage variant
71  
72 =item * L<DBIO::Firebird::Storage::Common> - Shared storage base class
73  
74 =item * L<DBIO> - Base ORM class
75  
76 =back
77  
78 =head1 AUTHOR
79  
80 DBIO & DBIx::Class Authors
81  
82 =head1 COPYRIGHT AND LICENSE
83  
84 Copyright (C) 2026 DBIO Authors
85 Portions Copyright (C) 2005-2025 DBIx::Class Authors
86 Based on DBIx::Class, heavily modified.
87  
88 This is free software; you can redistribute it and/or modify it under
89 the same terms as the Perl 5 programming language system itself.
90  
91 =cut
« Firebird/Diff/Table.pm ↑ Summary Firebird/Storage.pm »