dm_db_select Interface

public interface dm_db_select

Generic database select function.

Calls

interface~~dm_db_select~~CallsGraph interface~dm_db_select dm_db_select proc~dm_db_select_beat dm_db_select_beat interface~dm_db_select->proc~dm_db_select_beat proc~dm_db_select_log dm_db_select_log interface~dm_db_select->proc~dm_db_select_log proc~dm_db_select_node dm_db_select_node interface~dm_db_select->proc~dm_db_select_node proc~dm_db_select_observ dm_db_select_observ interface~dm_db_select->proc~dm_db_select_observ proc~dm_db_select_sensor dm_db_select_sensor interface~dm_db_select->proc~dm_db_select_sensor proc~dm_db_select_target dm_db_select_target interface~dm_db_select->proc~dm_db_select_target sqlite3_bind_text sqlite3_bind_text proc~dm_db_select_beat->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_select_beat->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_select_beat->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_select_beat->sqlite3_step proc~dm_db_select_log->sqlite3_bind_text proc~dm_db_select_log->sqlite3_finalize proc~dm_db_select_log->sqlite3_prepare_v2 proc~dm_db_select_log->sqlite3_step proc~dm_db_select_node->sqlite3_bind_text proc~dm_db_select_node->sqlite3_finalize proc~dm_db_select_node->sqlite3_prepare_v2 proc~dm_db_select_node->sqlite3_step proc~dm_is_error dm_is_error proc~dm_db_select_observ->proc~dm_is_error sqlite3_bind_int sqlite3_bind_int proc~dm_db_select_observ->sqlite3_bind_int proc~dm_db_select_observ->sqlite3_bind_text sqlite3_column_double sqlite3_column_double proc~dm_db_select_observ->sqlite3_column_double sqlite3_column_int sqlite3_column_int proc~dm_db_select_observ->sqlite3_column_int sqlite3_column_text sqlite3_column_text proc~dm_db_select_observ->sqlite3_column_text sqlite3_column_type sqlite3_column_type proc~dm_db_select_observ->sqlite3_column_type proc~dm_db_select_observ->sqlite3_finalize proc~dm_db_select_observ->sqlite3_prepare_v2 sqlite3_reset sqlite3_reset proc~dm_db_select_observ->sqlite3_reset proc~dm_db_select_observ->sqlite3_step proc~dm_db_select_sensor->sqlite3_bind_text proc~dm_db_select_sensor->sqlite3_finalize proc~dm_db_select_sensor->sqlite3_prepare_v2 proc~dm_db_select_sensor->sqlite3_step proc~dm_db_select_target->sqlite3_bind_text proc~dm_db_select_target->sqlite3_finalize proc~dm_db_select_target->sqlite3_prepare_v2 proc~dm_db_select_target->sqlite3_step

Module Procedures

public function dm_db_select_beat(db, beat, node_id) result(rc)

Returns heartbeat associated with given node id in beat.

Read more…

Arguments

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

Database type.

type(beat_type), intent(out) :: beat

Returned beat type.

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

Node id.

Return Value integer

public function dm_db_select_log(db, log, log_id) result(rc)

Returns log associated with given id in log.

Read more…

Arguments

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

Database type.

type(log_type), intent(out) :: log

Returned log data.

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

Log id.

Return Value integer

public function dm_db_select_node(db, node, node_id) result(rc)

Returns node data associated with given id in node.

Read more…

Arguments

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

Database type.

type(node_type), intent(out) :: node

Returned node data.

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

Node id.

Return Value integer

public function dm_db_select_observ(db, observ, observ_id) result(rc)

Returns observation referenced by the given id from database.

Read more…

Arguments

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

Database type.

type(observ_type), intent(out) :: observ

Selected observation.

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

Observation id (UUID).

Return Value integer

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

Returns sensor data associated with given sensor id from database.

Read more…

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

public function dm_db_select_target(db, target, target_id) result(rc)

Returns target data associated with given target id from database.

Read more…

Arguments

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

Database type.

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

Returned target data.

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

Target id.

Return Value integer