From ad4963e5a0a6ef593578f24a7868e40c025ca819 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Mon, 24 Mar 2025 12:23:53 +0300 Subject: [PATCH] (temp): fix extract entries query --- queries.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/queries.sql b/queries.sql index 4b438ae..1a78e6f 100644 --- a/queries.sql +++ b/queries.sql @@ -1,8 +1,11 @@ --name: extract-entries -SELECT key, value, updated FROM kv_vise +SELECT id, key, value, updated FROM kv_vise WHERE updated > (SELECT last_sync FROM ussd_sync LIMIT 1) ORDER BY updated DESC --name: update-cursor -- $1: timestamp -UPDATE ussd_sync SET last_sync = ($1) \ No newline at end of file +UPDATE ussd_sync SET last_sync = ($1) + +-- 202b3235343732343934323039370013 +-- 202b3235343731313030303132330013 \ No newline at end of file