From 62dae6011db94dd52c3ac0fce517c6e9cc0abcf6 Mon Sep 17 00:00:00 2001
From: Jonathan Bradley <jcb@pikum.xyz>
Date: Fri, 10 Oct 2025 17:07:45 -0400
Subject: pke-at: first-pass storage interface

---
 src/sql/setlist_upsert.sql | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 src/sql/setlist_upsert.sql

(limited to 'src/sql/setlist_upsert.sql')

diff --git a/src/sql/setlist_upsert.sql b/src/sql/setlist_upsert.sql
new file mode 100644
index 0000000..b10f783
--- /dev/null
+++ b/src/sql/setlist_upsert.sql
@@ -0,0 +1,7 @@
+INSERT INTO [at_setlist] (uuid,title)
+	VALUES('%s','%s')
+		ON CONFLICT(uuid) DO UPDATE SET
+			title=excluded.title
+			,is_deleted=0
+			,modification_dt=unixepoch('now')
+		WHERE uuid=excluded.uuid;
-- 
cgit v1.2.3

