fix: add, rename and remove sensor
changes: - Implement function to add, rename and remove sensors
This commit is contained in:
2
pkg/storage/postgres/removeSensorByID.sql
Normal file
2
pkg/storage/postgres/removeSensorByID.sql
Normal file
@ -0,0 +1,2 @@
|
||||
DELETE FROM sensors
|
||||
WHERE sensor_id = $1;
|
2
pkg/storage/postgres/removeSensorByName.sql
Normal file
2
pkg/storage/postgres/removeSensorByName.sql
Normal file
@ -0,0 +1,2 @@
|
||||
DELETE FROM sensors
|
||||
WHERE sensor_name = $1;
|
Reference in New Issue
Block a user