db_lock_table
Definition
db_lock_table($table)
includes/database.pgsql.inc, line 371
Description
Lock a table. This function automatically starts a transaction.
Related topics
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
Code
<?php
function db_lock_table($table) {
db_query('BEGIN; LOCK TABLE {'. db_escape_table($table) .'} IN EXCLUSIVE MODE');
}
?> 