dm_db_create_observs Function

public function dm_db_create_observs(db, sync) result(rc)

Initialises a connected SQLite 3 database by creating all necessary tables if they do not exist already. The function also creates additional indices and triggers on the tables.

The function returns the following error codes:

  • E_DB_EXEC if table, index, or trigger creation failed.
  • E_INVALID if the database is not connected.
  • E_READ_ONLY if database is opened read-only.

Arguments

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

Database type.

logical, intent(in), optional :: sync

Create synchronisation tables.

Return Value integer


Calls

proc~~dm_db_create_observs~~CallsGraph proc~dm_db_create_observs dm_db_create_observs proc~dm_db_is_connected dm_db_is_connected proc~dm_db_create_observs->proc~dm_db_is_connected proc~dm_is_error dm_is_error proc~dm_db_create_observs->proc~dm_is_error sqlite3_exec sqlite3_exec proc~dm_db_create_observs->sqlite3_exec