class OCI8Connection implements Connection (View source)

OCI8 implementation of the Connection interface.

Properties

protected resource $dbh
protected int $executeMode

Methods

__construct($username, $password, $db, $charset = null, $sessionMode = OCI_DEFAULT, $persistent = false)

Create a Connection to an Oracle Database using oci8 extension.

prepare($prepareString)

Create a non-executed prepared statement.

query()

No description

quote($value, $type = \PDO::PARAM_STR)

Quote input value.

exec($statement)

No description

lastInsertId($name = null)

No description

getExecuteMode()

Return the current execution mode.

beginTransaction()

Start a transactiom

commit()

No description

rollBack()

No description

errorCode()

No description

errorInfo()

No description

Details

__construct($username, $password, $db, $charset = null, $sessionMode = OCI_DEFAULT, $persistent = false)

Create a Connection to an Oracle Database using oci8 extension.

Parameters

$username
$password
$db
$charset
$sessionMode
$persistent

prepare($prepareString)

Create a non-executed prepared statement.

Parameters

$prepareString

query()

quote($value, $type = \PDO::PARAM_STR)

Quote input value.

Parameters

$value
$type

exec($statement)

Parameters

$statement

lastInsertId($name = null)

Parameters

$name

getExecuteMode()

Return the current execution mode.

beginTransaction()

Start a transactiom

Oracle has to explicitly set the autocommit mode off. That means after connection, a commit or rollback there is always automatically opened a new transaction.

commit()

Exceptions

OCI8Exception

rollBack()

Exceptions

OCI8Exception

errorCode()

errorInfo()