db_lock_table

Definition

db_lock_table($table)
drupal/includes/database.pgsql.inc, line 377

Description

Lock a table. This function automatically starts a transaction.

Related topics

Namesort iconDescription
Database abstraction layerAllow the use of different database servers using the same code base.

Code

function db_lock_table($table) {
  db_query('BEGIN; LOCK TABLE {'. db_escape_table($table) .'} IN EXCLUSIVE MODE');
}