dm_db_get_locking_mode Function

public function dm_db_get_locking_mode(db, mode, name) result(rc)

Returns locking mode of database in mode. The name of the mode is optionally passed in name.

Argument mode is set to either:

  • DB_LOCKING_MODE_NORMAL
  • DB_LOCKING_MODE_EXCLUSIVE

The function returns the following error codes:

  • E_DB_PREPARE if statement preparation failed.
  • E_DB_STEP if step execution failed.
  • E_DB_TYPE if query result is of unexpected type.

Arguments

Type IntentOptional Attributes Name
type(db_type), intent(inout) :: db

Database type.

integer, intent(out) :: mode

Journal mode enumerator.

character(len=:), intent(out), optional, allocatable :: name

Journal mode name.

Return Value integer


Calls

proc~~dm_db_get_locking_mode~~CallsGraph proc~dm_db_get_locking_mode dm_db_get_locking_mode interface~dm_db_pragma_get dm_db_pragma_get proc~dm_db_get_locking_mode->interface~dm_db_pragma_get proc~dm_is_error dm_is_error proc~dm_db_get_locking_mode->proc~dm_is_error