Generic PRAGMA set function.
Executes PRAGMA of name
.
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_READ_ONLY
if database is opened read-only.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
character(len=*), | intent(in) | :: | name |
PRAGMA name. |
Sets PRAGMA of name
to 4-byte integer value.
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_READ_ONLY
if database is opened read-only.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
character(len=*), | intent(in) | :: | name |
PRAGMA name. |
||
integer(kind=i4), | intent(in) | :: | value |
PRAGMA value. |
Sets PRAGMA of name
to 8-byte integer value.
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_READ_ONLY
if database is opened read-only.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
character(len=*), | intent(in) | :: | name |
PRAGMA name. |
||
integer(kind=i8), | intent(in) | :: | value |
PRAGMA value. |
Sets PRAGMA of name
to string value.
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.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
character(len=*), | intent(in) | :: | name |
PRAGMA name. |
||
character(len=*), | intent(in) | :: | value |
PRAGMA value. |