ZM\MySQL\MySQLWrapper
__construct
public function __construct(): mixed
描述
MySQLWrapper constructor.
返回
getDatabase
public function getDatabase(): string
描述
wrapper method
返回
isAutoCommit
public function isAutoCommit(): bool
描述
wrapper method
返回
setAutoCommit
public function setAutoCommit(bool $auto_commit): mixed
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| auto_commit |
bool |
|
返回
fetchAssociative
public function fetchAssociative(string $query, array $params, array $types): array|false
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| query |
string |
|
| params |
array |
|
| types |
array |
|
返回
fetchNumeric
public function fetchNumeric(string $query, array $params, array $types): array|false
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| query |
string |
|
| params |
array |
|
| types |
array |
|
返回
fetchOne
public function fetchOne(string $query, array $params, array $types): false|mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| query |
string |
|
| params |
array |
|
| types |
array |
|
返回
isTransactionActive
public function isTransactionActive(): bool
描述
wrapper method
返回
delete
public function delete(string $table, array $criteria, array $types): int
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| table |
string |
表 |
| criteria |
array |
|
| types |
array |
|
返回
setTransactionIsolation
public function setTransactionIsolation(int $level): int
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| level |
int |
Sets the transaction isolation level |
返回
getTransactionIsolation
public function getTransactionIsolation(): int
描述
wrapper method
返回
update
public function update(string $table, array $data, array $criteria, array $types): int
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| table |
string |
表名 |
| data |
array |
|
| criteria |
array |
|
| types |
array |
|
返回
insert
public function insert(string $table, array $data, array $types): int
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| table |
string |
表名 |
| data |
array |
|
| types |
array |
|
返回
quoteIdentifier
public function quoteIdentifier(string $str): string
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| str |
string |
The name to be quoted |
返回
quote
public function quote(mixed $value, null|int|string|Type $type): mixed
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| value |
mixed |
|
| type |
null |
int |
返回
getTransactionNestingLevel
public function getTransactionNestingLevel(): int
描述
wrapper method
返回
lastInsertId
public function lastInsertId(null|string $name): false|int|string
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| name |
null |
string |
返回
transactional
public function transactional(Closure $func): mixed
描述
overwrite method to $this->connection->transactional()
参数
返回
setNestTransactionsWithSavepoints
public function setNestTransactionsWithSavepoints(bool $nest_transactions_with_savepoints): mixed
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| nest_transactions_with_savepoints |
bool |
|
返回
getNestTransactionsWithSavepoints
public function getNestTransactionsWithSavepoints(): bool
描述
wrapper method
返回
beginTransaction
public function beginTransaction(): bool
描述
wrapper method
返回
commit
public function commit(): bool
描述
wrapper method
返回
rollBack
public function rollBack(): bool
描述
wrapper method
返回
createSavepoint
public function createSavepoint(string $savepoint): mixed
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| savepoint |
string |
the name of the savepoint to create |
返回
releaseSavepoint
public function releaseSavepoint(string $savepoint): mixed
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| savepoint |
string |
the name of the savepoint to release |
返回
rollbackSavepoint
public function rollbackSavepoint(string $savepoint): mixed
描述
wrapper method
参数
| 名称 |
类型 |
描述 |
| savepoint |
string |
the name of the savepoint to rollback to |
返回
setRollbackOnly
public function setRollbackOnly(): mixed
描述
wrapper method
返回
isRollbackOnly
public function isRollbackOnly(): bool
描述
wrapper method
返回
createQueryBuilder
public function createQueryBuilder(): ZM\MySQL\MySQLQueryBuilder
描述
overwrite method to $this->connection->createQueryBuilder
返回
| 类型 |
描述 |
| ZM\MySQL\MySQLQueryBuilder |
|