Pluf_DB_SQLite Class Reference

List of all members.

Public Member Functions

 __construct ($user, $pwd, $server, $dbname, $pfx='', $debug=false)
 getServerInfo ()
 debug ($query)
 close ()
 select ($query)
 execute ($query)
 getLastID ()
 getError ()
 esc ($str)
 qn ($col)
 begin ()
 commit ()
 rollback ()
 __toString ()

Public Attributes

 $con_id
 $pfx = ''
 $lastquery = ''
 $engine = 'SQLite'
 $type_cast = array()

Private Attributes

 $debug = false


Detailed Description

SQLite connection class

Constructor & Destructor Documentation

Pluf_DB_SQLite::__construct ( user,
pwd,
server,
dbname,
pfx = '',
debug = false 
)


Member Function Documentation

Pluf_DB_SQLite::getServerInfo (  ) 

Get the version of the SQLite library.

Returns:
string Version string

Pluf_DB_SQLite::debug ( query  ) 

Log the queries. Keep track of the last query and if in debug mode keep track of all the queries in $GLOBALS['_PX_debug_data']['sql_queries']

Parameters:
string Query to keep track
Returns:
bool true

Pluf_DB_SQLite::close (  ) 

Pluf_DB_SQLite::select ( query  ) 

Pluf_DB_SQLite::execute ( query  ) 

Pluf_DB_SQLite::getLastID (  ) 

Pluf_DB_SQLite::getError (  ) 

Returns a string ready to be used in the exception.

Returns:
string Error string

Pluf_DB_SQLite::esc ( str  ) 

Pluf_DB_SQLite::qn ( col  ) 

Quote the column name.

Parameters:
string Name of the column
Returns:
string Escaped name

Pluf_DB_SQLite::begin (  ) 

Start a transaction.

Pluf_DB_SQLite::commit (  ) 

Commit a transaction.

Pluf_DB_SQLite::rollback (  ) 

Rollback a transaction.

Pluf_DB_SQLite::__toString (  ) 


Member Data Documentation

Pluf_DB_SQLite::$con_id

Pluf_DB_SQLite::$pfx = ''

Pluf_DB_SQLite::$debug = false [private]

Pluf_DB_SQLite::$lastquery = ''

The last query, set with debug(). Used when an error is returned.

Pluf_DB_SQLite::$engine = 'SQLite'

Pluf_DB_SQLite::$type_cast = array()


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

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen