Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 7.x
»
database.inc
»
Database
»
Database::getConnection
Search Drupal 7.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 7.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
21 calls to Database::getConnection()
ConnectionUnitTest::setUp
in drupal/
modules/
simpletest/
tests/
database_test.test
Sets up unit test environment.
ConnectionUnitTest::testOpenClose
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests
Database::closeConnection
() without query.
ConnectionUnitTest::testOpenQueryClose
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests
Database::closeConnection
() with a query.
ConnectionUnitTest::testOpenQueryPrefetchClose
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests
Database::closeConnection
() with a query and custom prefetch method.
ConnectionUnitTest::testOpenSelectQueryClose
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests
Database::closeConnection
() with a select query.
DatabaseConnectionTestCase::testConnectionClosing
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests the closing of a database connection.
DatabaseConnectionTestCase::testConnectionOptions
in drupal/
modules/
simpletest/
tests/
database_test.test
Tests the connection options of the active database.
DatabaseConnectionTestCase::testConnectionRouting
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that connections return appropriate connection objects.
DatabaseConnectionTestCase::testConnectionRoutingOverride
in drupal/
modules/
simpletest/
tests/
database_test.test
Test that connections return appropriate connection objects.
DatabaseSelectTestCase::testVulnerableComment
in drupal/
modules/
simpletest/
tests/
database_test.test
Test query COMMENT system against vulnerabilities.
DatabaseTasks::connect
in drupal/
includes/
install.inc
Check if we can connect to the database.
DatabaseTasks_pgsql::checkBinaryOutput
in drupal/
includes/
database/
pgsql/
install.inc
Check Binary Output.
DatabaseTransactionTestCase::testTransactionStacking
in drupal/
modules/
simpletest/
tests/
database_test.test
Test transaction stacking and commit / rollback.
DatabaseTransactionTestCase::transactionInnerLayer
in drupal/
modules/
simpletest/
tests/
database_test.test
Helper method for transaction unit tests. This "inner layer" transaction is either used alone or nested inside of the "outer layer" transaction.
DatabaseTransactionTestCase::transactionOuterLayer
in drupal/
modules/
simpletest/
tests/
database_test.test
Helper method for transaction unit test.
DrupalTestCase::getDatabaseConnection
in drupal/
modules/
simpletest/
drupal_web_test_case.php
Returns the database connection to the site running Simpletest.
DrupalWebTestCase::preloadRegistry
in drupal/
modules/
simpletest/
drupal_web_test_case.php
Preload the registry from the testing site.
install_system_module
in drupal/
includes/
install.core.inc
Installation task; install the Drupal system module.
NodeMultiByteUtf8Test::testMultiByteUtf8
in drupal/
modules/
node/
node.test
Tests that multi-byte UTF-8 characters are stored and retrieved correctly.
Query::__wakeup
in drupal/
includes/
database/
query.inc
Implements the magic __wakeup function to reconnect to the database.
_system_check_db_utf8mb4_requirements
in drupal/
modules/
system/
system.install
Checks whether the requirements for multi-byte UTF-8 support are met.