Class: MDB_xxx
Source Location: /MDB-1.3.0/doc/skeleton.php
PEAR
|
--MDB_Common
|
--MDB_xxx
MDB XXX driver
Author(s):
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
MDB_xxx (Constructor) [line 96]
autoCommit [line 164]
mixed autoCommit(
boolean
$auto_commit)
|
|
Define whether database changes done on the database be automatically committed. This function may also implicitly start or end a transaction.
Overrides MDB_Common::autoCommit() (Define whether database changes done on the database be automatically committed. This function may also implicitly start or end a transaction.)
Parameters:
commit [line 183]
Commit the database changes done during a transaction 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 committing the pending changes.
Overrides MDB_Common::commit() (Commit the database changes done during a transaction 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 committing the pending changes.)
connect [line 214]
convertResult [line 550]
mixed convertResult(
mixed
$value, int
$type)
|
|
convert a value to a RDBMS indepdenant MDB type
Overrides MDB_Common::convertResult() (convert a value to a RDBMS indepdenant MDB type)
Parameters:
currId [line 715]
mixed currId(
string
$seq_name)
|
|
returns the current id of a sequence
Overrides MDB_Common::currId() (returns the current id of a sequence)
Parameters:
endOfResult [line 399]
mixed endOfResult(
resource
$result)
|
|
check if the end of the result set has been reached
Overrides MDB_Common::endOfResult() (check if the end of the result set has been reached)
Parameters:
endOfResultLob [line 430]
mixed endOfResultLob(
int
$lob)
|
|
Determine whether it was reached the end of the large object and therefore there is no more data to be read for the its input stream.
Overrides MDB_Common::endOfResultLob() (Determine whether it was reached the end of the large object and therefore there is no more data to be read for the its input stream.)
Parameters:
errorNative [line 121]
Get the native error code of the last error (if any) that occured on the current connection.
Overrides MDB_Common::errorNative() (returns an errormessage, provides by the database)
fetch [line 481]
mixed fetch(
resource
$result, int
$row, int
$field)
|
|
fetch value from a result set
Overrides MDB_Common::fetch() (fetch value from a result set)
Parameters:
fetchBlob [line 516]
mixed fetchBlob(
resource
$result, int
$row, int
$field)
|
|
fetch a blob value from a result set
Overrides MDB_Common::fetchBlob() (fetch a blob value from a result set)
Parameters:
fetchClob [line 499]
mixed fetchClob(
resource
$result, int
$row, int
$field)
|
|
fetch a clob value from a result set
Overrides MDB_Common::fetchClob() (fetch a clob value from a result set)
Parameters:
fetchInto [line 732]
int fetchInto(
resource
$result, [int
$fetchmode = MDB_FETCHMODE_DEFAULT], [int
$rownum = 0])
|
|
Fetch a row and insert the data into an existing array.
Overrides MDB_Common::fetchInto() (Fetch a row and return data in an array.)
Parameters:
freeBlobValue [line 680]
MDB_OK freeBlobValue(
resource
$prepared_query, string
$blob)
|
|
free a binary large object
Overrides MDB_Common::freeBlobValue() (free a binary large object)
Parameters:
freeClobValue [line 645]
MDB_OK freeClobValue(
resource
$prepared_query, string
$clob,
&$value, string
$value)
|
|
free a chracter large object
Overrides MDB_Common::freeClobValue() (free a character large object)
Parameters:
freeResult [line 580]
bool freeResult(
$result
$result)
|
|
Free the internal resources associated with $result.
Overrides MDB_Common::freeResult() (Free the internal resources associated with $result.)
Parameters:
get [line 590]
get [line 609]
string get(
resource
$prepared_query, $parameter
$parameter, $clob
$clob)
|
|
Convert a text value into a DBMS specific format that is suitable to compose query statements.
Parameters:
getBlobValue [line 664]
string getBlobValue(
resource
$prepared_query, $parameter
$parameter, $blob
$blob)
|
|
Convert a text value into a DBMS specific format that is suitable to compose query statements.
Overrides MDB_Common::getBlobValue() (Convert a text value into a DBMS specific format that is suitable to compose query statements.)
Parameters:
getClobValue [line 628]
string getClobValue(
resource
$prepared_query, $parameter
$parameter, $clob
$clob)
|
|
Convert a text value into a DBMS specific format that is suitable to compose query statements.
Overrides MDB_Common::getClobValue() (Convert a text value into a DBMS specific format that is suitable to compose query statements.)
Parameters:
getColumnNames [line 368]
mixed getColumnNames(
resource
$result)
|
|
Retrieve the names of columns returned by the DBMS in a query result.
Overrides MDB_Common::getColumnNames() (Retrieve the names of columns returned by the DBMS in a query result.)
Parameters:
nextId [line 699]
mixed nextId(
string
$seq_name, [boolean
$ondemand = FALSE])
|
|
returns the next free id of a sequence
Overrides MDB_Common::nextId() (returns the next free id of a sequence)
Parameters:
nextResult [line 750]
true nextResult(
a
$result)
|
|
Move the internal mysql result pointer to the next available result Currently not supported
Parameters:
numCols [line 384]
mixed numCols(
resource
$result)
|
|
Count the number of columns returned by the DBMS in a query result.
Overrides MDB_Common::numCols() (Count the number of columns returned by the DBMS in a query result.)
Parameters:
numRows [line 565]
mixed numRows(
ressource
$result)
|
|
returns the number of rows in a result object
Overrides MDB_Common::numRows() (returns the number of rows in a result object)
Parameters:
query [line 251]
mixed query(
string
$query, [array
$types = NULL])
|
|
Send a query to the database and return any results
Overrides MDB_Common::query() (Send a query to the database and return any results)
Parameters:
replace [line 344]
mixed replace(
string
$table, array
$fields)
|
|
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.
Overrides MDB_Common::replace() (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.)
Parameters:
resultIsNull [line 534]
mixed resultIsNull(
resource
$result, int
$row, int
$field)
|
|
Determine whether the value of a query result located in given row and field is a NULL.
Overrides MDB_Common::resultIsNull() (Determine whether the value of a query result located in given row and field is a NULL.)
Parameters:
rollback [line 201]
Cancel any database changes done during a transaction 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.
Overrides MDB_Common::rollback() (Cancel any database changes done during a transaction 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.)
subSelect [line 271]
string subSelect(
string
$query, [string
$quote = FALSE])
|
|
simple subselect emulation for Mysql
Overrides MDB_Common::subSelect() (simple subselect emulation: leaves the query untouched for all RDBMS that support subselects)
Parameters:
tableInfo [line 766]
array tableInfo(
resource
$result, [mixed
$mode = NULL])
|
|
returns meta data about the result set
Overrides MDB_Common::tableInfo() (returns meta data about the result set)
Parameters:
xxxRaiseError [line 140]
object a xxxRaiseError(
[integer
$errno = NULL], [string
$message = NULL])
|
|
This method is used to communicate an error and invoke error callbacks etc. Basically a wrapper for MDB::raiseError that checks for native error msgs.
Parameters:
Documentation generated on Mon, 11 Mar 2019 10:15:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|