ConnectionUnitTest::getConnectionID in modules/simpletest/tests/database_test.test
Returns the connection ID of the current test connection.
ConnectionUnitTest::setUp in modules/simpletest/tests/database_test.test
Sets up unit test environment.
ConnectionUnitTest::testOpenClose in modules/simpletest/tests/database_test.test
Tests Database::closeConnection() without query.
ConnectionUnitTest::testOpenQueryClose in modules/simpletest/tests/database_test.test
Tests Database::closeConnection() with a query.
ConnectionUnitTest::testOpenQueryPrefetchClose in modules/simpletest/tests/database_test.test
Tests Database::closeConnection() with a query and custom prefetch method.
ConnectionUnitTest::testOpenSelectQueryClose in modules/simpletest/tests/database_test.test
Tests Database::closeConnection() with a select query.
DatabaseConnectionTestCase::testConnectionClosing in modules/simpletest/tests/database_test.test
Tests the closing of a database connection.
DatabaseConnectionTestCase::testConnectionOptions in modules/simpletest/tests/database_test.test
Tests the connection options of the active database.
DatabaseConnectionTestCase::testConnectionRouting in modules/simpletest/tests/database_test.test
Test that connections return appropriate connection objects.
DatabaseConnectionTestCase::testConnectionRoutingOverride in modules/simpletest/tests/database_test.test
Test that connections return appropriate connection objects.
DatabaseInvalidDataTestCase::testInsertDuplicateData in modules/simpletest/tests/database_test.test
Traditional SQL database systems abort inserts when invalid data is encountered.
DatabaseReservedKeywordTestCase::testTableNameQuoting in modules/simpletest/tests/database_test.test
DatabaseSelectTestCase::testVulnerableComment in modules/simpletest/tests/database_test.test
Test query COMMENT system against vulnerabilities.
DatabaseTablePrefixTestCase::testSchemaDotTablePrefixes in modules/simpletest/tests/database_test.test
DatabaseTasks::connect in includes/install.inc
Check if we can connect to the database.
DatabaseTasks_pgsql::checkBinaryOutput in includes/database/pgsql/install.inc
Check Binary Output.
DatabaseTransactionTestCase::testTransactionRollBackNotSupported in modules/simpletest/tests/database_test.test
Test transaction rollback on a database that does not support transactions.
DatabaseTransactionTestCase::testTransactionRollBackSupported in modules/simpletest/tests/database_test.test
Test transaction rollback on a database that supports transactions.
DatabaseTransactionTestCase::testTransactionStacking in modules/simpletest/tests/database_test.test
Test transaction stacking and commit / rollback.
DatabaseTransactionTestCase::testTransactionWithDdlStatement in modules/simpletest/tests/database_test.test
Test the compatibility of transactions with DDL statements.
DatabaseTransactionTestCase::transactionInnerLayer in 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 modules/simpletest/tests/database_test.test
Helper method for transaction unit test.
DatabaseUpdateTestCase::testExpressionUpdate in modules/simpletest/tests/database_test.test
Test updating with expressions.
db_add_field in includes/database/database.inc
Adds a new field to a table.
db_add_index in includes/database/database.inc
Adds an index.
db_add_primary_key in includes/database/database.inc
Adds a primary key to a database table.
db_add_unique_key in includes/database/database.inc
Adds a unique key.
db_change_field in includes/database/database.inc
Changes a field definition.
db_create_table in includes/database/database.inc
Creates a new table from a Drupal table definition.
db_delete in includes/database/database.inc
Returns a new DeleteQuery object for the active database.
db_driver in includes/database/database.inc
Retrieves the name of the currently active database driver.
db_drop_field in includes/database/database.inc
Drops a field.
db_drop_index in includes/database/database.inc
Drops an index.
db_drop_primary_key in includes/database/database.inc
Drops the primary key of a database table.
db_drop_table in includes/database/database.inc
Drops a table.
db_drop_unique_key in includes/database/database.inc
Drops a unique key.
db_escape_field in includes/database/database.inc
Restricts a dynamic column or constraint name to safe characters.
db_escape_table in includes/database/database.inc
Restricts a dynamic table name to safe characters.
db_field_exists in includes/database/database.inc
Checks if a column exists in the given table.
db_field_names in includes/database/database.inc
Returns an array of field names from an array of key/index column specifiers.
db_field_set_default in includes/database/database.inc
Sets the default value for a field.
db_field_set_no_default in includes/database/database.inc
Sets a field to have no default value.
db_find_tables in includes/database/database.inc
Finds all tables that are like the specified base table name.
db_find_tables_d8 in includes/database/database.inc
Finds all tables that are like the specified base table name. This is a backport of the change made to db_find_tables in Drupal 8 to work with virtual, un-prefixed table names. The original function is retained for Backwards Compatibility.
db_index_exists in includes/database/database.inc
Checks if an index exists in the given table.
db_insert in includes/database/database.inc
Returns a new InsertQuery object for the active database.
db_like in includes/database/database.inc
Escapes characters that work as wildcard characters in a LIKE pattern.
db_merge in includes/database/database.inc
Returns a new MergeQuery object for the active database.
db_next_id in includes/database/database.inc
Retrieves a unique id.
db_query in includes/database/database.inc
Executes an arbitrary query string against the active database.
db_query_range in includes/database/database.inc
Executes a query against the active database, restricted to a range.
db_query_temporary in includes/database/database.inc
Executes a SELECT query string and saves the result set to a temporary table.
db_rename_table in includes/database/database.inc
Renames a table.
db_select in includes/database/database.inc
Returns a new SelectQuery object for the active database.
db_table_exists in includes/database/database.inc
Checks if a table exists.
db_transaction in includes/database/database.inc
Returns a new transaction object for the active database.
db_truncate in includes/database/database.inc
Returns a new TruncateQuery object for the active database.
db_update in includes/database/database.inc
Returns a new UpdateQuery object for the active database.
DrupalTestCase::getDatabaseConnection in modules/simpletest/drupal_web_test_case.php
Returns the database connection to the site running Simpletest.
DrupalUnitTestCase::setUp in modules/simpletest/drupal_web_test_case.php
Sets up unit test environment.
DrupalWebTestCase::preloadRegistry in modules/simpletest/drupal_web_test_case.php
Preload the registry from the testing site.
FieldSqlStorageTestCase::testFieldUpdateIndexesWithData in modules/field/modules/field_sql_storage/field_sql_storage.test
Test adding and removing indexes while data is present.
field_sql_storage_field_storage_update_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_update_field().
install_system_module in includes/install.core.inc
Installation task; install the Drupal system module.
NodeCreationTestCase::testFailedPageCreation in modules/node/node.test
Verifies that a transaction rolls back the failed creation.
NodeMultiByteUtf8Test::testMultiByteUtf8 in modules/node/node.test
Tests that multi-byte UTF-8 characters are stored and retrieved correctly.
Query::__wakeup in includes/database/query.inc
Implements the magic __wakeup function to reconnect to the database.
simpletest_clean_database in modules/simpletest/simpletest.module
Removed prefixed tables from the database that are left over from crashed tests.
system_requirements in modules/system/system.install
Implements hook_requirements().
_db_create_keys_sql in includes/database/database.inc
_registry_check_code in includes/bootstrap.inc
Checks for a resource in the registry.
_system_check_db_utf8mb4_requirements in modules/system/system.install
Checks whether the requirements for multi-byte UTF-8 support are met.