Returns logs by observation id in allocatable array logs
.
The function returns the following error codes:
E_ALLOC
if memory allocation failed.E_DB_BIND
if value binding failed.E_DB_FINALIZE
if statement finalisation 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.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
type(log_type), | intent(out), | allocatable | :: | logs(:) |
Returned log data array. |
|
character(len=*), | intent(in) | :: | observ_id |
Observation id. |
||
integer(kind=i8), | intent(out), | optional | :: | nlogs |
Number of logs. |