dm_db_select_json_log Function

public function dm_db_select_json_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_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.

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

Returned JSON.

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

Log id.

Return Value integer


Calls

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