mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
30 lines
541 B
SQL
30 lines
541 B
SQL
INSERT INTO
|
|
reading
|
|
(
|
|
time,
|
|
name,
|
|
model,
|
|
temperature,
|
|
pressure,
|
|
humidity,
|
|
luminance,
|
|
gas_resistance,
|
|
color_temperature,
|
|
air_quality_index
|
|
)
|
|
VALUES
|
|
(
|
|
@Timestamp,
|
|
@Name,
|
|
@Model,
|
|
@Temperature,
|
|
@Pressure,
|
|
@Humidity,
|
|
@Luminance,
|
|
@GasResistance,
|
|
@ColorTemperature,
|
|
@AirQualityIndex
|
|
)
|
|
ON CONFLICT
|
|
ON CONSTRAINT reading_pk
|
|
DO NOTHING |