dm_db_set_journal_mode Function

public function dm_db_set_journal_mode(db, mode) result(rc)

Sets journal mode PRAGMA. Argument mode has to be one of:

  • DB_JOURNAL_OFF
  • DB_JOURNAL_DELETE
  • DB_JOURNAL_TRUNCATE
  • DB_JOURNAL_PERSIST
  • DB_JOURNAL_MEMORY
  • DB_JOURNAL_WAL
  • DB_JOURNAL_WAL2 (if supported)

The function returns the following error codes:

  • E_DB_PREPARE if statement preparation failed.
  • E_DB_STEP if step execution failed or no write permission.
  • E_INVALID if journal mode is invalid.
  • E_READ_ONLY if database is opened read-only.

Arguments

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

Database type.

integer, intent(in) :: mode

Journal mode.

Return Value integer


Calls

proc~~dm_db_set_journal_mode~~CallsGraph proc~dm_db_set_journal_mode dm_db_set_journal_mode interface~dm_db_pragma_set dm_db_pragma_set proc~dm_db_set_journal_mode->interface~dm_db_pragma_set

Called by

proc~~dm_db_set_journal_mode~~CalledByGraph proc~dm_db_set_journal_mode dm_db_set_journal_mode proc~dm_db_open dm_db_open proc~dm_db_open->proc~dm_db_set_journal_mode proc~dm_db_backup dm_db_backup proc~dm_db_backup->proc~dm_db_open