db_merge

Versions
mediamosa-21
db_merge($table, array $options = array())

Returns a new MergeQuery object for the active database.

Parameters

$table The table into which to merge.

$options An array of options to control how the query operates.

Return value

MergeQuery A new MergeQuery object for this connection.

Related topics

▾ 28 functions call db_merge()

actions_save in includes/actions.inc
Saves an action and its user-supplied parameter values to the database.
aggregator_refresh in modules/aggregator/aggregator.module
Checks a news feed for new items.
aggregator_remove in modules/aggregator/aggregator.module
Removes all items from a feed.
aggregator_save_category in modules/aggregator/aggregator.module
Add/edit/delete aggregator categories.
aggregator_save_feed in modules/aggregator/aggregator.module
Add/edit/delete an aggregator feed.
aggregator_save_item in modules/aggregator/aggregator.processor.inc
Add/edit/delete an aggregator item.
block_add_block_form_submit in modules/block/block.admin.inc
Save the new custom block.
block_admin_configure_submit in modules/block/block.admin.inc
dashboard_update in modules/dashboard/dashboard.module
Set the new weight of each region according to the drag-and-drop order.
filter_format_save in modules/filter/filter.module
Save a text format object to the database.
hook_user_role_update in modules/user/user.api.php
Inform other modules that a user role has been updated.
menu_save in modules/menu/menu.module
Save a custom menu.
node_tag_new in modules/node/node.module
Update the 'last viewed' timestamp of the specified node for current user.
poll_update in modules/poll/poll.module
Implements hook_update().
profile_save_profile in modules/profile/profile.module
rdf_mapping_save in modules/rdf/rdf.module
Saves an RDF mapping to the database.
search_index in modules/search/search.module
Update the full-text search index for a particular item.
search_update_totals in modules/search/search.module
This function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
shortcut_set_assign_user in modules/shortcut/shortcut.module
Assigns a user to a particular shortcut set.
statistics_exit in modules/statistics/statistics.module
Implements hook_exit().
taxonomy_test_taxonomy_term_update in modules/simpletest/tests/taxonomy_test.module
Implements hook_taxonomy_term_update().
user_role_grant_permissions in modules/user/user.module
Grant permissions to a user role.
user_set_authmaps in modules/user/user.module
Save mappings of which external authentication module(s) authenticated a user. Maps external usernames to user ids in the users table.
variable_set in includes/bootstrap.inc
Set a persistent variable.
_drupal_session_write in includes/session.inc
Session handler assigned by session_set_save_handler().
_registry_parse_files in includes/registry.inc
Parse all files that have changed since the registry was last built, and save their function and class listings.
_tracker_add in modules/tracker/tracker.module
Update indexing tables when a node is added, updated or commented on.
_update_cache_set in modules/update/update.module
Store data in the private update status cache table.

Code

includes/database/database.inc, line 2243

<?php
function db_merge($table, array $options = array()) {
  if (empty($options['target']) || $options['target'] == 'slave') {
    $options['target'] = 'default';
  }
  return Database::getConnection($options['target'])->merge($table, $options);
}
?>