Class: DB_oci8
Source Location: /DB-1.6.7/DB/oci8.php
PEAR
|
--DB_common
|
--DB_oci8
Database independent query interface definition for PHP's Oracle 8 call-interface extension.
Author(s):
Version:
- $Id: oci8.php,v 1.67 2004/06/24 15:24:56 danielc Exp $
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
DB_oci8 (Constructor) [line 68]
affectedRows [line 566]
Gets the number of rows affected by the last query. if the last query was a select, returns 0.
Overrides DB_common::affectedRows() (Returns the affected rows of a query)
autoCommit [line 517]
void autoCommit(
[$onoff
$onoff = false])
|
|
Enable/disable automatic commits
Overrides DB_common::autoCommit() (enable automatic Commit)
Parameters:
commit [line 531]
connect [line 110]
int connect(
$dsn
$dsninfo, [$persistent
$persistent = false])
|
|
Connect to a database and log in as the specified user.
Parameters:
createSequence [line 704]
int createSequence(
string
$seq_name)
|
|
Creates a new sequence
Overrides DB_common::createSequence() (Creates a new sequence)
Parameters:
disconnect [line 147]
Log out and disconnect from the database.
dropSequence [line 724]
errorNative [line 350]
Get the native error code of the last error (if any) that occured on the current connection. This does not work, as OCIError does not work unless given a statement. If OCIError does return something, so will this.
Overrides DB_common::errorNative() (Returns an errormessage, provides by the database)
execute [line 450]
int &execute(
resource
$stmt, [mixed
$data = array()])
|
|
Executes a DB statement prepared with prepare().
Overrides DB_common::execute() (Executes a DB statement prepared with prepare())
Parameters:
freePrepared [line 277]
bool freePrepared(
$stmt
$stmt)
|
|
Free the internal resources associated with a prepared query.
Overrides DB_common::freePrepared() (Free the resource used in a prepared query)
Parameters:
freeResult [line 265]
bool freeResult(
$result
$result)
|
|
Free the internal resources associated with $result.
Parameters:
getSpecialQuery [line 765]
string getSpecialQuery(
string
$type)
|
|
Returns the query needed to get some backend info
Overrides DB_common::getSpecialQuery() (Returns the query needed to get some backend info)
Parameters:
modifyLimitQuery [line 604]
string modifyLimitQuery(
string
$query, int
$from, int
$count, [
$params = array()])
|
|
Emulate the row limit support altering the query
Parameters:
modifyQuery [line 581]
void modifyQuery(
$query)
|
|
Parameters:
nextId [line 666]
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 202]
true nextResult(
a
$result)
|
|
Move the internal oracle result pointer to the next available result
Parameters:
numCols [line 330]
int numCols(
$result
$result)
|
|
Get the number of columns in a result set.
Parameters:
numRows [line 291]
oci8RaiseError [line 743]
object DB oci8RaiseError(
[integer
$errno = null])
|
|
Gather information about an error, then use that info to create a DB error object and finally return that object.
Parameters:
prepare [line 390]
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:
rollback [line 548]
Roll back all uncommitted transactions on the current connection.
Overrides DB_common::rollback() (starts a rollback)
simpleQuery [line 167]
int simpleQuery(
$query
$query)
|
|
Send a query to oracle and return the results as an oci8 resource identifier.
Parameters:
tableInfo [line 795]
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 13:55:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|