dm_db_select_target Function

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

Uses

  • proc~~dm_db_select_target~~UsesGraph proc~dm_db_select_target dm_db_select_target module~dm_target dm_target proc~dm_db_select_target->module~dm_target module~dm_id dm_id module~dm_target->module~dm_id module~dm_kind dm_kind module~dm_target->module~dm_kind module~dm_util dm_util module~dm_target->module~dm_util iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_util->module~dm_kind module~dm_error dm_error module~dm_util->module~dm_error module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii

Returns target data associated with given target 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(target_type), intent(out) :: target

Returned target data.

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

Target id.

Return Value integer


Calls

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

Called by

proc~~dm_db_select_target~~CalledByGraph proc~dm_db_select_target dm_db_select_target interface~dm_db_select dm_db_select interface~dm_db_select->proc~dm_db_select_target