db_hlock_t db_lock ( db_t  hdb,
const db_oid_t oid,
db_flags_t  flags 
)

Lock a database object (a table or a row).

Parameters:
hdb Database handle.
oid Object id of object to lock.
flags Lock mode.
Returns:
  • Lock handle.
  • NULL on failure.
On failure, one of the following error codes is set:

See also:
get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.