dm_db_get_data_version Function

public function dm_db_get_data_version(db, version) result(rc)

Returns data version in version.

The integer values returned by two invocations of PRAGMA data_version from the same connection will be different if changes were committed to the database by any other connection in the interim.

The PRAGMA data_version value is unchanged for commits made on the same database connection. The behaviour of PRAGMA data_version is the same for all database connections, including database connections in separate processes and shared cache database connections.

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.

integer, intent(out) :: version

Data version.

Return Value integer


Calls

proc~~dm_db_get_data_version~~CallsGraph proc~dm_db_get_data_version dm_db_get_data_version sqlite3_column_int sqlite3_column_int proc~dm_db_get_data_version->sqlite3_column_int sqlite3_column_type sqlite3_column_type proc~dm_db_get_data_version->sqlite3_column_type sqlite3_finalize sqlite3_finalize proc~dm_db_get_data_version->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_get_data_version->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_get_data_version->sqlite3_step