dm_db_json_select_log Function

public function dm_db_json_select_log(db, json, log_id) result(rc)

Returns log associated with given id as allocatable character in JSON format in json. If no log has been found, the string will be empty and the function returns E_DB_NO_ROWS.

The function returns the following error codes:

  • E_DB_BIND if value binding failed.
  • E_DB_DONE if statement finished.
  • E_DB_PREPARE if statement preparation failed.
  • E_DB_TYPE if returned columns are unexpected.
  • E_INVALID if id is invalid.

Arguments

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

Database type.

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

Returned JSON.

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

Log id.

Return Value integer


Calls

proc~~dm_db_json_select_log~~CallsGraph proc~dm_db_json_select_log dm_db_json_select_log interface~dm_db_bind dm_db_bind proc~dm_db_json_select_log->interface~dm_db_bind interface~dm_db_query_where dm_db_query_where proc~dm_db_json_select_log->interface~dm_db_query_where interface~dm_db_row_next dm_db_row_next proc~dm_db_json_select_log->interface~dm_db_row_next proc~dm_db_finalize dm_db_finalize proc~dm_db_json_select_log->proc~dm_db_finalize proc~dm_db_prepare dm_db_prepare proc~dm_db_json_select_log->proc~dm_db_prepare proc~dm_db_query_build dm_db_query_build proc~dm_db_json_select_log->proc~dm_db_query_build proc~dm_db_query_destroy dm_db_query_destroy proc~dm_db_json_select_log->proc~dm_db_query_destroy proc~dm_db_step dm_db_step proc~dm_db_json_select_log->proc~dm_db_step proc~dm_is_error dm_is_error proc~dm_db_json_select_log->proc~dm_is_error sqlite3_finalize sqlite3_finalize proc~dm_db_finalize->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_prepare->sqlite3_prepare_v2 proc~dm_btoa dm_btoa proc~dm_db_query_build->proc~dm_btoa sqlite3_step sqlite3_step proc~dm_db_step->sqlite3_step