datasourcesDatasources A datasources class is just a bunch of databases. If you want to access a database, register it in here first, then you can select it to perform queries on later.
Located in /database-defs.php (line 48)
void
add_database
(string $dbtype, string $name, [string $user = ""], [string $passwd = ""], [string $host = ""], integer $port, [boolean $default = false])
Constructor Add a new base to our list of datasources. The dbtype and the name are the only mandatory parameters.
Return the number of rows affected by a query.
Return a Php boolean from a database field value. The database field is expected to be a container of some form of logical value. Here is where we convert it according to the current database.
Connects to the database which has been selected in the mode specified, or non-peristent otherwise.
Returns connected status of named database, or the currently selected one if no name given.
Return the current sequence value, given a sequence name, the table and the field it applies to.
Returns the database resource ID of the given database name.
If dbname is not given, returns ID of currently selected DB.
Returns the database type of the given database name.
If dbname is not given, returns type of DB currently selected.
Return a suitable database field value to contain the value for the given boolean.
Return the specified row, as an associative array of fields in a fieldname => value format.
Return the specified row, as a standard (enumerated) array of field values.
Free the result of a query
Returns SQL statement most recently executed on the current DB.
NB: the format and/or content of this SQL may differ from the SQL originally submitted, due to database-dependent transformations, hence the usefulness of this method.
General-purpose lock method. We pass the elements of the lock, which is the list of tables to lock, and the lock-mode. The latter mode is database-specific, and therefore flexible.
Return the next sequence value, given a sequence name, the table and the field it applies to.
Return the number of rows returned by a SELECT query.
Execute a query on the connected database.
Roll back the current database transaction. All queries executed as part of the open transaction will be rolled back.
This will connect it if it isn't already connected. Calling this with no database name will select the default one. Returns the database unique identifier, or false if none was selected.
Set the database character encoding. This affects the encoding of characters in the database.
Set the database date style. This affect the format that dates will be displayed in, and the format they are submitted in.
Internal function to set the name of the default database.
The database must exist as a defined database already.
Set the sequence value, given a sequence name, the table and the field it applies to.
Given an Axyl SQL query object, build the SQL string from it in suitable format for the currently connected database server.
Documentation generated by phpDocumentor 1.3.0RC3