Adds array of beats to database. A transaction is used unless
transaction is .false.. The beat 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 beats is empty.E_INVALID if an element in beats 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(beat_type), | intent(inout) | :: | beats(:) |
Beat type array. |
||
| logical, | intent(in), | optional | :: | transaction |
Use SQL transaction. |
|
| logical, | intent(in), | optional | :: | validate |
Validate beats. |