Class: DB_msql
Source Location: /DB-1.9.2/DB/msql.php
PEAR
|
--DB_common
|
--DB_msql
The methods PEAR DB uses to interact with PHP's msql extension for interacting with Mini SQL databases
Author(s):
Version:
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 133]
This constructor calls parent::__construct()
Overrides DB_common::__construct() (This constructor calls $this->PEAR('DB_Error'))
affectedRows [line 416]
Determines the number of rows affected by a data maniuplation query - is returned for queries that don't manipulate data.
Overrides DB_common::affectedRows() (Determines the number of rows affected by a data maniuplation query)
connect [line 167]
int connect(
array
$dsn, [bool
$persistent = false])
|
|
Connect to the database server, log in and open the database Don't call this method directly. Use DB::connect() instead. Example of how to connect: require_once 'DB.php';
// $dsn = 'msql://hostname/dbname'; // use a TCP connection
$dsn = 'msql:///dbname'; // use a socket
$options = array(
);
if (PEAR::isError($db)) {
die($db->getMessage());
}
Parameters:
createSequence [line 485]
int createSequence(
string
$seq_name)
|
|
Creates a new sequence Also creates a new table to associate the sequence with. Uses a separate table to ensure portability with other drivers.
Overrides DB_common::createSequence() (Creates a new sequence)
Parameters:
disconnect [line 225]
Disconnects from the database server
dropSequence [line 510]
errorCode [line 614]
integer errorCode(
string
$errormsg)
|
|
Determines PEAR::DB error code from the database's text error message
Overrides DB_common::errorCode() (Maps native error codes to DB's portable ones)
Parameters:
errorNative [line 599]
Gets the DBMS' native error message produced by the last query
Overrides DB_common::errorNative() (Gets the DBMS' native error code produced by the last query)
escapeSimple [line 562]
string escapeSimple(
string
$str)
|
|
Escapes a string according to the current DBMS's standards
Overrides DB_common::escapeSimple() (Escapes a string according to the current DBMS's standards)
Parameters:
fetchInto [line 308]
mixed fetchInto(
resource
$result,
&$arr, int
$fetchmode, [int
$rownum = null], array
$arr)
|
|
Places a row from the result set into the given array Formating of the array and the data therein are configurable. See DB_result::fetchInto() for more information. This method is not meant to be called directly. Use DB_result::fetchInto() instead. It can't be declared "protected" because DB_result is a separate object. PHP's mSQL extension did weird things with NULL values prior to PHP 4.3.11 and 5.0.4. Make sure your version of PHP meets or exceeds those versions.
Parameters:
freeResult [line 351]
bool freeResult(
resource
$result)
|
|
Deletes the result set and frees the memory occupied by the result set This method is not meant to be called directly. Use DB_result::free() instead. It can't be declared "protected" because DB_result is a separate object.
Parameters:
getSpecialQuery [line 797]
array getSpecialQuery(
string
$type)
|
|
Obtain a list of a given type of objects
Overrides DB_common::getSpecialQuery() (Obtains the query string needed for listing a given type of objects)
Parameters:
msqlRaiseError [line 582]
object the msqlRaiseError(
[int
$errno = null])
|
|
Produces a DB_Error object regarding the current problem
Parameters:
nextId [line 440]
int nextId(
string
$seq_name, [boolean
$ondemand = true])
|
|
Returns the next free id in a sequence
Overrides DB_common::nextId() (Returns the next free id in a sequence)
Parameters:
nextResult [line 276]
true nextResult(
a
$result)
|
|
Move the internal msql result pointer to the next available result
Parameters:
numCols [line 372]
int numCols(
resource
$result)
|
|
Gets the number of columns in a result set This method is not meant to be called directly. Use DB_result::numCols() instead. It can't be declared "protected" because DB_result is a separate object.
Parameters:
numRows [line 397]
int numRows(
resource
$result)
|
|
Gets the number of rows in a result set This method is not meant to be called directly. Use DB_result::numRows() instead. It can't be declared "protected" because DB_result is a separate object.
Overrides DB_common::numRows() (Determines the number of rows in a query result)
Parameters:
quoteFloat [line 545]
string quoteFloat(
float
$float)
|
|
Formats a float value for use within a query in a locale-independent manner.
Overrides DB_common::quoteFloat() (Formats a float value for use within a query in a locale-independent manner.)
Parameters:
quoteIdentifier [line 528]
object a quoteIdentifier(
string
$str)
|
|
mSQL does not support delimited identifiers
Overrides DB_common::quoteIdentifier() (Quotes a string so it can be safely used as a table or column name)
Parameters:
simpleQuery [line 244]
mixed simpleQuery(
string
$query)
|
|
Sends a query to the database server
Parameters:
tableInfo [line 705]
array tableInfo(
object|string
$result, [int
$mode = null])
|
|
Returns information about a table or a result set
Overrides DB_common::tableInfo() (Returns information about a table or a result set)
Parameters:
Documentation generated on Mon, 11 Mar 2019 16:04:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|