| File | /project/perl/lib/DBI/Const/GetInfoType.pm |
| Statements Executed | 20 |
| Statement Execution Time | 8.02ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 2 | 13µs | 13µs | DBI::Const::GetInfoType::CORE:match (opcode) |
| 0 | 0 | 0 | 0s | 0s | DBI::Const::GetInfoType::BEGIN |
| Line | State ments |
Time on line |
Calls | Time in subs |
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 | 87µs | 1 | 24µs | use strict; # spent 24µs making 1 call to strict::import |
| 13 | |||||
| 14 | 3 | 61µs | use Exporter (); | ||
| 15 | |||||
| 16 | 3 | 178µs | 1 | 380µs | use vars qw(@ISA @EXPORT @EXPORT_OK %GetInfoType); # spent 380µs making 1 call to vars::import |
| 17 | |||||
| 18 | 1 | 11µs | @ISA = qw(Exporter); | ||
| 19 | 1 | 4µs | @EXPORT = qw(%GetInfoType); | ||
| 20 | |||||
| 21 | my | ||||
| 22 | 1 | 57µs | 1 | 13µs | $VERSION = sprintf("2.%06d", q$Revision: 8696 $ =~ /(\d+)/o); # spent 13µs making 1 call to DBI::Const::GetInfoType::CORE:match |
| 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 | 1.22ms | use DBI::Const::GetInfo::ANSI (); # liable to change | ||
| 46 | 3 | 5.86ms | use DBI::Const::GetInfo::ODBC (); # liable to change | ||
| 47 | |||||
| 48 | 1 | 509µs | %GetInfoType = | ||
| 49 | ( | ||||
| 50 | %DBI::Const::GetInfo::ANSI::InfoTypes # liable to change | ||||
| 51 | , %DBI::Const::GetInfo::ODBC::InfoTypes # liable to change | ||||
| 52 | ); | ||||
| 53 | |||||
| 54 | 1 | 23µs | 1; | ||
# spent 13µs within DBI::Const::GetInfoType::CORE:match which was called
# once (13µs+0s) by base::import at line 22 of DBI/Const/GetInfoType.pm |