Context
class Context extends Object
Database context.
Methods
__construct(Connection $connection, IReflection $reflection = NULL, IStorage $cacheStorage = NULL)
No description
void
beginTransaction()
No description
void
commit()
No description
void
rollBack()
No description
string
getInsertId($name = NULL)
No description
getConnection()
No description
getDatabaseReflection()
No description
mixed
fetchField($args)
Shortcut for query()->fetchField()
array
fetchPairs($args)
Shortcut for query()->fetchPairs()
array
fetchAll($args)
Shortcut for query()->fetchAll()
static SqlLiteral
literal($value)
No description
Details
at line 30
__construct(Connection $connection, IReflection $reflection = NULL, IStorage $cacheStorage = NULL)
No description
at line 39
void
beginTransaction()
No description
at line 46
void
commit()
No description
at line 53
void
rollBack()
No description
at line 63
string
getInsertId($name = NULL)
No description
at line 75
ResultSet
query($statement)
Generates and executes SQL query.
at line 86
ResultSet
queryArgs($statement, array $params)
No description
at line 96
Selection
table($table)
No description
at line 103
Connection
getConnection()
No description
at line 110
IReflection
getDatabaseReflection()
No description
at line 125
Row
fetch($args)
Shortcut for query()->fetch()
at line 137
mixed
fetchField($args)
Shortcut for query()->fetchField()
at line 149
array
fetchPairs($args)
Shortcut for query()->fetchPairs()
at line 161
array
fetchAll($args)
Shortcut for query()->fetchAll()
at line 170
static SqlLiteral
literal($value)
No description