Свойство | Type | Description | |
---|---|---|---|
$onConnect | function (Connection $connection); Occurs after connection is established | ||
$onQuery | function (Connection $connection, ResultSet|DriverException $result); Occurs after query is executed |
Méthode | Description | |
---|---|---|
__construct ( $dsn, $user = NULL, $password = NULL, array $options = NULL ) | ||
beginTransaction ( ) : void | ||
commit ( ) : void | ||
connect ( ) : void | ||
disconnect ( ) : 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() | |
getDsn ( ) : string | ||
getInsertId ( $name = NULL ) : string | ||
getPdo ( ) : PDO | ||
getSupplementalDriver ( ) : Nette\Database\ISupplementalDriver | ||
literal ( $value, $params ) : |
||
preprocess ( $sql, $params ) : [string, | ||
query ( $sql, $params ) : |
Generates and executes SQL query. | |
queryArgs ( $sql, array $params ) : |
||
quote ( $string, $type = PDO::PARAM_STR ) : string | ||
reconnect ( ) : void | ||
rollBack ( ) : void |
public __construct ( $dsn, $user = NULL, $password = NULL, array $options = NULL ) | ||
$options | array |
public fetch ( $sql, $params ) : Nette\Database\Row | ||
Résultat | Nette\Database\Row |
public fetchField ( $sql, $params ) : mixed | ||
Résultat | mixed |
public fetchPairs ( $sql, $params ) : array | ||
Résultat | array |
public getSupplementalDriver ( ) : Nette\Database\ISupplementalDriver | ||
Résultat | Nette\Database\ISupplementalDriver |
public static literal ( $value, $params ) : |
||
Résultat |
public query ( $sql, $params ) : |
||
Résultat |
public $onConnect |