__construct()
delete()
getQueries()
insert()
query()
select()
update()
run()
$connection
$queries
A PDO Adapter implementation.
This adapter will run whatever query you throw at it, so all of the data validation/sanitation should be done before your run it through the adapter.
package | Cactus |
---|---|
author | Dave Widmer |
__construct(PDO $connection)
delete(string $query, array $params) : int
string
The query to run
array
A list of parameters to bind to the query
int
The number of deleted rowsgetQueries() : array
array
insert(string $query, array $params) : array
string
The query to run.
array
A list of parameters to bind to the query
array
array($insert_id, $affected_rows);query(string $query) : boolean
string
The query
boolean
Successselect(string $query, array $params) : array
string
The query to run.
array
A list of parameters to bind to the query
array
The result set from the queryupdate(string $query, array $params) : int
string
The query to run
array
A list of parameters to bind to the query
int
The number of affected rowsrun(string $query, array $params) : array
string
The SQL query to run
\Cactus\Exception |
---|
array
[\PDOStatement, (boolean) success]$queries : array