We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is also mentioned on Datascript's Issues. Basically upsert to update fails on entity with unique composite tuple:
(def schema {:a+b {:db/tupleAttrs [:a :b] :db/unique :db.unique/identity}}) (def conn (dl/get-conn "test-dl" schema)) (dl/transact conn [{:a 1 :b 2}]) (dl/transact conn [{:a 1 :b 2}])
Execution error (ExceptionInfo) at datalevin.db/validate-datom (db.clj:724). Cannot add #datalevin/Datom [2 :a+b [1 2]] because of unique constraint: [#datalevin/Retrieved [nil 3 [1 2] nil] #datalevin/Retrieved [1 nil nil 0]]
The text was updated successfully, but these errors were encountered:
Will take a look.
Sorry, something went wrong.
No branches or pull requests
This is also mentioned on Datascript's Issues.
Basically upsert to update fails on entity with unique composite tuple:
The text was updated successfully, but these errors were encountered: