Closes connection to SQLite database. Optimises the database if
argument optimize
is .true.
.
The function returns the following error codes:
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).E_EXIST
if a pointer could not be deassociated (compiler bug).Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
logical, | intent(in), | optional | :: | optimize |
Optimise on close. |