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
Commit a database transaction
commit() : bool
Method to emulate PDO->errorCode
errorCode() : array
Method to emulate PDO->errorInfo / PDOStatement->errorInfo
errorInfo() : 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
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
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
Empty a database table
truncate(string $table)
Properties
Reference to the connection resource
$conn : resource
Reference to the last query executed
$statement : object
Reference to the resource returned by
the last query executed
$statement_link : resource
Reference to the current transaction
$trans : resource