Created
September 3, 2018 13:09
-
-
Save dimovich/aa273b53e382544a82a9670fa32a0669 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; can we make DS leave data unsorted? | |
(require '[datascript.core :as ds]) | |
(def schema {:tags {:db/cardinality :db.cardinality/many}}) | |
(def conn (ds/create-conn schema)) | |
(ds/transact! conn [{:tags [33 1 12 1545 234]}]) | |
(ds/pull @conn '[*] 1) | |
;; {:db/id 1, :tags [1 12 33 234 1545]} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment