dm_db_error Function

public function dm_db_error(db, sqlite_error) result(rc)

Returns last database error as DMPACK error code, optionally the SQLite error code in argument sqlite_error. This function matches an SQLite error code to the corresponding DMPACK error code. For example, if the last SQLite error is SQLITE_OK, the function returns E_NONE.

Arguments

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

Database type.

integer, intent(out), optional :: sqlite_error

SQLite error code.

Return Value integer


Calls

proc~~dm_db_error~~CallsGraph proc~dm_db_error dm_db_error sqlite3_errcode sqlite3_errcode proc~dm_db_error->sqlite3_errcode

Called by

proc~~dm_db_error~~CalledByGraph proc~dm_db_error dm_db_error proc~dm_db_insert_observ dm_db_insert_observ proc~dm_db_insert_observ->proc~dm_db_error interface~dm_db_insert dm_db_insert interface~dm_db_insert->proc~dm_db_insert_observ proc~dm_db_insert_observs dm_db_insert_observs interface~dm_db_insert->proc~dm_db_insert_observs proc~dm_db_insert_observs->proc~dm_db_insert_observ