| Filename | /usr/local/lib/perl5/site_perl/mach/5.36/DBI/Const/GetInfoType.pm |
| Statements | Executed 15 statements in 458µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 3.16ms | 3.18ms | DBI::Const::GetInfoType::BEGIN@45 |
| 1 | 1 | 1 | 652µs | 668µs | DBI::Const::GetInfoType::BEGIN@44 |
| 1 | 1 | 1 | 13µs | 16µs | DBI::Const::GetInfoType::BEGIN@12 |
| 1 | 1 | 1 | 7µs | 67µs | DBI::Const::GetInfoType::BEGIN@16 |
| 1 | 1 | 1 | 3µs | 3µs | DBI::Const::GetInfoType::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | # $Id: GetInfoType.pm 8696 2007-01-24 23:12:38Z Tim $ | ||||
| 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 | 2 | 27µs | 2 | 18µs | # spent 16µs (13+3) within DBI::Const::GetInfoType::BEGIN@12 which was called:
# once (13µs+3µs) by DBD::mysql::dr::BEGIN@117 at line 12 # spent 16µs making 1 call to DBI::Const::GetInfoType::BEGIN@12
# spent 3µs making 1 call to strict::import |
| 13 | |||||
| 14 | 2 | 21µs | 1 | 3µs | # spent 3µs within DBI::Const::GetInfoType::BEGIN@14 which was called:
# once (3µs+0s) by DBD::mysql::dr::BEGIN@117 at line 14 # spent 3µs making 1 call to DBI::Const::GetInfoType::BEGIN@14 |
| 15 | |||||
| 16 | 2 | 70µs | 2 | 126µs | # spent 67µs (7+59) within DBI::Const::GetInfoType::BEGIN@16 which was called:
# once (7µs+59µs) by DBD::mysql::dr::BEGIN@117 at line 16 # spent 67µs making 1 call to DBI::Const::GetInfoType::BEGIN@16
# spent 59µs making 1 call to vars::import |
| 17 | |||||
| 18 | 1 | 9µs | @ISA = qw(Exporter); | ||
| 19 | 1 | 700ns | @EXPORT = qw(%GetInfoType); | ||
| 20 | |||||
| 21 | my | ||||
| 22 | 1 | 500ns | $VERSION = "2.008697"; | ||
| 23 | |||||
| 24 | =head1 NAME | ||||
| 25 | |||||
| 26 | DBI::Const::GetInfoType - Data describing GetInfo type codes | ||||
| 27 | |||||
| 28 | =head1 SYNOPSIS | ||||
| 29 | |||||
| 30 | use DBI::Const::GetInfoType; | ||||
| 31 | |||||
| 32 | =head1 DESCRIPTION | ||||
| 33 | |||||
| 34 | Imports a %GetInfoType hash which maps names for GetInfo Type Codes | ||||
| 35 | into their corresponding numeric values. For example: | ||||
| 36 | |||||
| 37 | $database_version = $dbh->get_info( $GetInfoType{SQL_DBMS_VER} ); | ||||
| 38 | |||||
| 39 | The interface to this module is new and nothing beyond what is | ||||
| 40 | written here is guaranteed. | ||||
| 41 | |||||
| 42 | =cut | ||||
| 43 | |||||
| 44 | 2 | 137µs | 1 | 668µs | # spent 668µs (652+15) within DBI::Const::GetInfoType::BEGIN@44 which was called:
# once (652µs+15µs) by DBD::mysql::dr::BEGIN@117 at line 44 # spent 668µs making 1 call to DBI::Const::GetInfoType::BEGIN@44 |
| 45 | 2 | 138µs | 1 | 3.18ms | # spent 3.18ms (3.16+20µs) within DBI::Const::GetInfoType::BEGIN@45 which was called:
# once (3.16ms+20µs) by DBD::mysql::dr::BEGIN@117 at line 45 # spent 3.18ms making 1 call to DBI::Const::GetInfoType::BEGIN@45 |
| 46 | |||||
| 47 | 1 | 48µs | %GetInfoType = | ||
| 48 | ( | ||||
| 49 | %DBI::Const::GetInfo::ANSI::InfoTypes # liable to change | ||||
| 50 | , %DBI::Const::GetInfo::ODBC::InfoTypes # liable to change | ||||
| 51 | ); | ||||
| 52 | |||||
| 53 | 1 | 5µs | 1; |