dm_db_pragma_get Interface

public interface dm_db_pragma_get

Generic PRAGMA get function.

Called by

interface~~dm_db_pragma_get~~CalledByGraph interface~dm_db_pragma_get dm_db_pragma_get proc~dm_db_get_application_id dm_db_get_application_id proc~dm_db_get_application_id->interface~dm_db_pragma_get proc~dm_db_get_data_version dm_db_get_data_version proc~dm_db_get_data_version->interface~dm_db_pragma_get proc~dm_db_get_foreign_keys dm_db_get_foreign_keys proc~dm_db_get_foreign_keys->interface~dm_db_pragma_get proc~dm_db_get_journal_mode dm_db_get_journal_mode proc~dm_db_get_journal_mode->interface~dm_db_pragma_get proc~dm_db_get_query_only dm_db_get_query_only proc~dm_db_get_query_only->interface~dm_db_pragma_get proc~dm_db_get_schema_version dm_db_get_schema_version proc~dm_db_get_schema_version->interface~dm_db_pragma_get proc~dm_db_validate dm_db_validate proc~dm_db_validate->proc~dm_db_get_application_id proc~dm_db_validate->proc~dm_db_get_schema_version proc~dm_db_open dm_db_open proc~dm_db_open->proc~dm_db_validate proc~dm_db_backup dm_db_backup proc~dm_db_backup->proc~dm_db_open

Module Procedures

private function db_pragma_get_int32(db, name, value) result(rc)

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.

Arguments

Type IntentOptional 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.

Return Value integer

private function db_pragma_get_int64(db, name, value) result(rc)

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.

Arguments

Type IntentOptional 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.

Return Value integer

private function db_pragma_get_string(db, name, value) result(rc)

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.

Arguments

Type IntentOptional 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.

Return Value integer