Db_Adapter interface, to allow different SQL database engines to work with DB objects. More...
Public Member Functions | |
connect () | |
Connect to the database. | |
select () | |
Select the database. | |
close () | |
Close the connection. | |
errors ($sql='') | |
Return errors from last PDO statement. | |
escape ($item) | |
Escape the string to make it safe. | |
execute ($sql, $data=array(), $options=array()) | |
Execute a statement, with provided variables. | |
record ($sql, $data=array(), $options=array()) | |
Fetch the first row of a query. | |
records ($sql, $data=array(), $options=array()) | |
Fetch all rows of a query as an associative array. | |
value ($sql, $data=array(), $options=array()) | |
Fetch the first value of the first column from a query. | |
values ($sql, $data=array(), $options=array()) | |
Fetch the first column values for each row from a query as an array. | |
get_last_id () | |
Return last inserted id. |
Db_Adapter interface, to allow different SQL database engines to work with DB objects.