Connection interface. Driver connections must implement this interface.
This resembles (a subset of) the PDO interface.
Methods | ||
---|---|---|
public
|
prepare(string $sql): Statement
|
# |
public
|
query(): Statement
|
# |
public
|
quote(mixed $value, int $type = ParameterType::STRING): mixed
|
# |
public
|
exec(string $sql): int|string
|
# |
public
|
lastInsertId(string|null $name = null): string|int|false
|
# |
public
|
beginTransaction(): bool
|
# |
public
|
commit(): bool
|
# |
public
|
rollBack(): bool
|
# |
public
|
errorCode(): string|null
|
# |
public
|
errorInfo(): mixed[]
|
# |