__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
stringThe query to run
arrayA list of parameters to bind to the query
intThe number of deleted rowsgetQueries() : array
arrayinsert(string $query, array $params) : array
stringThe query to run.
arrayA list of parameters to bind to the query
arrayarray($insert_id, $affected_rows);query(string $query) : boolean
stringThe query
booleanSuccessselect(string $query, array $params) : array
stringThe query to run.
arrayA list of parameters to bind to the query
arrayThe result set from the queryupdate(string $query, array $params) : int
stringThe query to run
arrayA list of parameters to bind to the query
intThe number of affected rowsrun(string $query, array $params) : array
stringThe SQL query to run
\Cactus\Exception |
|---|
array[\PDOStatement, (boolean) success]$queries : array