| 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 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 8 | ▶ | use Exporter (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 8 | our @ISA = qw(Exporter); | |
| 18 | 8 | our @EXPORT = qw(%GetInfoType); | |
| 19 | |||
| 20 | my | ||
| 21 | 8 | $VERSION = "2.008697"; | |
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | DBI::Const::GetInfoType - Data describing GetInfo type codes | ||
| 26 | |||
| 27 | =head1 SYNOPSIS | ||
| 28 | |||
| 29 | use DBI::Const::GetInfoType; | ||
| 30 | |||
| 31 | =head1 DESCRIPTION | ||
| 32 | |||
| 33 | Imports a %GetInfoType hash which maps names for GetInfo Type Codes | ||
| 34 | into their corresponding numeric values. For example: | ||
| 35 | |||
| 36 | $database_version = $dbh->get_info( $GetInfoType{SQL_DBMS_VER} ); | ||
| 37 | |||
| 38 | The interface to this module is new and nothing beyond what is | ||
| 39 | written here is guaranteed. | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 8 | ▶ | use DBI::Const::GetInfo::ANSI (); # liable to change |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 44 | 8 | ▶ | use DBI::Const::GetInfo::ODBC (); # liable to change |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 45 | |||
| 46 | 8 | our %GetInfoType = | |
| 47 | ( | ||
| 48 | %DBI::Const::GetInfo::ANSI::InfoTypes # liable to change | ||
| 49 | , %DBI::Const::GetInfo::ODBC::InfoTypes # liable to change | ||
| 50 | ); | ||
| 51 | |||
| 52 | 8 | 1; | |