Firebird Database class

PDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.
package Query
subpackage Drivers

 Methods

Open the link to the database

__construct(string $dbpath, string $user = 'SYSDBA', string $pass = 'masterkey', array $options = array()

Parameters

$dbpath

string

$user

string

$pass

string

$options

array

Start a database transaction

beginTransaction() : bool

Returns

bool

Commit a database transaction

commit() : bool

Returns

bool

Method to emulate PDO->errorCode

errorCode() : array

Returns

array

Method to emulate PDO->errorInfo / PDOStatement->errorInfo

errorInfo() : array

Returns

array

Create sql for batch insert

insert_batch(string $table, array $data = array()) : string

Parameters

$table

string

$data

array

Returns

string

Emulate PDO prepare

prepare(string $query, array $options = NULL) : \Firebird
fluent This method is part of a fluent interface and will return the same instance

Parameters

$query

string

$options

array

Exceptions

\PDOException

Returns

\Firebird

Prepare and execute a query

prepare_execute(string $sql, array $args) : resource

Parameters

$sql

string

$args

array

Returns

resource

Bind a prepared query with arguments for executing

prepare_query(string $sql, array $params) : NULL

Parameters

$sql

string

$params

array

Returns

NULL

Wrapper public function to better match PDO

query(string $sql) : \Firebird
fluent This method is part of a fluent interface and will return the same instance

Parameters

$sql

string

Exceptions

\PDOException

Returns

\Firebird

Method to emulate PDO->quote

quote(string $str, int $param_type = NULL) : string

Parameters

$str

string

$param_type

int

Returns

string

Rollback a transaction

rollBack() : bool

Returns

bool

Empty a database table

truncate(string $table) 

Parameters

$table

string

 Properties

 

Reference to the connection resource

$conn : resource

Default

 

Reference to the last query executed

$statement : object

Default

   

Reference to the current transaction

$trans : resource

Default