Primary front-controller for the database system.
This class is un-instantiatable and un-extendable. It acts to encapsulate all control and shepherding of database connections into a single location without the use of globals.
Hierarchy
- class Database
Expanded class hierarchy of Database
Related topics
File
- core/
includes/ database/ database.inc, line 1473 - Core systems for the database layer.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
Database:: |
static protected | property | The key of the currently active database connection. |
Database:: |
static protected | property | An nested array of all active connections. It is keyed by database name and target. |
Database:: |
static protected | property | A processed copy of the database connection information from settings.php. |
Database:: |
static protected | property | A list of key/target credentials to ignore. |
Database:: |
static protected | property | An array of active query log objects. |
Database:: |
public static | function | Adds database connection information for a given key/target. |
Database:: |
public static | function | Closes a connection to the server specified by the given key and target. |
Database:: |
final public static | function | Gets the connection object for the specified database key and target. |
Database:: |
final public static | function | Gets information on the specified database connection. |
Database:: |
final public static | function | Retrieves the queries logged on for given logging key. |
Database:: |
public static | function | Instructs the system to temporarily ignore a given key/target. |
Database:: |
final public static | function | Determines if there is an active connection. |
Database:: |
public static | function | Load a file for the database that might hold a class. |
Database:: |
final protected static | function | Opens a connection to the server specified by the given key and target. |
Database:: |
final public static | function | Process the configuration file for database information. |
Database:: |
final public static | function | Remove a connection and its corresponding connection information. |
Database:: |
final public static | function | Rename a connection and its corresponding connection information. |
Database:: |
constant | Flag to indicate a query call should return the number of affected rows. | |
Database:: |
constant | Flag to indicate a query call should return the "last insert id". | |
Database:: |
constant | Flag to indicate a query call should return NULL. | |
Database:: |
constant | Flag to indicate a query call should return the prepared statement. | |
Database:: |
final public static | function | Sets the active connection to the specified key. |
Database:: |
final public static | function | Starts logging a given logging key on the specified connection. |