Generic PRAGMA get function.
Returns PRAGMA value as 4-byte integer.
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. |
||
character(len=*), | intent(in) | :: | name |
PRAGMA name. |
||
integer(kind=i4), | intent(out) | :: | value |
PRAGMA value. |
Returns PRAGMA value as 8-byte integer.
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. |
||
character(len=*), | intent(in) | :: | name |
PRAGMA name. |
||
integer(kind=i8), | intent(out) | :: | value |
PRAGMA value. |
Returns PRAGMA value as allocatable string. On error, the string is allocated but empty.
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. |
||
character(len=*), | intent(in) | :: | name |
PRAGMA name. |
||
character(len=:), | intent(out), | allocatable | :: | value |
PRAGMA value. |