graph/db+sqldb: add HighestChanID to SQLStore

This commit is contained in:
Elle Mouton committed 2025-06-02 14:53:18 +02:00
1 parent d93d104a66
commit cf542458bd
5 files changed
+54 -1

No files matched your search

+7
View File
@@ -153,6 +153,13 @@ RETURNING id;
SELECT * FROM channels
WHERE scid = $1 AND version = $2;
-- name: HighestSCID :one
SELECT scid
FROM channels
WHERE version = $1
ORDER BY scid DESC
LIMIT 1;
/* ─────────────────────────────────────────────
channel_features table queries
─────────────────────────────────────────────