db_is_active()
drupal/includes/database/database.inc, line 1791
Determine if there is an active connection.
Note that this method will return FALSE if no connection has been established yet, even if one could be.
TRUE if there is at least one database connection established, FALSE otherwise.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
function db_is_active() {
return Database::isActiveConnection();
}