dm_db_close Subroutine

public subroutine dm_db_close(db, optimize, error)

Closes connection to SQLite database. Optimises the database if argument optimize is .true..

The function returns the following error codes:

  • E_COMPILER if a pointer could not be deassociated (compiler bug).
  • E_DB if closing the database failed.
  • E_DB_BUSY if database is still busy.
  • E_DB_PREPARE if database optimisation failed.
  • E_DB_STEP if database optimisation failed (no write access).

Arguments

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

Database type.

logical, intent(in), optional :: optimize

Optimise on close.

integer, intent(out), optional :: error

Error code.


Calls

proc~~dm_db_close~~CallsGraph proc~dm_db_close dm_db_close interface~dm_present dm_present proc~dm_db_close->interface~dm_present proc~dm_db_optimize dm_db_optimize proc~dm_db_close->proc~dm_db_optimize proc~dm_is_error dm_is_error proc~dm_db_close->proc~dm_is_error sqlite3_close sqlite3_close proc~dm_db_close->sqlite3_close proc~dm_db_optimize->proc~dm_is_error proc~dm_db_finalize dm_db_finalize proc~dm_db_optimize->proc~dm_db_finalize proc~dm_db_prepare dm_db_prepare proc~dm_db_optimize->proc~dm_db_prepare proc~dm_db_step dm_db_step proc~dm_db_optimize->proc~dm_db_step sqlite3_finalize sqlite3_finalize proc~dm_db_finalize->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_prepare->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_step->sqlite3_step

Called by

proc~~dm_db_close~~CalledByGraph proc~dm_db_close dm_db_close proc~dm_db_backup dm_db_backup proc~dm_db_backup->proc~dm_db_close