dm_db_update_target Function

public function dm_db_update_target(db, target, validate) result(rc)

Uses

  • proc~~dm_db_update_target~~UsesGraph proc~dm_db_update_target dm_db_update_target module~dm_target dm_target proc~dm_db_update_target->module~dm_target module~dm_id dm_id module~dm_target->module~dm_id module~dm_kind dm_kind module~dm_target->module~dm_kind module~dm_util dm_util module~dm_target->module~dm_util iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_util->module~dm_kind module~dm_error dm_error module~dm_util->module~dm_error module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii

Updates the given target in database. The target data is validated by default.

The function returns the following error codes:

  • E_DB_BIND if value binding failed.
  • E_DB_PREPARE if statement preparation failed.
  • E_DB_STEP if step execution failed or no write permission.
  • E_INVALID if target is invalid.
  • E_READ_ONLY if database is opened read-only.

Arguments

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

Database type.

type(target_type), intent(inout) :: target

Target to update.

logical, intent(in), optional :: validate

Validate target.

Return Value integer


Calls

proc~~dm_db_update_target~~CallsGraph proc~dm_db_update_target dm_db_update_target proc~dm_target_is_valid dm_target_is_valid proc~dm_db_update_target->proc~dm_target_is_valid sqlite3_bind_double sqlite3_bind_double proc~dm_db_update_target->sqlite3_bind_double sqlite3_bind_int sqlite3_bind_int proc~dm_db_update_target->sqlite3_bind_int sqlite3_bind_text sqlite3_bind_text proc~dm_db_update_target->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_update_target->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_update_target->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_update_target->sqlite3_step proc~dm_id_is_valid dm_id_is_valid proc~dm_target_is_valid->proc~dm_id_is_valid proc~dm_target_state_is_valid dm_target_state_is_valid proc~dm_target_is_valid->proc~dm_target_state_is_valid

Called by

proc~~dm_db_update_target~~CalledByGraph proc~dm_db_update_target dm_db_update_target interface~dm_db_update dm_db_update interface~dm_db_update->proc~dm_db_update_target