Explorer
class Explorer
Database explorer.
Methods
__construct(Connection $connection, Structure $structure, Conventions $conventions = null, IStorage $cacheStorage = null)
No description
void
beginTransaction()
No description
void
commit()
No description
void
rollBack()
No description
mixed
transaction(callable $callback)
No description
string
getInsertId(string $sequence = null)
No description
getConnection()
No description
getStructure()
No description
getConventions()
No description
Row|null
fetch(string $sql, ...$params)
Shortcut for query()->fetch()
mixed
fetchField(string $sql, ...$params)
Shortcut for query()->fetchField()
array|null
fetchFields(string $sql, ...$params)
Shortcut for query()->fetchFields()
array
fetchPairs(string $sql, ...$params)
Shortcut for query()->fetchPairs()
array
fetchAll(string $sql, ...$params)
Shortcut for query()->fetchAll()
static SqlLiteral
literal(string $value, ...$params)
No description
Details
at line 36
__construct(Connection $connection, Structure $structure, Conventions $conventions = null, IStorage $cacheStorage = null)
at line 49
void
beginTransaction()
at line 55
void
commit()
at line 61
void
rollBack()
at line 70
mixed
transaction(callable $callback)
at line 76
string
getInsertId(string $sequence = null)
at line 85
ResultSet
query(string $sql, ...$params)
Generates and executes SQL query.
at line 91
ResultSet
queryArgs(string $sql, array $params)
at line 97
Selection
table(string $table)
at line 103
Connection
getConnection()
at line 109
IStructure
getStructure()
at line 115
Conventions
getConventions()
at line 127
Row|null
fetch(string $sql, ...$params)
Shortcut for query()->fetch()
at line 137
mixed
fetchField(string $sql, ...$params)
Shortcut for query()->fetchField()
at line 146
array|null
fetchFields(string $sql, ...$params)
Shortcut for query()->fetchFields()
at line 155
array
fetchPairs(string $sql, ...$params)
Shortcut for query()->fetchPairs()
at line 164
array
fetchAll(string $sql, ...$params)
Shortcut for query()->fetchAll()
at line 170
static SqlLiteral
literal(string $value, ...$params)
Traits
Strict class for better experience.