Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
database.inc
»
db_query
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
70 calls to db_query()
AggregatorCategoryBlock::getDerivativeDefinitions
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Plugin/
Derivative/
AggregatorCategoryBlock.php
Implements
\Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinitions
().
AggregatorFeedBlock::getDerivativeDefinitions
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Plugin/
Derivative/
AggregatorFeedBlock.php
Implements
\Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinitions
().
AggregatorTestBase::getCategories
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
AggregatorTestBase.php
Pulls categories from {aggregator_category} table.
AggregatorTestBase::getFeedCategories
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
AggregatorTestBase.php
Pulls feed categories from {aggregator_category_feed} table.
AggregatorTestBase::updateFeedItems
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
AggregatorTestBase.php
Updates the feed items.
aggregator_categorize_items
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Form constructor to build the page list form.
aggregator_cron
in drupal/
core/
modules/
aggregator/
aggregator.module
Implements
hook_cron
().
aggregator_page_categories
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Page callback: Displays all the categories used by the Aggregator module.
aggregator_page_opml
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Page callback: Generates an OPML representation of all feeds.
BasicSyntaxTest::testBasicConcat
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
BasicSyntaxTest.php
Tests string concatenation.
BasicSyntaxTest::testFieldConcat
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
BasicSyntaxTest.php
Tests string concatenation with field values.
book_node_load
in drupal/
core/
modules/
book/
book.module
Implements
hook_node_load
().
book_node_predelete
in drupal/
core/
modules/
book/
book.module
Implements
hook_node_predelete
().
comment_node_load
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_node_load
().
comment_node_update_index
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_node_update_index
().
contact_update_8001
in drupal/
core/
modules/
contact/
contact.install
Migrate contact categories into configuration.
CrudTest::testCRUD
in drupal/
core/
modules/
rdf/
lib/
Drupal/
rdf/
Tests/
CrudTest.php
Tests inserting, loading, updating, and deleting RDF mappings.
DbLogTest::doUser
in drupal/
core/
modules/
dblog/
lib/
Drupal/
dblog/
Tests/
DbLogTest.php
Generates and then verifies some user events.
error_test_trigger_pdo_exception
in drupal/
core/
modules/
system/
tests/
modules/
error_test/
error_test.module
Menu callback; trigger an exception to test the exception handler.
FeedFormController::form
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
FeedFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::form
().
FeedFormController::validate
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
FeedFormController.php
Overrides
Drupal\Core\Entity\EntityFormController::validate
().
FetchTest::testQueryFetchArray
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record to an associative array explicitly.
FetchTest::testQueryFetchBoth
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record into a doubly-keyed array explicitly.
FetchTest::testQueryFetchClass
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record into a new instance of a custom class.
FetchTest::testQueryFetchCol
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch an entire column of a result set at once.
FetchTest::testQueryFetchDefault
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record properly in default object mode.
FetchTest::testQueryFetchNum
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record into an indexed array explicitly.
FetchTest::testQueryFetchObject
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record to an object explicitly.
field_ui_update_8001
in drupal/
core/
modules/
field_ui/
field_ui.install
Upgrade Field UI permissions.
FileStorageController::retrieveTemporaryFiles
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
FileStorageController.php
Retrieve temporary files that are older than
DRUPAL_MAXIMUM_TEMP_FILE_AGE
.
FilledStandardUpgradePathTest::testFilledStandardUpgrade
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
FilledStandardUpgradePathTest.php
Tests a successful point release update.
filter_update_8001
in drupal/
core/
modules/
filter/
filter.install
Migrate filter formats into configuration.
hook_comment_load
in drupal/
core/
modules/
comment/
comment.api.php
Act on comments being loaded from the database.
hook_cron
in drupal/
core/
modules/
system/
system.api.php
Perform periodic actions.
hook_load
in drupal/
core/
modules/
node/
node.api.php
Act on nodes being loaded from the database.
hook_node_load
in drupal/
core/
modules/
node/
node.api.php
Act on arbitrary nodes being loaded from the database.
hook_node_update_index
in drupal/
core/
modules/
node/
node.api.php
Act on a node being indexed for searching.
hook_user_load
in drupal/
core/
modules/
user/
user.api.php
Act on user objects when loaded from the database.
ImportOpmlTest::submitImportForm
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
ImportOpmlTest.php
Submits form with invalid, empty, and valid OPML files.
install_verify_completed_task
in drupal/
core/
includes/
install.core.inc
Verifies and returns the last installation task that was completed.
ItemStorageController::postSave
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
ItemStorageController.php
Overrides Drupal\Core\Entity\DataBaseStorageController::postSave().
locale_translation_get_file_history
in drupal/
core/
modules/
locale/
locale.module
Gets current translation status from the {locale_file} table.
locale_translation_get_projects
in drupal/
core/
modules/
locale/
locale.translation.inc
Get array of projects which are available for interface translation.
locale_update_8002
in drupal/
core/
modules/
locale/
locale.install
Removes duplicates in {locales_source}.
locale_update_8005
in drupal/
core/
modules/
locale/
locale.install
Update plural interface translations to new format.
locale_update_8016
in drupal/
core/
modules/
locale/
locale.install
Converts localized date formats.
LoggingTest::testEnableTargetLogging
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
LoggingTest.php
Tests logging queries against multiple targets on the same connection.
menu_update_8004
in drupal/
core/
modules/
menu/
menu.install
Migrate menus into configuration.
node_access_test_node_load
in drupal/
core/
modules/
node/
tests/
modules/
node_access_test/
node_access_test.module
Implements
hook_node_load
().
node_revision_list
in drupal/
core/
modules/
node/
node.module
Returns a list of all the existing revision numbers for the node passed in.
RelationshipTest::testRelationshipQuery
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Handler/
RelationshipTest.php
Tests the query result of a view with a relationship.
Schema::findTables
in drupal/
core/
lib/
Drupal/
Core/
Database/
Driver/
sqlite/
Schema.php
Find all tables that are like the specified base table name.
search_index
in drupal/
core/
modules/
search/
search.module
Updates the full-text search index for a particular item.
search_node_update_index
in drupal/
core/
modules/
search/
search.module
Implements
hook_node_update_index
().
search_update_totals
in drupal/
core/
modules/
search/
search.module
Updates the {search_total} database table.
SessionTest::testEmptySessionID
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Session/
SessionTest.php
Test that empty session IDs are not allowed.
shortcut_update_8000
in drupal/
core/
modules/
shortcut/
shortcut.install
Migrate shortcuts into configuration.
Tasks::checkBinaryOutput
in drupal/
core/
lib/
Drupal/
Core/
Database/
Driver/
pgsql/
Install/
Tasks.php
Check Binary Output.
Tasks::initializeDatabase
in drupal/
core/
lib/
Drupal/
Core/
Database/
Driver/
pgsql/
Install/
Tasks.php
Make PostgreSQL Drupal friendly.
Tasks::runTestQuery
in drupal/
core/
lib/
Drupal/
Core/
Database/
Install/
Tasks.php
Run SQL tests to ensure the database can execute commands with the current user.
taxonomy_update_8005
in drupal/
core/
modules/
taxonomy/
taxonomy.install
Convert vocabularies into configuration.
translation_entity_load_translation_metadata
in drupal/
core/
modules/
translation_entity/
translation_entity.module
Loads translation data into the given entities.
UpdateScriptTest::testUpdateAccess
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Update/
UpdateScriptTest.php
Tests access to the update script.
update_prepare_d8_bootstrap
in drupal/
core/
includes/
update.inc
Performs extra steps required to bootstrap when using a Drupal 7 database.
UpgradePathTestBase::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
UpgradePathTestBase.php
Overrides
Drupal\simpletest\WebTestBase::setUp
() for upgrade testing.
UserStorageController::attachLoad
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
UserStorageController.php
Overrides
Drupal\Core\Entity\DatabaseStorageController::attachLoad
().
user_admin_account
in drupal/
core/
modules/
user/
user.admin.inc
Page callback: User administration page.
user_role_permissions
in drupal/
core/
modules/
user/
user.module
Determine the permissions for one or more roles.
_dblog_get_message_types
in drupal/
core/
modules/
dblog/
dblog.module
Gathers a list of uniquely defined database log message types.
_forum_user_last_visit
in drupal/
core/
modules/
forum/
forum.module
Gets the last time the user viewed a node.