db_lock_table

Versions
4.7 – 6
db_lock_table($table)

Lock a table. This function automatically starts a transaction.

Related topics

Code

includes/database.pgsql.inc, line 371

<?php
function db_lock_table($table) {
  db_query('BEGIN; LOCK TABLE {'. db_escape_table($table) .'} IN EXCLUSIVE MODE');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.