Method |
Description |
|
__construct ( Connection $connection, Nette\Database\IStructure $structure, Nette\Database\IConventions $conventions = NULL, Nette\Caching\IStorage $cacheStorage = NULL ) |
|
|
beginTransaction ( ) : void |
|
|
commit ( ) : void |
|
|
fetch ( $sql, $params ) : Nette\Database\Row |
Shortcut for query()->fetch() |
|
fetchAll ( $sql, $params ) : array |
Shortcut for query()->fetchAll() |
|
fetchField ( $sql, $params ) : mixed |
Shortcut for query()->fetchField() |
|
fetchPairs ( $sql, $params ) : array |
Shortcut for query()->fetchPairs() |
|
getConnection ( ) : Connection |
|
|
getConventions ( ) : Nette\Database\IConventions |
|
|
getInsertId ( $name = NULL ) : string |
|
|
getStructure ( ) : Nette\Database\IStructure |
|
|
literal ( $value, $params ) : SqlLiteral |
|
|
query ( $sql, $params ) : ResultSet |
Generates and executes SQL query. |
|
queryArgs ( $sql, array $params ) : ResultSet |
|
|
rollBack ( ) : void |
|
|
table ( $table ) : Selection |
|
|