Sybase.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
« Sybase/Deploy.pm ↑ Summary Shortcut/syb.pm »
1 package DBIO::Sybase;
2 1 our $VERSION = '0.900001';
3 # ABSTRACT: Sybase-specific schema management for DBIO
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::Sybase::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::Sybase - Sybase-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 => -syb;
39  
40 # ... later ...
41 my $schema = MySchema->connect($dsn, $user, $pass);
42 # Storage is automatically set to DBIO::Sybase::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::Sybase::Storage> when a connection is established. Load it
48 into your schema instead of the base L<DBIO> class when connecting to Sybase
49 databases.
50  
51 The recommended way to load the driver is the C<-syb> shortcut
52 (L<DBIO::Shortcut::syb>):
53  
54 use DBIO 'Schema', -syb;
55  
56 which pins L<DBIO::Sybase::Storage> as the schema's C<storage_type>.
57  
58 The storage will introspect the connected server type and rebless itself into
59 the appropriate subclass: L<DBIO::Sybase::Storage::ASE> for Sybase ASE
60 servers, or L<DBIO::MSSQL::Storage::Sybase> for Microsoft SQL Server accessed
61 via L<DBD::Sybase>.
62  
63 =head1 METHODS
64  
65 =head2 connection
66  
67 $schema->connection($dsn, $user, $pass, \%attrs);
68  
69 Sets the storage type to L<DBIO::Sybase::Storage> before delegating to the
70 parent C<connection> method.
71  
72 =head1 SEE ALSO
73  
74 =over
75  
76 =item * L<DBIO::Sybase::Storage> - Sybase storage dispatcher
77  
78 =item * L<DBIO::Sybase::Storage::ASE> - Sybase ASE storage
79  
80 =item * L<DBIO::Sybase::Storage::FreeTDS> - FreeTDS connection layer
81  
82 =item * L<DBIO::MSSQL::Storage::Sybase> - MSSQL via L<DBD::Sybase>
83  
84 =item * L<DBIO> - Base ORM class
85  
86 =back
87  
88 =head1 AUTHOR
89  
90 DBIO & DBIx::Class Authors
91  
92 =head1 COPYRIGHT AND LICENSE
93  
94 Copyright (C) 2026 DBIO Authors
95 Portions Copyright (C) 2005-2025 DBIx::Class Authors
96 Based on DBIx::Class, heavily modified.
97  
98 This is free software; you can redistribute it and/or modify it under
99 the same terms as the Perl 5 programming language system itself.
100  
101 =cut
« Sybase/Deploy.pm ↑ Summary Shortcut/syb.pm »