Method |
Description |
|
cell ( string $statement, $params ) : mixed |
Variadic version of $this->single() |
|
col ( string $statement, integer $offset, $params ) : mixed |
Variadic version of $this->column() |
|
column ( string $statement, array $params = [], integer $offset ) : mixed |
Fetch a column |
|
delete ( string $table, array $conditions ) |
Delete rows in a database table. |
|
first ( string $statement, $params ) : mixed |
Variadic version of $this->column(), with an offset of 0 |
|
getDriver ( ) : string |
Which database driver are we operating on? |
|
getPdo ( ) : PDO |
Return the PDO object directly |
|
insert ( string $table, array $map ) |
Insert a new row to a table in a database. |
|
row ( string $statement, $params ) |
Similar to $this->run() except it only returns a single row |
|
run ( string $statement, $params ) : mixed |
Run a query, get a 2D array with all the results |
|
single ( string $statement, array $params = [] ) : mixed |
Fetch a single result -- useful for SELECT COUNT() queries |
|
update ( string $table, array $changes, array $conditions ) |
Update a row in a database table. |
|