Class: DB_odbc
Source Location: /DB-1.9.2/DB/odbc.php
PEAR
|
--DB_common
|
--DB_odbc
The methods PEAR DB uses to interact with PHP's odbc extension for interacting with databases via ODBC connections
Author(s):
Version:
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 160]
This constructor calls parent::__construct()
Overrides DB_common::__construct() (This constructor calls $this->PEAR('DB_Error'))
affectedRows [line 408]
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)
autoCommit [line 586]
int autoCommit(
[bool
$onoff = false])
|
|
Enables or disables automatic commits
Overrides DB_common::autoCommit() (Enables or disables automatic commits)
Parameters:
commit [line 602]
Commits the current transaction
Overrides DB_common::commit() (Commits the current transaction)
connect [line 181]
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. PEAR DB's odbc driver supports the following extra DSN options: - cursor The type of cursor to be used for this connection.
Parameters:
createSequence [line 549]
int createSequence(
string
$seq_name)
|
|
Creates a new sequence
Overrides DB_common::createSequence() (Creates a new sequence)
Parameters:
disconnect [line 240]
Disconnects from the database server
dropSequence [line 570]
errorNative [line 693]
Gets the DBMS' native error code and message produced by the last query
Overrides DB_common::errorNative() (Gets the DBMS' native error code produced by the last query)
fetchInto [line 317]
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.
Parameters:
freeResult [line 368]
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 806]
string getSpecialQuery(
string
$type)
|
|
Obtains the query string needed for listing a given type of objects Thanks to symbol1@gmail.com and Philippe.Jausions@11abacus.com.
Overrides DB_common::getSpecialQuery() (Obtains the query string needed for listing a given type of objects)
Parameters:
nextId [line 499]
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 289]
true nextResult(
a
$result)
|
|
Move the internal odbc result pointer to the next available result
Parameters:
numCols [line 389]
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 439]
int numRows(
resource
$result)
|
|
Gets the number of rows in a result set Not all ODBC drivers support this functionality. If they don't a DB_Error object for DB_ERROR_UNSUPPORTED is returned. 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:
odbcRaiseError [line 641]
object the odbcRaiseError(
[int
$errno = null])
|
|
Produces a DB_Error object regarding the current problem
Parameters:
quoteIdentifier [line 467]
string quoteIdentifier(
string
$str)
|
|
Quotes a string so it can be safely used as a table or column name Use 'mssql' as the dbsyntax in the DB DSN only if you've unchecked "Use ANSI quoted identifiers" when setting up the ODBC data source.
Overrides DB_common::quoteIdentifier() (Quotes a string so it can be safely used as a table or column name)
Parameters:
rollback [line 618]
simpleQuery [line 259]
mixed simpleQuery(
string
$query)
|
|
Sends a query to the database server
Parameters:
tableInfo [line 720]
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:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|