initial commit
[squeep-indie-auther] / src / db / sqlite / sql / authentication-upsert.sql
diff --git a/src/db/sqlite/sql/authentication-upsert.sql b/src/db/sqlite/sql/authentication-upsert.sql
new file mode 100644 (file)
index 0000000..8a141ee
--- /dev/null
@@ -0,0 +1,9 @@
+--
+INSERT INTO authentication
+       (identifier, credential)
+VALUES
+       (:identifier, :credential)
+ON CONFLICT (identifier) DO UPDATE
+SET
+       identifier = :identifier,
+       credential = :credential