dm_db_set_synchronous Function

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

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

  • DB_SYNCHRONOUS_OFF
  • DB_SYNCHRONOUS_NORMAL
  • DB_SYNCHRONOUS_FULL
  • DB_SYNCHRONOUS_EXTRA

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 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

Database synchronous mode.

Return Value integer


Calls

proc~~dm_db_set_synchronous~~CallsGraph proc~dm_db_set_synchronous dm_db_set_synchronous interface~dm_db_pragma_set dm_db_pragma_set proc~dm_db_set_synchronous->interface~dm_db_pragma_set