class Explorer

Database explorer.

Methods

__construct(Connection $connection, Structure $structure, Conventions|null $conventions = null, IStorage|null $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|null $sequence = null)

No description

query(string $sql, ...$params)

Generates and executes SQL query.

queryArgs(string $sql, array $params) deprecated

No description

table(string $table)

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 37
__construct(Connection $connection, Structure $structure, Conventions|null $conventions = null, IStorage|null $cacheStorage = null)

No description

Parameters

Connection $connection
Structure $structure
Conventions|null $conventions
IStorage|null $cacheStorage

at line 50
void beginTransaction()

No description

Return Value

void

at line 56
void commit()

No description

Return Value

void

at line 62
void rollBack()

No description

Return Value

void

at line 71
mixed transaction(callable $callback)

No description

Parameters

callable $callback

Return Value

mixed

at line 79
string getInsertId(string|null $sequence = null)

No description

Parameters

string|null $sequence

Return Value

string

at line 89
ResultSet query(string $sql, ...$params)

Generates and executes SQL query.

Parameters

string $sql
...$params

Return Value

ResultSet

at line 101
ResultSet queryArgs(string $sql, array $params) deprecated

deprecated use query()

No description

Parameters

string $sql
array $params

Return Value

ResultSet

at line 107
Selection table(string $table)

No description

Parameters

string $table

Return Value

Selection

at line 113
Connection getConnection()

No description

Return Value

Connection

at line 119
IStructure getStructure()

No description

Return Value

IStructure

at line 125
Conventions getConventions()

No description

Return Value

Conventions

at line 138
Row|null fetch(string $sql, ...$params)

Shortcut for query()->fetch()

Parameters

string $sql
...$params

Return Value

Row|null

at line 154
mixed fetchField(string $sql, ...$params)

Shortcut for query()->fetchField()

Parameters

string $sql
...$params

Return Value

mixed

at line 168
array|null fetchFields(string $sql, ...$params)

Shortcut for query()->fetchFields()

Parameters

string $sql
...$params

Return Value

array|null

at line 183
array fetchPairs(string $sql, ...$params)

Shortcut for query()->fetchPairs()

Parameters

string $sql
...$params

Return Value

array

at line 198
array fetchAll(string $sql, ...$params)

Shortcut for query()->fetchAll()

Parameters

string $sql
...$params

Return Value

array

at line 209
static SqlLiteral literal(string $value, ...$params)

No description

Parameters

string $value
...$params

Return Value

SqlLiteral

Traits

SmartObject