Sets journal mode PRAGMA. Argument mode has to be one of:
DB_JOURNAL_OFFDB_JOURNAL_DELETEDB_JOURNAL_TRUNCATEDB_JOURNAL_PERSISTDB_JOURNAL_MEMORYDB_JOURNAL_WALDB_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.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database type. |
||
| integer, | intent(in) | :: | mode |
Journal mode. |