From 62dae6011db94dd52c3ac0fce517c6e9cc0abcf6 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 10 Oct 2025 17:07:45 -0400 Subject: pke-at: first-pass storage interface --- src/sql/section_upsert.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/sql/section_upsert.sql (limited to 'src/sql/section_upsert.sql') diff --git a/src/sql/section_upsert.sql b/src/sql/section_upsert.sql new file mode 100644 index 0000000..4ca1025 --- /dev/null +++ b/src/sql/section_upsert.sql @@ -0,0 +1,10 @@ +INSERT INTO [at_section] (uuid,section_type,sequence,beats_per_bar,bar_count) + VALUES('%s','%s','%s','%s','%s') + ON CONFLICT(uuid) DO UPDATE SET + section_type=excluded.section_type + ,sequence=excluded.sequence + ,beats_per_bar=excluded.beats_per_bar + ,bar_count=excluded.bar_count + ,is_deleted=0 + ,modification_dt=unixepoch('now') + WHERE uuid=excluded.uuid; -- cgit v1.2.3