2024-10-21 01:38:35 +00:00
|
|
|
-- name: MeshtasticNodeUpdate :exec
|
2024-10-21 04:17:11 +00:00
|
|
|
INSERT INTO meshtastic_nodes (node_num, meshtastic_id, long_name, short_name, hw_model, public_key) VALUES (?, ?, ?, ?, ?, ?) ON CONFLICT (node_num) DO UPDATE SET
|
2024-10-21 01:38:35 +00:00
|
|
|
meshtastic_id = excluded.meshtastic_id,
|
|
|
|
long_name = excluded.long_name,
|
|
|
|
short_name = excluded.short_name,
|
|
|
|
hw_model = excluded.hw_model,
|
|
|
|
public_key = excluded.public_key;
|
2024-10-21 04:17:11 +00:00
|
|
|
|
|
|
|
-- name: MeshtasticNodeGet :one
|
|
|
|
SELECT * FROM meshtastic_nodes WHERE node_num = ? LIMIT 1;
|