Explorer
class Explorer
The central access point to Nette Database functionality.
Constants
private Drivers |
|
private TypeConverterOptions |
|
Properties
$onConnect | |||
$onQuery |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Shortcut for query()->fetch()
Shortcut for query()->fetchAssoc()
Shortcut for query()->fetchField()
Shortcut for query()->fetchList()
Shortcut for query()->fetchList()
Shortcut for query()->fetchPairs()
Shortcut for query()->fetchAll()
No description
No description
No description
No description
Details
at line 51
static Explorer
createFromParameters(...$params)
No description
at line 83
static Explorer
createFromDsn(string $dsn, string|null $username = null, string|null $password = null, array $options = [])
No description
at line 103
__construct(Driver|string $driver)
No description
at line 116
void
connect()
No description
at line 132
void
reconnect()
No description
at line 139
void
disconnect()
No description
at line 145
string
getDsn()
No description
at line 152
PDO
getPdo()
No description
at line 160
Connection
getConnection()
No description
at line 167
Connection
getSupplementalDriver()
No description
at line 175
Engine
getDatabaseEngine()
No description
at line 181
string
getServerVersion()
No description
at line 187
Reflection
getReflection()
No description
at line 193
TypeConverter
getTypeConverter()
No description
at line 199
Explorer
setRowNormalizer(callable|null $normalizer)
No description
at line 206
int|string
getInsertId(string|null $sequence = null)
No description
at line 216
string
quote(string $string)
No description
at line 222
void
beginTransaction()
No description
at line 232
void
commit()
No description
at line 242
void
rollBack()
No description
at line 252
mixed
transaction(callable $callback)
No description
at line 283
Result
query(string $sql, ...$params)
Generates and executes SQL query.
at line 293
Result
queryArgs(string $sql, array $params)
No description
at line 305
array
preprocess(string $sql, ...$params)
No description
at line 333
SqlLiteral|null
getLastQuery()
No description
at line 339
string|null
getLastQueryString()
No description
at line 361
Row|null
fetch(string $sql, ...$params)
Shortcut for query()->fetch()
at line 371
array|null
fetchAssoc(string $sql, ...$params)
Shortcut for query()->fetchAssoc()
at line 381
mixed
fetchField(string $sql, ...$params)
Shortcut for query()->fetchField()
at line 391
array|null
fetchList(string $sql, ...$params)
Shortcut for query()->fetchList()
at line 401
array|null
fetchFields(string $sql, ...$params)
Shortcut for query()->fetchList()
at line 411
array
fetchPairs(string $sql, ...$params)
Shortcut for query()->fetchPairs()
at line 421
array
fetchAll(string $sql, ...$params)
Shortcut for query()->fetchAll()
at line 427
static SqlLiteral
literal(string $value, ...$params)
No description
at line 436
Selection
table(string $table)
No description
at line 442
Explorer
setCache(Cache $cache)
No description
at line 453
Cache|null
getCache()
internal |
No description
at line 459
Explorer
setConventions(Conventions $conventions)
No description
at line 470
Conventions
getConventions()
internal |
No description
at line 477
Structure
getStructure()
internal |
No description