dm_db_insert_beat Function

public function dm_db_insert_beat(db, beat, db_stmt, validate) result(rc)

Uses

  • proc~~dm_db_insert_beat~~UsesGraph proc~dm_db_insert_beat dm_db_insert_beat module~dm_beat dm_beat proc~dm_db_insert_beat->module~dm_beat module~dm_error dm_error module~dm_beat->module~dm_error module~dm_id dm_id module~dm_beat->module~dm_id module~dm_kind dm_kind module~dm_beat->module~dm_kind module~dm_net dm_net module~dm_beat->module~dm_net module~dm_node dm_node module~dm_beat->module~dm_node module~dm_time dm_time module~dm_beat->module~dm_time module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_node->module~dm_id module~dm_node->module~dm_kind module~dm_time->module~dm_error module~dm_time->module~dm_kind module~dm_util dm_util module~dm_time->module~dm_util module~dm_util->module~dm_error module~dm_util->module~dm_kind

Adds the given heartbeat to database. The beat data is validated by default.

The function returns the following error codes:

  • E_DB if statement reset failed.
  • 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 argument beat 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(beat_type), intent(inout) :: beat

Beat to insert.

type(db_stmt_type), intent(inout), optional :: db_stmt

Database statement type.

logical, intent(in), optional :: validate

Validate beat.

Return Value integer


Calls

proc~~dm_db_insert_beat~~CallsGraph proc~dm_db_insert_beat dm_db_insert_beat proc~dm_beat_is_valid dm_beat_is_valid proc~dm_db_insert_beat->proc~dm_beat_is_valid sqlite3_bind_int sqlite3_bind_int proc~dm_db_insert_beat->sqlite3_bind_int sqlite3_bind_text sqlite3_bind_text proc~dm_db_insert_beat->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_insert_beat->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_insert_beat->sqlite3_prepare_v2 sqlite3_reset sqlite3_reset proc~dm_db_insert_beat->sqlite3_reset sqlite3_step sqlite3_step proc~dm_db_insert_beat->sqlite3_step proc~dm_id_is_valid dm_id_is_valid proc~dm_beat_is_valid->proc~dm_id_is_valid proc~dm_string_is_printable dm_string_is_printable proc~dm_beat_is_valid->proc~dm_string_is_printable proc~dm_time_is_valid dm_time_is_valid proc~dm_beat_is_valid->proc~dm_time_is_valid proc~dm_ascii_is_printable dm_ascii_is_printable proc~dm_string_is_printable->proc~dm_ascii_is_printable proc~dm_ascii_is_digit dm_ascii_is_digit proc~dm_time_is_valid->proc~dm_ascii_is_digit

Called by

proc~~dm_db_insert_beat~~CalledByGraph proc~dm_db_insert_beat dm_db_insert_beat interface~dm_db_insert dm_db_insert interface~dm_db_insert->proc~dm_db_insert_beat proc~dm_db_insert_beats dm_db_insert_beats interface~dm_db_insert->proc~dm_db_insert_beats proc~dm_db_insert_beats->proc~dm_db_insert_beat