Adds array of observations to database. A transaction is used unless
transaction is .false.. The observation 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_EXEC if execution of transaction statement failed.E_DB_PREPARE if statement preparation failed.E_DB_ROLLBACK if transaction rollback failed.E_DB_STEP if step execution failed or no write permission.E_DB_TRANSACTION if transaction failed.E_EMPTY if array observs is empty.E_INVALID if an element in observs is invalid.E_READ_ONLY if database is opened read-only.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database type. |
||
| type(observ_type), | intent(inout) | :: | observs(:) |
Observation type array. |
||
| logical, | intent(in), | optional | :: | transaction |
Use SQL transaction. |
|
| logical, | intent(in), | optional | :: | validate |
Validate observations. |