Adds the given heartbeat to database. 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_PREPARE
if statement preparation failed.E_DB_STEP
if step execution failed or no write permission.E_INVALID
if argument beat
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) | :: | beat |
Beat to insert. |
||
type(db_stmt_type), | intent(inout), | optional | :: | db_stmt |
Database statement type. |
|
logical, | intent(in), | optional | :: | validate |
Validate beat. |