$connection
$connection : mixed
Database connection object/resource
PDO database adapter class
$profiler : \Pop\Db\Adapter\Profiler\Profiler
Query profiler
beginTransaction() : \Pop\Db\Adapter\Pdo
Begin a transaction
commit() : \Pop\Db\Adapter\Pdo
Commit a transaction
rollback() : \Pop\Db\Adapter\Pdo
Rollback a transaction
query(mixed $sql) : \Pop\Db\Adapter\Pdo
Execute a SQL query directly
mixed | $sql |
prepare(mixed $sql, array $attribs = null) : \Pop\Db\Adapter\Pdo
Prepare a SQL query
mixed | $sql | |
array | $attribs |
bindParams(array $params) : \Pop\Db\Adapter\Pdo
Bind parameters to a prepared SQL query
array | $params |
execute() : \Pop\Db\Adapter\Pdo
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
bindParam(mixed $param, mixed $value, integer $dataType = \PDO::PARAM_STR, integer $length = null, mixed $options = null) : \Pop\Db\Adapter\Pdo
Bind a parameter for a prepared SQL query
mixed | $param | |
mixed | $value | |
integer | $dataType | |
integer | $length | |
mixed | $options |
bindValue(mixed $param, mixed $value, integer $dataType = \PDO::PARAM_STR) : \Pop\Db\Adapter\Pdo
Bind a value for a prepared SQL query
mixed | $param | |
mixed | $value | |
integer | $dataType |
bindColumn(mixed $column, mixed $param, integer $dataType = \PDO::PARAM_STR) : \Pop\Db\Adapter\Pdo
Bind a column to a PHP variable.
mixed | $column | Number of the column (1-indexed) or name of the column in the result set. |
mixed | $param | Name of the PHP variable to which the column will be bound. |
integer | $dataType | Data type of the parameter, specified by the PDO::PARAM_* constants. |
exec(string $sql) : \Pop\Db\Adapter\Pdo
The method runs an SQL query for execution and returns the number of rows affected during execution.
string | $sql | The SQL statement to be prepared and run |
buildError(string $code = null, array $info = null) : \Pop\Db\Adapter\Pdo
Build the error
string | $code | |
array | $info |