[ Index ] |
|
Code source de Dolibarr 2.0.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 843 lignes (26 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
DB_mysql:: (24 méthodes):
DB_mysql()
connect()
disconnect()
simpleQuery()
nextResult()
fetchInto()
freeResult()
numCols()
numRows()
autoCommit()
commit()
rollback()
affectedRows()
errorNative()
nextId()
createSequence()
dropSequence()
_BCsequence()
quote()
modifyQuery()
modifyLimitQuery()
mysqlRaiseError()
tableInfo()
getSpecialQuery()
DB_mysql() X-Ref |
DB_mysql constructor. |
connect($dsninfo, $persistent = false) X-Ref |
Connect to a database and log in as the specified user. param: $dsn the data source name (see DB::parseDSN for syntax) param: $persistent (optional) whether the connection should return: int DB_OK on success, a DB error on failure |
disconnect() X-Ref |
Log out and disconnect from the database. return: bool TRUE on success, FALSE if not connected. |
simpleQuery($query) X-Ref |
Send a query to MySQL and return the results as a MySQL resource identifier. param: the SQL query return: mixed returns a valid MySQL result for successful SELECT |
nextResult($result) X-Ref |
Move the internal mysql result pointer to the next available result This method has not been implemented yet. param: a valid sql result resource return: false |
fetchInto($result, &$arr, $fetchmode, $rownum=null) X-Ref |
Fetch a row and insert the data into an existing array. param: $result MySQL result identifier param: $arr (reference) array where data from the row is stored param: $fetchmode how the array data should be indexed param: $rownum the row number to fetch return: int DB_OK on success, a DB error on failure |
freeResult($result) X-Ref |
Free the internal resources associated with $result. param: $result MySQL result identifier or DB statement identifier return: bool TRUE on success, FALSE if $result is invalid |
numCols($result) X-Ref |
Get the number of columns in a result set. param: $result MySQL result identifier return: int the number of columns per row in $result |
numRows($result) X-Ref |
Get the number of rows in a result set. param: $result MySQL result identifier return: int the number of rows in $result |
autoCommit($onoff = false) X-Ref |
Enable/disable automatic commits |
commit() X-Ref |
Commit the current transaction. |
rollback() X-Ref |
Roll back (undo) the current transaction. |
affectedRows() X-Ref |
Gets the number of rows affected by the data manipulation query. For other queries, this function returns 0. return: number of rows affected by the last query |
errorNative() X-Ref |
Get the native error code of the last error (if any) that occured on the current connection. return: int native MySQL error code |
nextId($seq_name, $ondemand = true) X-Ref |
Get the next value in a sequence. We emulate sequences for MySQL. Will create the sequence if it does not exist. param: string $seq_name the name of the sequence param: bool $ondemand whether to create the sequence table on demand return: mixed a sequence integer, or a DB error |
createSequence($seq_name) X-Ref |
Pas de description |
dropSequence($seq_name) X-Ref |
Pas de description |
_BCsequence($seqname) X-Ref |
Backwards compatibility with old sequence emulation implementation (clean up the dupes) param: string $seqname The sequence name to clean up return: mixed DB_Error or true |
quote($str = null) X-Ref |
Quote the given string so it can be safely used within string delimiters in a query. param: $string mixed Data to be quoted return: mixed "NULL" string, quoted string or original data |
modifyQuery($query, $subject = null) X-Ref |
Pas de description |
modifyLimitQuery($query, $from, $count) X-Ref |
Pas de description |
mysqlRaiseError($errno = null) X-Ref |
Pas de description |
tableInfo($result, $mode = null) X-Ref |
Pas de description |
getSpecialQuery($type) X-Ref |
Returns the query needed to get some backend info param: string $type What kind of info you want to retrieve return: string The SQL query string |
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |