dm_db_select_sensor Function

public function dm_db_select_sensor(db, sensor, sensor_id) result(rc)

Uses

  • proc~~dm_db_select_sensor~~UsesGraph proc~dm_db_select_sensor dm_db_select_sensor module~dm_sensor dm_sensor proc~dm_db_select_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

Returns sensor data associated with given sensor id from database.

The function returns the following error codes:

  • E_DB_BIND if value binding failed.
  • E_DB_NO_ROWS if no rows are returned.
  • E_DB_PREPARE if statement preparation failed.
  • E_DB_TYPE if returned columns are unexpected.

Arguments

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

Database type.

type(sensor_type), intent(out) :: sensor

Returned sensor data.

character(len=*), intent(in) :: sensor_id

Sensor id.

Return Value integer


Calls

proc~~dm_db_select_sensor~~CallsGraph proc~dm_db_select_sensor dm_db_select_sensor sqlite3_bind_text sqlite3_bind_text proc~dm_db_select_sensor->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_select_sensor->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_select_sensor->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_select_sensor->sqlite3_step

Called by

proc~~dm_db_select_sensor~~CalledByGraph proc~dm_db_select_sensor dm_db_select_sensor interface~dm_db_select dm_db_select interface~dm_db_select->proc~dm_db_select_sensor