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): falseThis 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 | QueryBuilder |
prepare
Prepares a SQL statement for execution.
public prepare(string $sql): falseParameters
| Parameter | Type | Description |
|---|---|---|
$sql | string |
Generated by Hazaar API Doc Generator on Fri, 05 Jun 2026 06:08:15 +0000