"TYPO3 4.0.1: ADODB_pdo_mysql Class Reference", "datetime" => "Sat Dec 2 19:23:46 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

ADODB_pdo_mysql Class Reference

Inheritance diagram for ADODB_pdo_mysql:

Inheritance graph
[legend]
Collaboration diagram for ADODB_pdo_mysql:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 _init ($parentDriver)
 ServerInfo ()
MetaTables ($ttype=false, $showSchema=false, $mask=false)
 SetTransactionMode ($transaction_mode)
MetaColumns ($table)
SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs=0)

Public Attributes

 $metaTablesSQL = "SHOW TABLES"
 $metaColumnsSQL = "SHOW COLUMNS FROM %s"
 $_bindInputArray = false
 A boolean variable to state whether its a persistent connection or normal connection. */.
 $sysDate = 'CURDATE()'
 cache for 1 hour
 $sysTimeStamp = 'NOW()'
 name of function that returns the current date

Detailed Description

Definition at line 13 of file adodb-pdo_mysql.inc.php.


Member Function Documentation

& ADODB_pdo_mysql::MetaTables ttype = false,
showSchema = false,
mask = false
 

Parameters:
ttype can either be 'VIEW' or 'TABLE' or false. If false, both views and tables are returned. "VIEW" returns only views "TABLE" returns only tables
showSchema returns the schema/user with the table name, eg. USER.TABLE
mask is the input mask - only supported by oci8 and postgresql
Returns:
array of tables for current database.

Reimplemented from ADODB_pdo.

Definition at line 36 of file adodb-pdo_mysql.inc.php.

References ADOConnection::MetaTables(), and ADOConnection::qstr().

& ADODB_pdo_mysql::SelectLimit sql,
nrows = -1,
offset = -1,
inputarr = false,
secs = 0
 

Will select, getting rows from $offset (1-based), for $nrows. This simulates the MySQL "select * from table limit $offset,$nrows" , and the PostgreSQL "select * from table limit $nrows offset $offset". Note that MySQL and PostgreSQL parameter ordering is the opposite of the other. eg. SelectLimit('select * from table',3); will return rows 1 to 3 (1-based) SelectLimit('select * from table',3,2); will return rows 3 to 5 (1-based)

Uses SELECT TOP for Microsoft databases (when $this->hasTop is set) BUG: Currently SelectLimit fails with $sql with LIMIT or TOP clause already set

Parameters:
sql 
[offset] is the row to start calculations from (1-based)
[nrows] is the number of rows to get
[inputarr] array of bind variables
[secs2cache] is a private parameter only used by jlim
Returns:
the recordset ($rs->databaseType == 'array')

Reimplemented from ADODB_pdo.

Definition at line 144 of file adodb-pdo_mysql.inc.php.

References ADOConnection::CacheExecute(), and ADOConnection::Execute().

ADODB_pdo_mysql::ServerInfo  ) 
 

Get server version info...

Returns:
An array with 2 elements: $arr['string'] is the description string, and $arr[version] is the version (also a string).

Reimplemented from ADODB_pdo.

Definition at line 29 of file adodb-pdo_mysql.inc.php.

References ADOConnection::_findvers(), and ADOConnection::GetOne().


The documentation for this class was generated from the following file: