Generic database insert function.
Adds the given heartbeat to database. The beat data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(beat_type), | intent(inout) | :: | beat |
Beat to insert. |
||
| type(db_stmt_type), | intent(inout), | optional | :: | dbs |
Database statement. |
|
| logical, | intent(in), | optional | :: | validate |
Validate beat. |
Adds array of beats to database. A transaction is used unless
transaction is .false.. The beat data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(beat_type), | intent(inout) | :: | beats(:) |
Beat type array. |
||
| logical, | intent(in), | optional | :: | transaction |
Use SQL transaction. |
|
| logical, | intent(in), | optional | :: | validate |
Validate beats. |
Adds given image to database. The image data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(image_type), | intent(inout) | :: | image |
Image to insert. |
||
| logical, | intent(in), | optional | :: | validate |
Validate image. |
Adds the given log to database. The log data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(log_type), | intent(inout) | :: | log |
Log message to insert. |
||
| logical, | intent(in), | optional | :: | validate |
Validate log. |
Adds the given node to database. The node data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(node_type), | intent(inout) | :: | node |
Node to insert. |
||
| logical, | intent(in), | optional | :: | validate |
Validate node. |
Adds single observation to database, including receivers, requests, and responses. If the insert query fails, the transaction will be rolled back, i.e., no part of the observation is written to the database on error. The observation data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(observ_type), | intent(inout) | :: | observ |
Observation. |
||
| type(db_stmt_type), | intent(inout), | optional | :: | dbs |
Database statement. |
|
| logical, | intent(in), | optional | :: | validate |
Validate observation. |
Adds array of observations to database. A transaction is used unless
transaction is .false.. The observation data is validated by
default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(observ_type), | intent(inout) | :: | observs(:) |
Observation type array. |
||
| logical, | intent(in), | optional | :: | transaction |
Use SQL transaction. |
|
| logical, | intent(in), | optional | :: | validate |
Validate observations. |
Adds given sensor to database. The sensor data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(sensor_type), | intent(inout) | :: | sensor |
Sensor to insert. |
||
| logical, | intent(in), | optional | :: | validate |
Validate sensor. |
Adds given target to database. The target data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(target_type), | intent(inout) | :: | target |
Target to insert. |
||
| logical, | intent(in), | optional | :: | validate |
Validate target. |
Adds given transfer to database. The transfer data is validated by default.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(db_type), | intent(inout) | :: | db |
Database. |
||
| type(transfer_type), | intent(inout) | :: | transfer |
Transfer to insert. |
||
| logical, | intent(in), | optional | :: | validate |
Validate transfer. |