MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

File: MDB2.php

Source Location: /MDB2-2.0.0beta4/MDB2.php

Classes:

MDB2
The main 'MDB2' 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.
MDB2_Error
MDB2_Error implements a class for reporting portable database error messages.
MDB2_Driver_Common
MDB2_Driver_Common: Base class that is extended by each MDB2 driver
MDB2_Result
MDB2_Result_Common
MDB2_Row
Pear MDB2 Row Object
MDB2_Statement_Common

Page Details:

Includes:

require_once('PEAR.php') [line 55]

MDB2_ERROR [line 66]

MDB2_ERROR = -1

[ Top ]



MDB2_ERROR_ACCESS_VIOLATION [line 92]

MDB2_ERROR_ACCESS_VIOLATION = -27

[ Top ]



MDB2_ERROR_ALREADY_EXISTS [line 70]

MDB2_ERROR_ALREADY_EXISTS = -5

[ Top ]



MDB2_ERROR_CANNOT_ALTER [line 96]

MDB2_ERROR_CANNOT_ALTER = -31

[ Top ]



MDB2_ERROR_CANNOT_CREATE [line 80]

MDB2_ERROR_CANNOT_CREATE = -15

[ Top ]



MDB2_ERROR_CANNOT_DELETE [line 81]

MDB2_ERROR_CANNOT_DELETE = -16

[ Top ]



MDB2_ERROR_CANNOT_DROP [line 82]

MDB2_ERROR_CANNOT_DROP = -17

[ Top ]



MDB2_ERROR_CANNOT_REPLACE [line 93]

MDB2_ERROR_CANNOT_REPLACE = -28

[ Top ]



MDB2_ERROR_CONNECT_FAILED [line 89]

MDB2_ERROR_CONNECT_FAILED = -24

[ Top ]



MDB2_ERROR_CONSTRAINT [line 68]

MDB2_ERROR_CONSTRAINT = -3

[ Top ]



MDB2_ERROR_CONSTRAINT_NOT_NULL [line 94]

MDB2_ERROR_CONSTRAINT_NOT_NULL = -29

[ Top ]



MDB2_ERROR_DEADLOCK [line 95]

MDB2_ERROR_DEADLOCK = -30

[ Top ]



MDB2_ERROR_DIVZERO [line 78]

MDB2_ERROR_DIVZERO = -13

[ Top ]



MDB2_ERROR_EXTENSION_NOT_FOUND [line 90]

MDB2_ERROR_EXTENSION_NOT_FOUND = -25

[ Top ]



MDB2_ERROR_INSUFFICIENT_DATA [line 100]

MDB2_ERROR_INSUFFICIENT_DATA = -35

[ Top ]



MDB2_ERROR_INVALID [line 73]

MDB2_ERROR_INVALID = -8

[ Top ]



MDB2_ERROR_INVALID_DATE [line 77]

MDB2_ERROR_INVALID_DATE = -12

[ Top ]



MDB2_ERROR_INVALID_DSN [line 88]

MDB2_ERROR_INVALID_DSN = -23

[ Top ]



MDB2_ERROR_INVALID_NUMBER [line 76]

MDB2_ERROR_INVALID_NUMBER = -11

[ Top ]



MDB2_ERROR_LOADMODULE [line 99]

MDB2_ERROR_LOADMODULE = -34

[ Top ]



MDB2_ERROR_MANAGER [line 97]

MDB2_ERROR_MANAGER = -32

[ Top ]



MDB2_ERROR_MANAGER_PARSE [line 98]

MDB2_ERROR_MANAGER_PARSE = -33

[ Top ]



MDB2_ERROR_MISMATCH [line 72]

MDB2_ERROR_MISMATCH = -7

[ Top ]



MDB2_ERROR_NEED_MORE_DATA [line 85]

MDB2_ERROR_NEED_MORE_DATA = -20

[ Top ]



MDB2_ERROR_NODBSELECTED [line 79]

MDB2_ERROR_NODBSELECTED = -14

[ Top ]



MDB2_ERROR_NOSUCHDB [line 91]

MDB2_ERROR_NOSUCHDB = -26

[ Top ]



MDB2_ERROR_NOSUCHFIELD [line 84]

MDB2_ERROR_NOSUCHFIELD = -19

[ Top ]



MDB2_ERROR_NOSUCHTABLE [line 83]

MDB2_ERROR_NOSUCHTABLE = -18

[ Top ]



MDB2_ERROR_NOT_CAPABLE [line 74]

MDB2_ERROR_NOT_CAPABLE = -9

[ Top ]



MDB2_ERROR_NOT_FOUND [line 69]

MDB2_ERROR_NOT_FOUND = -4

[ Top ]



MDB2_ERROR_NOT_LOCKED [line 86]

MDB2_ERROR_NOT_LOCKED = -21

[ Top ]



MDB2_ERROR_SYNTAX [line 67]

MDB2_ERROR_SYNTAX = -2

[ Top ]



MDB2_ERROR_TRUNCATED [line 75]

MDB2_ERROR_TRUNCATED = -10

[ Top ]



MDB2_ERROR_UNSUPPORTED [line 71]

MDB2_ERROR_UNSUPPORTED = -6

[ Top ]



MDB2_ERROR_VALUE_COUNT_ON_ROW [line 87]

MDB2_ERROR_VALUE_COUNT_ON_ROW = -22

[ Top ]



MDB2_FETCHMODE_ASSOC [line 120]

MDB2_FETCHMODE_ASSOC = 2
Column data indexed by column names

[ Top ]



MDB2_FETCHMODE_DEFAULT [line 108]

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

[ Top ]



MDB2_FETCHMODE_FLIPPED [line 134]

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

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


[ Top ]



MDB2_FETCHMODE_OBJECT [line 125]

MDB2_FETCHMODE_OBJECT = 3
Column data as object properties

[ Top ]



MDB2_FETCHMODE_ORDERED [line 114]

MDB2_FETCHMODE_ORDERED = 1
Column data indexed by numbers, ordered from 0 and up

[ Top ]



MDB2_OK [line 65]

MDB2_OK = 1
The method mapErrorCode in each MDB2_dbtype implementation maps native error codes to one of these.

If you add an error code here, make sure you also add a textual version of it in MDB2::errorMessage().


[ Top ]



MDB2_PORTABILITY_ALL [line 197]

MDB2_PORTABILITY_ALL = 63
Portability: turn on all portability features.

[ Top ]



MDB2_PORTABILITY_DELETE_COUNT [line 163]

MDB2_PORTABILITY_DELETE_COUNT = 4
Portability: force reporting the number of rows deleted.

[ Top ]



MDB2_PORTABILITY_EMPTY_TO_NULL [line 191]

MDB2_PORTABILITY_EMPTY_TO_NULL = 32
Portability: convert empty values to null strings in data output by query*() and fetch*().

[ Top ]



MDB2_PORTABILITY_ERRORS [line 184]

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

  • mysql, mysqli: change unique/primary key constraints MDB2_ERROR_ALREADY_EXISTS -> MDB2_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 MDB2_ERROR_NOSUCHFIELD.


[ Top ]



MDB2_PORTABILITY_LOWERCASE [line 151]

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

[ Top ]



MDB2_PORTABILITY_NONE [line 144]

MDB2_PORTABILITY_NONE = 0
Portability: turn off all portability features.

[ Top ]



MDB2_PORTABILITY_NUMROWS [line 169]

MDB2_PORTABILITY_NUMROWS = 8
Portability: not needed in MDB2 (just left here for compatibility to DB)

[ Top ]



MDB2_PORTABILITY_RTRIM [line 157]

MDB2_PORTABILITY_RTRIM = 2
Portability: right trim the data output by query*() and fetch*().

[ Top ]



MDB2_closeOpenTransactions [line 3068]

void MDB2_closeOpenTransactions( )

close any open transactions form persistant connections
  • Access: public


[ Top ]



MDB2_defaultDebugOutput [line 3094]

string MDB2_defaultDebugOutput( &$db, $scope, string $message, object $db)

default debug output handler
  • Return: the corresponding error message, of false if the error code was unknown
  • Access: public


Parameters

object   $db   reference to an MDB2 database object
string   $message   message that should be appended to the debug variable
   &$db  
   $scope  
[ Top ]



Documentation generated on Mon, 11 Mar 2019 14:20:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.