Documentation TYPO3 par Ameos |
Public Member Functions | |
ADODB_mysql () | |
ServerInfo () | |
IfNull ($field, $ifNull) | |
& | MetaTables ($ttype=false, $showSchema=false, $mask=false) |
& | MetaIndexes ($table, $primary=FALSE, $owner=false) |
qstr ($s, $magic_quotes=false) | |
_insertid () | |
GetOne ($sql, $inputarr=false) | |
BeginTrans () | |
_affectedrows () | |
CreateSequence ($seqname='adodbseq', $startID=1) | |
GenID ($seqname='adodbseq', $startID=1) | |
& | MetaDatabases () |
SQLDate ($fmt, $col=false) | |
Concat () | |
OffsetDate ($dayFraction, $date=false) | |
_connect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
_pconnect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
_nconnect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
& | MetaColumns ($table) |
SelectDB ($dbName) | |
& | SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs=0) |
_query ($sql, $inputarr) | |
ErrorMsg () | |
ErrorNo () | |
_close () | |
CharMax () | |
TextMax () | |
MetaForeignKeys ($table, $owner=FALSE, $upper=FALSE, $associative=FALSE) | |
Public Attributes | |
$databaseType = 'mysql' | |
$dataProvider = 'mysql' | |
$hasInsertID = true | |
$hasAffectedRows = true | |
supports autoincrement ID? | |
$metaTablesSQL = "SHOW TABLES" | |
$metaColumnsSQL = "SHOW COLUMNS FROM %s" | |
$fmtTimeStamp = "'Y-m-d H:i:s'" | |
used by DBDate() as the default date format used by the database | |
$hasLimit = true | |
support mssql/access SELECT TOP 10 * FROM TABLE | |
$hasMoveFirst = true | |
this is a readonly database - used by phpLens | |
$hasGenID = true | |
has ability to run MoveFirst(), scrolling backwards | |
$isoDates = true | |
error function to call | |
$sysDate = 'CURDATE()' | |
cache for 1 hour | |
$sysTimeStamp = 'NOW()' | |
name of function that returns the current date | |
$hasTransactions = false | |
can generate sequences using GenID(); | |
$forceNewConnect = false | |
$poorAffectedRows = true | |
$clientFlags = 0 | |
$substr = "substring" | |
default concat operator -- change to || for Oracle/Interbase | |
$nameQuote = '`' | |
string to use to replace quotes | |
$compat323 = false | |
string to use to quote identifiers and names | |
$_genIDSQL = "update %s set id=LAST_INSERT_ID(id+1);" | |
$_genSeqSQL = "create table %s (id int not null)" | |
$_genSeq2SQL = "insert into %s values (%s)" | |
$_dropSeqSQL = "drop table %s" |
Definition at line 21 of file adodb-mysql.inc.php.
|
Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().
Reimplemented from ADOConnection. Reimplemented in ADODB_mysqlt. Definition at line 173 of file adodb-mysql.inc.php. References ADOConnection::outp(). |
|
Different SQL databases used different methods to combine strings together. This function provides a wrapper. param s variable number of string parameters Usage: $db->Concat($str1,$str2);
Reimplemented from ADOConnection. Definition at line 330 of file adodb-mysql.inc.php. |
|
Reimplemented from ADOConnection. Definition at line 501 of file adodb-mysql.inc.php. |
|
Reimplemented from ADOConnection. Definition at line 511 of file adodb-mysql.inc.php. |
|
Generates a sequence id and stores it in $this->genID; GenID is only available if $this->hasGenID = true;
Reimplemented from ADOConnection. Definition at line 201 of file adodb-mysql.inc.php. References ADOConnection::Execute(). |
|
Return first element of first row of sql statement. Recordset is disposed for you.
Reimplemented from ADOConnection. Definition at line 158 of file adodb-mysql.inc.php. References ADOConnection::GetOne(), and SelectLimit(). |
|
return the databases that the driver can connect to. Some databases will return an empty array.
Reimplemented from ADOConnection. Definition at line 226 of file adodb-mysql.inc.php. |
|
List indexes on a table as an array.
Reimplemented from ADOConnection. Definition at line 79 of file adodb-mysql.inc.php. References ADOConnection::$false, ADOConnection::Execute(), and ADOConnection::SetFetchMode(). |
|
Reimplemented from ADOConnection. Definition at line 61 of file adodb-mysql.inc.php. References ADOConnection::MetaTables(), and qstr(). |
|
Correctly quotes a string so that all strings are escaped. We prefix and append to the string single-quotes. An example is $db->qstr("Don't bother",magic_quotes_runtime());
Reimplemented from ADOConnection. Definition at line 133 of file adodb-mysql.inc.php. Referenced by MetaTables(). |
|
Choose a database to connect to. Many databases do not support this.
Reimplemented from ADOConnection. Definition at line 467 of file adodb-mysql.inc.php. |
|
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
Reimplemented from ADOConnection. Definition at line 478 of file adodb-mysql.inc.php. Referenced by GetOne(). |
|
Get server version info...
Reimplemented from ADOConnection. Definition at line 48 of file adodb-mysql.inc.php. References ADOConnection::_findvers(), and ADOConnection::GetOne(). |
|
FALL THROUGH Reimplemented from ADOConnection. Definition at line 242 of file adodb-mysql.inc.php. |