This is a preview release of Datahike with FoundationDB as data storage.
Install FoundationDB for your system.
(require '[datahike.core :as d])
;; Create an new db
(def db (d/empty-db))
;; Populate the database
(d/db-with db [ { :db/id 1, :name "Ivan", :age 15 }
{ :db/id 2, :name "Petr", :age 37 }
{ :db/id 3, :name "Ivan", :age 37 }
{ :db/id 4, :age 15 }])
;; Search the data
(d/q '[:find ?e ?v
:where [?e :name "Ivan"]
[?e :age ?v]] db)
=> #{[1 15] [3 37]}
- datahike-fdb is not an immutable store, therefore all history related Datahike APIs will not work.
- Java 8 only.
Copyright © 2014–2020 Chrislain Razafimahefa, Konrad Kühne, Christian Weilbach, Nikita Prokopov
Licensed under Eclipse Public License (see LICENSE).