dm_db_update_sensor Function

public function dm_db_update_sensor(db, sensor, validate) result(rc)

Uses

  • proc~~dm_db_update_sensor~~UsesGraph proc~dm_db_update_sensor dm_db_update_sensor module~dm_sensor dm_sensor proc~dm_db_update_sensor->module~dm_sensor module~dm_id dm_id module~dm_sensor->module~dm_id module~dm_kind dm_kind module~dm_sensor->module~dm_kind module~dm_node dm_node module~dm_sensor->module~dm_node iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_node->module~dm_id module~dm_node->module~dm_kind

Updates given sensor in database. The sensor 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 sensor 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(sensor_type), intent(inout) :: sensor

Sensor to update.

logical, intent(in), optional :: validate

Validate sensor.

Return Value integer


Calls

proc~~dm_db_update_sensor~~CallsGraph proc~dm_db_update_sensor dm_db_update_sensor proc~dm_sensor_is_valid dm_sensor_is_valid proc~dm_db_update_sensor->proc~dm_sensor_is_valid sqlite3_bind_double sqlite3_bind_double proc~dm_db_update_sensor->sqlite3_bind_double sqlite3_bind_int sqlite3_bind_int proc~dm_db_update_sensor->sqlite3_bind_int sqlite3_bind_text sqlite3_bind_text proc~dm_db_update_sensor->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_update_sensor->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_update_sensor->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_update_sensor->sqlite3_step proc~dm_id_is_valid dm_id_is_valid proc~dm_sensor_is_valid->proc~dm_id_is_valid proc~dm_sensor_type_is_valid dm_sensor_type_is_valid proc~dm_sensor_is_valid->proc~dm_sensor_type_is_valid

Called by

proc~~dm_db_update_sensor~~CalledByGraph proc~dm_db_update_sensor dm_db_update_sensor interface~dm_db_update dm_db_update interface~dm_db_update->proc~dm_db_update_sensor