File/maintenance/libraries/pear/DB.php

Description
Classes
Class Description
 class DB The main "DB" class is simply a container class with some static methods for creating DB objects as well as some utility functions common to all parts of DB.
 class DB_Error DB_Error implements a class for reporting portable database error messages.
 class DB_result This class implements a wrapper for a DB result set.
 class DB_row Pear DB Row Object
Includes
 require_once ('PEAR.php') (line 26)
Constants
DB_AUTOQUERY_INSERT = 1 (line 169)
DB_AUTOQUERY_UPDATE = 2 (line 170)
DB_BINMODE_CONVERT = 3 (line 111)
DB_BINMODE_PASSTHRU = 1 (line 109)
DB_BINMODE_RETURN = 2 (line 110)
DB_ERROR = -1 (line 39)
DB_ERROR_ACCESS_VIOLATION = -26 (line 64)
DB_ERROR_ALREADY_EXISTS = -5 (line 43)
DB_ERROR_CANNOT_CREATE = -15 (line 53)
DB_ERROR_CANNOT_DELETE = -16 (line 54)
DB_ERROR_CANNOT_DROP = -17 (line 55)
DB_ERROR_CONNECT_FAILED = -24 (line 62)
DB_ERROR_CONSTRAINT = -3 (line 41)
DB_ERROR_CONSTRAINT_NOT_NULL = -29 (line 66)
DB_ERROR_DIVZERO = -13 (line 51)
DB_ERROR_EXTENSION_NOT_FOUND = -25 (line 63)
DB_ERROR_INVALID = -8 (line 46)
DB_ERROR_INVALID_DATE = -12 (line 50)
DB_ERROR_INVALID_DSN = -23 (line 61)
DB_ERROR_INVALID_NUMBER = -11 (line 49)
DB_ERROR_MISMATCH = -7 (line 45)
DB_ERROR_NEED_MORE_DATA = -20 (line 58)
DB_ERROR_NODBSELECTED = -14 (line 52)
DB_ERROR_NOSUCHDB = -27 (line 65)
DB_ERROR_NOSUCHFIELD = -19 (line 57)
DB_ERROR_NOSUCHTABLE = -18 (line 56)
DB_ERROR_NOT_CAPABLE = -9 (line 47)
DB_ERROR_NOT_FOUND = -4 (line 42)
DB_ERROR_NOT_LOCKED = -21 (line 59)
DB_ERROR_SYNTAX = -2 (line 40)
DB_ERROR_TRUNCATED = -10 (line 48)
DB_ERROR_UNSUPPORTED = -6 (line 44)
DB_ERROR_VALUE_COUNT_ON_ROW = -22 (line 60)
DB_FETCHMODE_ASSOC = 2 (line 132)

Column data indexed by column names

DB_FETCHMODE_DEFAULT = (line 122)

This is a special constant that tells DB the user hasn't specified any particular get mode, so the default should be used.

DB_FETCHMODE_FLIPPED = 4 (line 145)

For multi-dimensional results: normally the first level of arrays is the row number, and the second level indexed by column number or name.

DB_FETCHMODE_FLIPPED switches this order, so the first level of arrays is the column name, and the second level the row number.

DB_FETCHMODE_OBJECT = 3 (line 137)

Column data as object properties

DB_FETCHMODE_ORDERED = 1 (line 127)

Column data indexed by numbers, ordered from 0 and up

DB_GETMODE_ASSOC = DB_FETCHMODE_ASSOC (line 149)
DB_GETMODE_FLIPPED = DB_FETCHMODE_FLIPPED (line 150)
DB_GETMODE_ORDERED = DB_FETCHMODE_ORDERED (line 148)
DB_OK = 1 (line 38)
DB_PARAM_MISC = 3 (line 91)
DB_PARAM_OPAQUE = 2 (line 90)
DB_PARAM_SCALAR = 1 (line 89)
DB_PORTABILITY_ALL = 63 (line 234)

Portability: turn on all portability features.

DB_PORTABILITY_DELETE_COUNT = 4 (line 200)

Portability: force reporting the number of rows deleted.

DB_PORTABILITY_ERRORS = 16 (line 221)

Portability: makes certain error messages in certain drivers compatible with those from other DBMS's.

  • mysql, mysqli: change unique/primary key constraints DB_ERROR_ALREADY_EXISTS -> DB_ERROR_CONSTRAINT
  • odbc(access): MS's ODBC driver reports 'no such field' as code 07001, which means 'too few parameters.' When this option is on that code gets mapped to DB_ERROR_NOSUCHFIELD.

DB_PORTABILITY_LOWERCASE = 1 (line 188)

Portability: convert names of tables and fields to lower case when using the get*(), fetch*() and tableInfo() methods.

DB_PORTABILITY_NONE = (line 181)

Portability: turn off all portability features.

DB_PORTABILITY_NULL_TO_EMPTY = 32 (line 228)

Portability: convert null values to empty strings in data output by get*() and fetch*().

DB_PORTABILITY_NUMROWS = 8 (line 206)

Portability: enable hack that makes numRows() work in Oracle.

DB_PORTABILITY_RTRIM = 2 (line 194)

Portability: right trim the data output by get*() and fetch*().

DB_TABLEINFO_FULL = 3 (line 164)
DB_TABLEINFO_ORDER = 1 (line 162)

these are constants for the tableInfo-function

they are bitwised or'ed. so if there are more constants to be defined in the future, adjust DB_TABLEINFO_FULL accordingly

DB_TABLEINFO_ORDERTABLE = 2 (line 163)

Documentation generated on Fri, 11 Feb 2005 18:12:58 +0000 by phpDocumentor 1.3.0RC3