dm_db_row_next Interface

public interface dm_db_row_next

Generic table row access function.

Called by

interface~~dm_db_row_next~~CalledByGraph interface~dm_db_row_next dm_db_row_next proc~dm_db_json_select_beat dm_db_json_select_beat proc~dm_db_json_select_beat->interface~dm_db_row_next proc~dm_db_json_select_log dm_db_json_select_log proc~dm_db_json_select_log->interface~dm_db_row_next proc~dm_db_json_select_node dm_db_json_select_node proc~dm_db_json_select_node->interface~dm_db_row_next proc~dm_db_select_beat dm_db_select_beat proc~dm_db_select_beat->interface~dm_db_row_next proc~dm_db_select_image dm_db_select_image proc~dm_db_select_image->interface~dm_db_row_next proc~dm_db_select_log dm_db_select_log proc~dm_db_select_log->interface~dm_db_row_next proc~dm_db_select_node dm_db_select_node proc~dm_db_select_node->interface~dm_db_row_next proc~dm_db_select_observ dm_db_select_observ proc~dm_db_select_observ->interface~dm_db_row_next proc~dm_db_select_observ_ids dm_db_select_observ_ids proc~dm_db_select_observ_ids->interface~dm_db_row_next proc~dm_db_select_observ_views dm_db_select_observ_views proc~dm_db_select_observ_views->interface~dm_db_row_next proc~dm_db_select_observs_by_id dm_db_select_observs_by_id proc~dm_db_select_observs_by_id->interface~dm_db_row_next proc~dm_db_select_observs_by_id->proc~dm_db_select_observ proc~dm_db_select_sensor dm_db_select_sensor proc~dm_db_select_sensor->interface~dm_db_row_next proc~dm_db_select_sync_log dm_db_select_sync_log proc~dm_db_select_sync_log->interface~dm_db_row_next proc~dm_db_select_sync_logs dm_db_select_sync_logs proc~dm_db_select_sync_logs->interface~dm_db_row_next proc~dm_db_select_sync_node dm_db_select_sync_node proc~dm_db_select_sync_node->interface~dm_db_row_next proc~dm_db_select_sync_nodes dm_db_select_sync_nodes proc~dm_db_select_sync_nodes->interface~dm_db_row_next proc~dm_db_select_sync_observ dm_db_select_sync_observ proc~dm_db_select_sync_observ->interface~dm_db_row_next proc~dm_db_select_sync_observs dm_db_select_sync_observs proc~dm_db_select_sync_observs->interface~dm_db_row_next proc~dm_db_select_sync_sensor dm_db_select_sync_sensor proc~dm_db_select_sync_sensor->interface~dm_db_row_next proc~dm_db_select_sync_sensors dm_db_select_sync_sensors proc~dm_db_select_sync_sensors->interface~dm_db_row_next proc~dm_db_select_sync_target dm_db_select_sync_target proc~dm_db_select_sync_target->interface~dm_db_row_next proc~dm_db_select_sync_targets dm_db_select_sync_targets proc~dm_db_select_sync_targets->interface~dm_db_row_next proc~dm_db_select_target dm_db_select_target proc~dm_db_select_target->interface~dm_db_row_next proc~dm_db_select_transfer dm_db_select_transfer proc~dm_db_select_transfer->interface~dm_db_row_next interface~dm_db_select dm_db_select interface~dm_db_select->proc~dm_db_select_beat interface~dm_db_select->proc~dm_db_select_image interface~dm_db_select->proc~dm_db_select_log interface~dm_db_select->proc~dm_db_select_node interface~dm_db_select->proc~dm_db_select_observ interface~dm_db_select->proc~dm_db_select_sensor interface~dm_db_select->proc~dm_db_select_target interface~dm_db_select->proc~dm_db_select_transfer

Module Procedures

private function db_row_next_allocatable(db_stmt, string, validate) result(rc)

Reads string from table row and returns it as allocatable character string. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

character(len=:), intent(out), allocatable :: string

Allocatable character string.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_character(db_stmt, string, nbyte, validate) result(rc)

Reads string from table row. The passed argument str must be allocated! Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

character(len=*), intent(inout) :: string

Character string.

integer, intent(out) :: nbyte

Size of string in bytes.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_beat(db_stmt, beat, validate) result(rc)

Reads beat data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

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

Beat type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_data_point(db_stmt, dp, validate) result(rc)

Reads observation data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

type(dp_type), intent(inout) :: dp

Data point type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_image(db_stmt, image, validate) result(rc)

Reads image data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

type(image_type), intent(inout) :: image

Image type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_log(db_stmt, log, validate) result(rc)

Reads log data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

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

Log type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_node(db_stmt, node, validate) result(rc)

Reads node data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

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

Node type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_observ(db_stmt, observ, validate) result(rc)

Reads observation data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

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

Observation type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_observ_view(db_stmt, view, validate) result(rc)

Reads observation data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

type(observ_view_type), intent(inout) :: view

Observation view type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_sensor(db_stmt, sensor, validate) result(rc)

Reads sensor data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

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

Sensor type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_string(db_stmt, string, validate) result(rc)

Reads string from table row and returns it as derived type string_type. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

type(string_type), intent(out) :: string

String type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_sync(db_stmt, sync) result(rc)

Reads sync data from table row. Returns E_DB_TYPE on error.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

type(sync_type), intent(inout) :: sync

Sync type.

Return Value integer

private function db_row_next_target(db_stmt, target, validate) result(rc)

Reads target data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

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

Target type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer

private function db_row_next_transfer(db_stmt, transfer, validate) result(rc)

Reads transfer data from table row. Column types are validated by default. Returns E_DB_TYPE if the validation failed.

Arguments

Type IntentOptional Attributes Name
type(db_stmt_type), intent(inout) :: db_stmt

Database statement type.

type(transfer_type), intent(inout) :: transfer

Transfer type.

logical, intent(in), optional :: validate

Validate column types.

Return Value integer