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

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

Members

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