Returns journal mode of database in mode
. The name of the mode is
optionally passed in name
.
Argument mode
is set to either:
DB_JOURNAL_OFF
DB_JOURNAL_DELETE
DB_JOURNAL_TRUNCATE
DB_JOURNAL_PERSIST
DB_JOURNAL_MEMORY
DB_JOURNAL_WAL
DB_JOURNAL_WAL2
The function returns the following error codes:
E_DB_PREPARE
if statement preparation failed.E_DB_STEP
if step execution failed.E_DB_TYPE
if query result is of unexpected type.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
integer, | intent(out) | :: | mode |
Journal mode enumerator. |
||
character(len=:), | intent(out), | optional, | allocatable | :: | name |
Journal mode name. |