Primary front-controller for the database system.

This class is uninstantiatable and un-extendable. It acts to encapsulate all control and shepherding of database connections into a single location without the use of globals.

Hierarchy

Expanded class hierarchy of Database

Related topics

File

includes/database/database.inc, line 1499
Core systems for the database layer.

Members

Contains filters are case sensitive
Namesort ascending Modifiers Type Description
Database::startLog final public static function Starts logging a given logging key on the specified connection.
Database::setActiveConnection final public static function Sets the active connection to the specified key.
Database::RETURN_STATEMENT constant Flag to indicate a query call should return the prepared statement.
Database::RETURN_NULL constant Flag to indicate a query call should return NULL.
Database::RETURN_INSERT_ID constant Flag to indicate a query call should return the "last insert id".
Database::RETURN_AFFECTED constant Flag to indicate a query call should return the number of affected rows.
Database::renameConnection final public static function Rename a connection and its corresponding connection information.
Database::removeConnection final public static function Remove a connection and its corresponding connection information.
Database::parseConnectionInfo final public static function Process the configuration file for database information.
Database::openConnection final protected static function Opens a connection to the server specified by the given key and target.
Database::loadDriverFile public static function Load a file for the database that might hold a class.
Database::isActiveConnection final public static function Determines if there is an active connection.
Database::ignoreTarget public static function Instructs the system to temporarily ignore a given key/target.
Database::getLog final public static function Retrieves the queries logged on for given logging key.
Database::getConnectionInfo final public static function Gets information on the specified database connection.
Database::getConnection final public static function Gets the connection object for the specified database key and target.
Database::closeConnection public static function Closes a connection to the server specified by the given key and target.
Database::addConnectionInfo public static function Adds database connection information for a given key/target.
Database::$logs static protected property An array of active query log objects.
Database::$ignoreTargets static protected property A list of key/target credentials to ignore.
Database::$databaseInfo static protected property A processed copy of the database connection information from settings.php.
Database::$connections static protected property An nested array of all active connections. It is keyed by database name and target.
Database::$activeKey static protected property The key of the currently active database connection.