Connection interface. Driver connections must implement this interface.
| Methods | ||
|---|---|---|
public
|
prepare(string $sql): Statement
|
# |
public
|
query(string $sql): Result
|
# |
public
|
quote(mixed $value, int $type = ParameterType::STRING): mixed
|
# |
public
|
exec(string $sql): int
|
# |
public
|
lastInsertId(string|null $name = null): string|int|false
|
# |
public
|
beginTransaction(): bool
|
# |
public
|
commit(): bool
|
# |
public
|
rollBack(): bool
|
# |
public
|
getNativeConnection(): resource|object
|
# |