Statement
Less than 1 minute
Statement
Interface for preparing and managing SQL statement objects.
interface StatementProvides methods to prepare SQL queries using either a QueryBuilder or raw SQL string, returning a driver-specific statement object for execution.
Methods
prepareQuery
Create a new statement object.
public prepareQuery(QueryBuilder $sql): DBIStatement|falseReturns: Hazaar\DBI\Statement|false
This method is used to create a new statement object from a SQL string. The SQL string is passed to the database driver and prepared for execution. The statement object is then returned.
Parameters
| Parameter | Type | Description |
|---|---|---|
$sql | Hazaar\DBI\Interface\QueryBuilder |
prepare
Prepares a SQL statement for execution.
public prepare(string $sql): DBIStatement|falseReturns: Hazaar\DBI\Statement|false
Parameters
| Parameter | Type | Description |
|---|---|---|
$sql | string |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000