diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-10 17:07:45 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-10-10 17:07:45 -0400 |
| commit | 62dae6011db94dd52c3ac0fce517c6e9cc0abcf6 (patch) | |
| tree | 1700442c9b6648af7ec8781af0ec92856a93cecd /src/sql/setlist_upsert.sql | |
| parent | cc8653536c499df4b85aae423ad6b27bb74544be (diff) | |
pke-at: first-pass storage interface
Diffstat (limited to 'src/sql/setlist_upsert.sql')
| -rw-r--r-- | src/sql/setlist_upsert.sql | 7 |
1 files changed, 7 insertions, 0 deletions
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; |
