| MDB2 |
| [ class tree: MDB2 ] [ index: MDB2 ] [ all elements ] |
|
Packages: MDB2 Classes:
MDB2_BufferedResult_mysql
Files:MDB2_Driver_Datatype_mysql MDB2_Driver_Function_mysql MDB2_Driver_Manager_mysql MDB2_Driver_mysql MDB2_Driver_Native_mysql MDB2_Driver_Reverse_mysql MDB2_Result_mysql MDB2_Statement_mysql |
[ Top ] $start_transaction = false[line 72]
[ Top ] $string_quoting = array('start' => "'", 'end' => "'", 'escape' => '\\', 'escape_pattern' => '\\')[line 60]
[ Top ] $varchar_max_length = 255[line 74]
[ Top ] Method Detail__construct (Constructor) [line 82]beginTransaction [line 255]
Start a transaction or set a savepoint.
Parameters:
[ Top ]
commit [line 300]
Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. Therefore, a new transaction is implicitly started after committing the pending changes.
Parameters:
[ Top ]
connect [line 432]currID [line 1163]
Returns the current id of a sequence
Parameters:
[ Top ]
disconnect [line 573]
Log out and disconnect from the database.
Parameters:
[ Top ]
errorInfo [line 122]
This method is used to collect information about an error
Parameters:
[ Top ]
escape [line 231]
Quotes a string so it can be safely used in a query. It will quote the text so it can safely be used within a query.
Parameters:
[ Top ]
getServerVersion [line 743]
return version information about the server
Parameters:
[ Top ]
lastInsertID [line 1147]
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
Parameters:
[ Top ]
nextID [line 1103]
Returns the next free id of a sequence
Parameters:
[ Top ]
prepare [line 876]
Prepares a query for multiple execution with execute(). With some database backends, this is emulated. prepare() requires a generic query as string like 'INSERT INTO numbers VALUES(?,?)' or 'INSERT INTO numbers VALUES(:foo,:bar)'. The ? and :name and are placeholders which can be set using bindParam() and the query can be sent off using the execute() method. The allowed format for :name can be set with the 'bindname_format' option.
Parameters:
[ Top ]
replace [line 1041]
Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. The REPLACE type of query does not make part of the SQL standards. Since practically only MySQL implements it natively, this type of query is emulated through this method for other DBMS using standard types of queries inside a transaction to assure the atomicity of the operation.
Parameters:
[ Top ]
rollback [line 354]
Cancel any database changes done during a transaction or since a specific savepoint that is in progress. This function may only be called when auto-committing is disabled, otherwise it will fail. Therefore, a new transaction is implicitly started after canceling the pending changes.
Parameters:
[ Top ]
setCharset [line 549]
Set the charset on the current connection
Parameters:
[ Top ]
setTransactionIsolation [line 402]
Set the transacton isolation level.
Parameters:
[ Top ]
_doQuery [line 608]
Execute a query
Parameters:
[ Top ]
_modifyQuery [line 692]
Changes a query string for various DBMS specific reasons
Parameters:
[ Top ]
_skipUserDefinedVariable [line 838]
Utility method, used by prepare() to avoid misinterpreting MySQL user defined variables (SELECT @x:=5) for placeholders. Check if the placeholder is a false positive, i.e. if it is an user defined variable instead. If so, skip it and advance the position, otherwise return the current position, which is valid
Parameters:
[ Top ]
Documentation generated on Mon, 11 Mar 2019 15:12:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004. |