Skip to content
Snippets Groups Projects
Commit 80da0850 authored by Bruno Burke's avatar Bruno Burke :hamburger:
Browse files

upsert for doc-cache insert

parent 0fc940e4
No related branches found
No related tags found
1 merge request!1Draft: Migration
(defproject document-storage "0.2.2"
(defproject document-storage "0.2.3"
:description "FIXME: write description"
:repositories [["internal" {:url "https://leukipp.fh-muenster.de:9082/releases"
:username "anonymous"}]]
......@@ -15,7 +15,7 @@
[luminus-migrations "0.7.1"]
[com.cognitect/transit-clj "1.0.324"]
[conman "0.9.0"]
[wwsoftware/clj-helper "0.0.3.5"]
[wwsoftware/clj-helper "0.0.3.10"]
[org.postgresql/postgresql "42.2.14"]]
:profiles {:test [:project/test :profiles/test]
:dev [:project/dev :profiles/dev]
......
......@@ -3,7 +3,8 @@
INSERT INTO :i:cache-table
(repository, "document", "version", "data")
VALUES (:repository-name, :document-id, :version, :data)
ON CONFLICT(repository, "document", "version")
DO UPDATE SET "data" = :data
-- :name get-cached-document :? :1
-- :doc retrieve cached document.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment