Search for db

  1. Search 7.x for db
  2. Search 9.5.x for db
  3. Search 10.3.x for db
  4. Search 11.x for db
  5. Other projects
Title Object type File name Summary
DatabaseLegacyTest::testDbTableExists function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests the db_table_exists() function.
DatabaseLegacyTest::testDbTransaction function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests deprecation of the db_transaction() function.
DatabaseLegacyTest::testDbTruncate function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests deprecation of the db_truncate() function.
DatabaseLegacyTest::testDbUpdate function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests the db_update() function.
DatabaseLegacyTest::testDbXor function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests deprecation of the db_xor() function.
DatabaseTestController::dbQueryTemporary function core/modules/system/tests/modules/database_test/src/Controller/DatabaseTestController.php Creates temporary table and outputs the table name and its number of rows.
db-tools.php file core/scripts/db-tools.php A command line application to import a database generation script.
DbCommandBase class core/lib/Drupal/Core/Command/DbCommandBase.php Base command that abstracts handling of database connection arguments.
DbCommandBase.php file core/lib/Drupal/Core/Command/DbCommandBase.php
DbCommandBase::configure function core/lib/Drupal/Core/Command/DbCommandBase.php
DbCommandBase::getDatabaseConnection function core/lib/Drupal/Core/Command/DbCommandBase.php Parse input options decide on a database.
DbCommandBaseTest class core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Test that the DbToolsApplication works correctly.
DbCommandBaseTest.php file core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Contains \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTest.
DbCommandBaseTest::testPrefix function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Test specifying a prefix for different connections.
DbCommandBaseTest::testSpecifyDatabaseDoesNotExist function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Invalid database names will throw a useful exception.
DbCommandBaseTest::testSpecifyDatabaseKey function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Test specifying a database key.
DbCommandBaseTest::testSpecifyDbUrl function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Test supplying database connection as a url.
DbCommandBaseTester class core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Concrete command implementation for testing base features.
DbCommandBaseTester::configure function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
DbCommandBaseTester::execute function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
DbCommandBaseTester::getDatabaseConnection function core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php Parse input options decide on a database.
DbDumpApplication class core/lib/Drupal/Core/Command/DbDumpApplication.php Provides a command to dump a database generation script.
DbDumpApplication.php file core/lib/Drupal/Core/Command/DbDumpApplication.php
DbDumpApplication::getCommandName function core/lib/Drupal/Core/Command/DbDumpApplication.php
DbDumpApplication::getDefaultCommands function core/lib/Drupal/Core/Command/DbDumpApplication.php
DbDumpApplication::getDefinition function core/lib/Drupal/Core/Command/DbDumpApplication.php Overridden so the application doesn't expect the command name as the first
argument.
DbDumpCommand class core/lib/Drupal/Core/Command/DbDumpCommand.php Provides a command to dump the current database to a script.
DbDumpCommand.php file core/lib/Drupal/Core/Command/DbDumpCommand.php
DbDumpCommand::$excludeTables property core/lib/Drupal/Core/Command/DbDumpCommand.php An array of table patterns to exclude completely.
DbDumpCommand::configure function core/lib/Drupal/Core/Command/DbDumpCommand.php
DbDumpCommand::execute function core/lib/Drupal/Core/Command/DbDumpCommand.php
DbDumpCommand::fieldSizeMap function core/lib/Drupal/Core/Command/DbDumpCommand.php Given a database field type, return a Drupal size.
DbDumpCommand::fieldTypeMap function core/lib/Drupal/Core/Command/DbDumpCommand.php Given a database field type, return a Drupal type.
DbDumpCommand::generateScript function core/lib/Drupal/Core/Command/DbDumpCommand.php Generates the database script.
DbDumpCommand::getFieldOrder function core/lib/Drupal/Core/Command/DbDumpCommand.php Gets field ordering for a given table.
DbDumpCommand::getTableCollation function core/lib/Drupal/Core/Command/DbDumpCommand.php Set the table collation.
DbDumpCommand::getTableData function core/lib/Drupal/Core/Command/DbDumpCommand.php Gets all data from a given table.
DbDumpCommand::getTableIndexes function core/lib/Drupal/Core/Command/DbDumpCommand.php Adds primary key, unique keys, and index information to the schema.
DbDumpCommand::getTables function core/lib/Drupal/Core/Command/DbDumpCommand.php Returns a list of tables, not including those set to be excluded.
DbDumpCommand::getTableSchema function core/lib/Drupal/Core/Command/DbDumpCommand.php Returns a schema array for a given table.
DbDumpCommand::getTableScript function core/lib/Drupal/Core/Command/DbDumpCommand.php The part of the script for each table.
DbDumpCommand::getTemplate function core/lib/Drupal/Core/Command/DbDumpCommand.php The script template.
DbDumpCommandTest class core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php Test that the DbDumpCommand works correctly.
DbDumpCommandTest.php file core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php
DbDumpCommandTest::$modules property core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php Modules to enable.
DbDumpCommandTest::setUp function core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php
DbDumpCommandTest::testDbDumpCommand function core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php Test the command directly.
DbDumpCommandTest::testSchemaOnly function core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php Test schema only option.
DbDumpTest class core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php Tests for the database dump commands.
DbDumpTest.php file core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.