dm_db_get_journal_mode Function

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

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

Argument mode is set to either:

  • DB_JOURNAL_OFF
  • DB_JOURNAL_DELETE
  • DB_JOURNAL_TRUNCATE
  • DB_JOURNAL_PERSIST
  • DB_JOURNAL_MEMORY
  • DB_JOURNAL_WAL
  • DB_JOURNAL_WAL2

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_journal_mode~~CallsGraph proc~dm_db_get_journal_mode dm_db_get_journal_mode interface~dm_db_pragma_get dm_db_pragma_get proc~dm_db_get_journal_mode->interface~dm_db_pragma_get proc~dm_is_error dm_is_error proc~dm_db_get_journal_mode->proc~dm_is_error