PKGBUILD/pkg/repository/sqlite3/dml/updateSensor.sql

16 lines
287 B
SQL

UPDATE sensors
SET
sensor_name = $1,
sensor_location = $2,
wire_id = $3,
i2c_bus = $4,
i2c_address = $5,
gpio_number = $6,
sensor_model = $7,
sensor_enabled = $8,
tick_duration = $9,
device_id = $10,
creation_date = $11,
update_date = $12
WHERE
sensor_id = $13;