$connection
$connection : mixed
Database connection object/resource
MySQL database adapter class
$profiler : \Pop\Db\Adapter\Profiler\Profiler
Query profiler
beginTransaction(integer $flags = null, string $name = null) : \Pop\Db\Adapter\Mysql
Begin a transaction
integer | $flags | |
string | $name |
commit(integer $flags = null, string $name = null) : \Pop\Db\Adapter\Mysql
Commit a transaction
integer | $flags | |
string | $name |
rollback(integer $flags = null, string $name = null) : \Pop\Db\Adapter\Mysql
Rollback a transaction
integer | $flags | |
string | $name |
query(mixed $sql) : \Pop\Db\Adapter\Mysql
Execute a SQL query directly
mixed | $sql |
prepare(mixed $sql) : \Pop\Db\Adapter\Mysql
Prepare a SQL query
mixed | $sql |
bindParams(array $params) : \Pop\Db\Adapter\Mysql
Bind parameters to a prepared SQL query
array | $params |
execute() : \Pop\Db\Adapter\Mysql
Execute a prepared SQL query
createSql() : \Pop\Db\Sql
Create SQL builder
createSchema() : \Pop\Db\Sql\Schema
Create Schema builder
setProfiler(\Pop\Db\Adapter\Profiler\Profiler $profiler) : \Pop\Db\Adapter\AbstractAdapter
Set query profiler
\Pop\Db\Adapter\Profiler\Profiler | $profiler |
getProfiler() : \Pop\Db\Adapter\Profiler\Profiler
Get query profiler
clearProfiler() : \Pop\Db\Adapter\AbstractAdapter
Clear query profiler
setError(string $error) : \Pop\Db\Adapter\AbstractAdapter
Set the error
string | $error |
clearError() : \Pop\Db\Adapter\AbstractAdapter
Clear the error