dm_db_set_schema_version Function

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

Sets database schema version.

The user_version pragma will get or set the value of the user-version integer at offset 60 in the database header. The user-version is an integer that is available to applications to use however they want. SQLite makes no use of the user-version itself.

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.

Arguments

Type IntentOptional Attributes Name
type(db_type), intent(inout) :: db

Database type.

integer, intent(in) :: version

Database user version.

Return Value integer


Calls

proc~~dm_db_set_schema_version~~CallsGraph proc~dm_db_set_schema_version dm_db_set_schema_version interface~dm_itoa dm_itoa proc~dm_db_set_schema_version->interface~dm_itoa proc~dm_db_finalize dm_db_finalize proc~dm_db_set_schema_version->proc~dm_db_finalize proc~dm_db_prepare dm_db_prepare proc~dm_db_set_schema_version->proc~dm_db_prepare proc~dm_db_step dm_db_step proc~dm_db_set_schema_version->proc~dm_db_step proc~dm_is_error dm_is_error proc~dm_db_set_schema_version->proc~dm_is_error sqlite3_finalize sqlite3_finalize proc~dm_db_finalize->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_prepare->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_step->sqlite3_step

Called by

proc~~dm_db_set_schema_version~~CalledByGraph proc~dm_db_set_schema_version dm_db_set_schema_version proc~dm_db_open dm_db_open proc~dm_db_open->proc~dm_db_set_schema_version proc~dm_db_backup dm_db_backup proc~dm_db_backup->proc~dm_db_open