File | /wise/base/static/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/DBI/Const/GetInfoType.pm | Statements Executed | 20 | Total Time | 0.005366 seconds |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine | |
---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | DBI::Const::GetInfoType:: | BEGIN |
Line | Stmts. | Exclusive Time | Avg. | Code |
---|---|---|---|---|
1 | # $Id: GetInfoType.pm 8696 2007-01-24 23:12:38Z timbo $ | |||
2 | # | |||
3 | # Copyright (c) 2002 Tim Bunce Ireland | |||
4 | # | |||
5 | # Constant data describing info type codes for the DBI getinfo function. | |||
6 | # | |||
7 | # You may distribute under the terms of either the GNU General Public | |||
8 | # License or the Artistic License, as specified in the Perl README file. | |||
9 | ||||
10 | package DBI::Const::GetInfoType; | |||
11 | ||||
12 | 3 | 3.3e-5 | 1.1e-5 | use strict; # spent 11µs making 1 call to strict::import |
13 | ||||
14 | 3 | 3.0e-5 | 1.0e-5 | use Exporter (); |
15 | ||||
16 | 3 | 9.3e-5 | 3.1e-5 | use vars qw(@ISA @EXPORT @EXPORT_OK %GetInfoType); # spent 125µs making 1 call to vars::import |
17 | ||||
18 | 1 | 9.0e-6 | 9.0e-6 | @ISA = qw(Exporter); |
19 | 1 | 1.0e-6 | 1.0e-6 | @EXPORT = qw(%GetInfoType); |
20 | ||||
21 | my | |||
22 | 1 | 8.0e-6 | 8.0e-6 | $VERSION = sprintf("2.%06d", q$Revision: 8696 $ =~ /(\d+)/o); |
23 | ||||
24 | ||||
25 | =head1 NAME | |||
26 | ||||
27 | DBI::Const::GetInfoType - Data describing GetInfo type codes | |||
28 | ||||
29 | =head1 SYNOPSIS | |||
30 | ||||
31 | use DBI::Const::GetInfoType; | |||
32 | ||||
33 | =head1 DESCRIPTION | |||
34 | ||||
35 | Imports a %GetInfoType hash which maps names for GetInfo Type Codes | |||
36 | into their corresponding numeric values. For example: | |||
37 | ||||
38 | $database_version = $dbh->get_info( $GetInfoType{SQL_DBMS_VER} ); | |||
39 | ||||
40 | The interface to this module is new and nothing beyond what is | |||
41 | written here is guaranteed. | |||
42 | ||||
43 | =cut | |||
44 | ||||
45 | 3 | 0.00156 | 0.00052 | use DBI::Const::GetInfo::ANSI (); # liable to change |
46 | 3 | 0.00345 | 0.00115 | use DBI::Const::GetInfo::ODBC (); # liable to change |
47 | ||||
48 | 1 | 0.00017 | 0.00017 | %GetInfoType = |
49 | ( | |||
50 | %DBI::Const::GetInfo::ANSI::InfoTypes # liable to change | |||
51 | , %DBI::Const::GetInfo::ODBC::InfoTypes # liable to change | |||
52 | ); | |||
53 | ||||
54 | 1 | 7.0e-6 | 7.0e-6 | 1; |