Class: DB_oci8
Source Location: /DB-1.9.2/DB/oci8.php
PEAR
|
--DB_common
|
--DB_oci8
The methods PEAR DB uses to interact with PHP's oci8 extension for interacting with Oracle databases
Author(s):
Version:
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 180]
This constructor calls parent::__construct()
Overrides DB_common::__construct() (This constructor calls $this->PEAR('DB_Error'))
affectedRows [line 761]
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 711]
int autoCommit(
[bool
$onoff = false])
|
|
Enables or disables automatic commits
Overrides DB_common::autoCommit() (Enables or disables automatic commits)
Parameters:
commit [line 725]
Commits the current transaction
Overrides DB_common::commit() (Commits the current transaction)
connect [line 216]
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. If PHP is at version 5.0.0 or greater: - Generally, oci_connect() or oci_pconnect() are used.
- But if the new_link DSN option is set to true, oci_new_connect()
is used.
When using PHP version 4.x, OCILogon() or OCIPLogon() are used. PEAR DB's oci8 driver supports the following extra DSN options: - charset The character set to be used on the connection.
Only used if PHP is at version 5.0.0 or greater
and the Oracle server is at 9.2 or greater.
Available since PEAR DB 1.7.0.
- new_link If set to true, causes subsequent calls to
connect() to return a new connection link
instead of the existing one. WARNING: this is
not portable to other DBMS's.
Available since PEAR DB 1.7.0.
Parameters:
createSequence [line 913]
int createSequence(
string
$seq_name)
|
|
Creates a new sequence
Overrides DB_common::createSequence() (Creates a new sequence)
Parameters:
disconnect [line 290]
Disconnects from the database server
dropSequence [line 932]
errorNative [line 976]
Gets the DBMS' native error code produced by the last query
Overrides DB_common::errorNative() (Gets the DBMS' native error code produced by the last query)
execute [line 630]
mixed &execute(
resource
$stmt, [mixed
$data = array()])
|
|
Executes a DB statement prepared with prepare(). To determine how many rows of a result set get buffered using ocisetprefetch(), see the "result_buffering" option in setOptions(). This option was added in Release 1.7.0.
Overrides DB_common::execute() (Executes a DB statement prepared with prepare())
Parameters:
fetchInto [line 384]
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:
freePrepared [line 444]
bool freePrepared(
resource
$stmt, [bool
$free_resource = true])
|
|
Frees the internal resources associated with a prepared query
Overrides DB_common::freePrepared() (Frees the internal resources associated with a prepared query)
Parameters:
freeResult [line 427]
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 1117]
string getSpecialQuery(
string
$type)
|
|
Obtains the query string needed for listing a given type of objects
Overrides DB_common::getSpecialQuery() (Obtains the query string needed for listing a given type of objects)
Parameters:
modifyLimitQuery [line 815]
string modifyLimitQuery(
string
$query, int
$from, int
$count, [mixed
$params = array()])
|
|
Adds LIMIT clauses to a query string according to current DBMS standards
Overrides DB_common::modifyLimitQuery() (Adds LIMIT clauses to a query string according to current DBMS standards)
Parameters:
modifyQuery [line 787]
string modifyQuery(
string
$query)
|
|
Changes a query string for various DBMS specific reasons "SELECT 2+2" must be "SELECT 2+2 FROM dual" in Oracle.
Overrides DB_common::modifyQuery() (Changes a query string for various DBMS specific reasons)
Parameters:
nextId [line 877]
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 356]
true nextResult(
a
$result)
|
|
Move the internal oracle result pointer to the next available result
Parameters:
numCols [line 524]
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 481]
int numRows(
resource
$result)
|
|
Gets the number of rows in a result set Only works if the DB_PORTABILITY_NUMROWS portability option is turned on. 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:
oci8RaiseError [line 953]
object the oci8RaiseError(
[int
$errno = null])
|
|
Produces a DB_Error object regarding the current problem
Parameters:
prepare [line 563]
mixed prepare(
string
$query)
|
|
Prepares a query for multiple execution with execute(). With oci8, this is emulated. prepare() requires a generic query as string like INSERT INTO numbers VALUES (?, ?, ?)
. The ? characters are placeholders. Three types of placeholders can be used: - ? a quoted scalar value, i.e. strings, integers
- ! value is inserted 'as is'
- & requires a file name. The file's contents get
inserted into the query (i.e. saving binary
data in a db)
Use backslashes to escape placeholder characters if you don't want them to be interpreted as placeholders. Example: "UPDATE foo SET col=? WHERE col='over \& under'"
Overrides DB_common::prepare() (Prepares a query for multiple execution with execute())
Parameters:
quoteFloat [line 1143]
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:
rollback [line 742]
simpleQuery [line 317]
mixed simpleQuery(
string
$query)
|
|
Sends a query to the database server To determine how many rows of a result set get buffered using ocisetprefetch(), see the "result_buffering" option in setOptions(). This option was added in Release 1.7.0.
Parameters:
tableInfo [line 1012]
array tableInfo(
object|string
$result, [int
$mode = null])
|
|
Returns information about a table or a result set NOTE: only supports 'table' and 'flags' if $result is a table name. NOTE: flags won't contain index information.
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.
|
|