PdoDatabaseTypically there will only be a single instance of the database level class in an application.
Located in /inc/PdoQuery.php (line 218)
PdoDatabase
__construct
(string $connection_string, [string $dbuser = null], [string $dbpass = null], [array $options = null])
Constructor __construct (line 262)
The connection string is in the standard PDO format. The database won't actually be connected until the first database query is run against it.
The database object will also initialise and hold an PdoDialect object which will be used to provide database specific SQL for some queries, as well as translation hooks for instances where it is necessary to modify the SQL in transit to support additional databases.
Begin (line 303)
Begin a transaction.
Commit (line 317)
Complete a transaction.
Exec (line 287)
Construct and execute an SQL statement from the sql_string, replacing the parameters into it.
GetFields (line 368)
Returns an associative array of field types, keyed by field name, for the requested named table. Internally this calls PdoDialect::GetFields to get the required SQL and then processes the query in the normal manner.
Prepare (line 273)
Returns a PdoQuery object created using this database, the supplied SQL string, and any parameters given.
PrepareTranslated (line 376)
Operates identically to PdoDatabase::Prepare, except that PdoDialect::Translate() will be called on the query before any processing.
Rollback (line 328)
Cancel a transaction in progress.
TotalDuration (line 351)
Returns the total duration of quries executed so far by this object instance.
TotalQueries (line 359)
Returns the total number of quries executed by this object instance.
TransactionState (line 343)
Returns the current state of a transaction, indicating if we have begun a transaction, whether the transaction has failed, or if we are not in a transaction.
TranslateAll (line 384)
Switches on or off the processing flag controlling whether subsequent calls to PdoDatabase::Prepare are translated as if PrepareTranslated() had been called.
Documentation generated on Fri, 10 Apr 2009 23:45:53 +1200 by phpDocumentor 1.3.2