Relational Database Driver - Base Class.
private string $lastQueryString
public exec(string $sql): int
| Parameter | Type | Description |
|---|
$sql | string | |
public prepare(string $sql): Statement
| Parameter | Type | Description |
|---|
$sql | string | |
public prepareQuery(QueryBuilder $queryBuilder): Statement
| Parameter | Type | Description |
|---|
$queryBuilder | QueryBuilder | |
public lastQueryString(): string
public query(string $sql, array $parameters): Result
| Parameter | Type | Description |
|---|
$sql | string | |
$parameters | array | |
public quote(mixed $string, int $type = '\PDO::PARAM_STR'): string
| Parameter | Type | Description |
|---|
$string | mixed | |
$type | int | |
public setTimezone(string $tz): bool
| Parameter | Type | Description |
|---|
$tz | string | |
public lastInsertId(): string
public errorCode(): string
protected connect(string $dsn, ?string $username, ?string $password, ?array $driverOptions): bool
| Parameter | Type | Description |
|---|
$dsn | string | |
$username | string | |
$password | string | |
$driverOptions | array | |
protected mkdsn(array $config): string
| Parameter | Type | Description |
|---|
$config | array | |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:29 +0000