Phang  2.1
 All Classes Files Functions Variables Pages
Public Member Functions
Db_Adapter Interface Reference

Db_Adapter interface, to allow different SQL database engines to work with DB objects. More...

Inheritance diagram for Db_Adapter:
Mysql_Adapter

List of all members.

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.

Detailed Description

Db_Adapter interface, to allow different SQL database engines to work with DB objects.


The documentation for this interface was generated from the following file: