dm_db_delete_sensor Function

public function dm_db_delete_sensor(db, sensor_id) result(rc)

Deletes sensor of given id from database.

The function returns the following error codes:

  • 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 sensor id is invalid.
  • E_READ_ONLY if database is opened read-only.

Arguments

Type IntentOptional Attributes Name
type(db_type), intent(inout) :: db

Database type.

character(len=*), intent(in) :: sensor_id

Sensor id.

Return Value integer


Calls

proc~~dm_db_delete_sensor~~CallsGraph proc~dm_db_delete_sensor dm_db_delete_sensor sqlite3_bind_text sqlite3_bind_text proc~dm_db_delete_sensor->sqlite3_bind_text sqlite3_finalize sqlite3_finalize proc~dm_db_delete_sensor->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_delete_sensor->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_delete_sensor->sqlite3_step