datascript
datascript copied to clipboard
Immutable database and Datalog query engine for Clojure, ClojureScript and JS
VAET index
Why the VAET index wasn't implemented? Will be it useful to implement it?
If I'm reading [the code](https://github.com/tonsky/datascript/blob/master/src/datascript/impl/entity.cljs#L85-L90) correctly, only type and entity id are being checked when testing entity equality. The problem with this approach is you can have the same entity...
```clj (-> (d/empty-db {:comp {:db/valueType :db.type/ref, :db/isComponent true}}) (d/with [{:comp {}}]) :tx-data) ; => [#datascript/Datom [1 :comp 2 536870913 true]] ```
The problem: walk references until finding the root reference. This example returns `{:id :a :root 1}` in the results as expected for datomic, but fails in datascript: ```clojure (let [c...
There's a bunch of similarly looking issues from the past but none seem to be this particular case. A bad lookup ref inside the query throws an exception but the...
Datascript looks great but [80kb gzipped](https://bundlephobia.com/[email protected]) is pretty heavy. Has this been optimized? Or are there ways to make it smaller?
I've been playing around with this a bit more, and I've discovered a similar-looking bug. Let me know if I should make another issue for it. The following situation is...
I could easily be missing something, but to my current understanding, the intended behavior between the two code snippets below should be identical. ```clojure (d/q '[:find ?int :in ?intersection :where...
Might save some time finding typos ``` [:find ?day ?meal :where [?day :day/dailies ?daily] [?dayily :daily/meal ?meal]] ``` Expected output: ``` WARN '?daily', '?dayily' are only referenced once, possible typo?...
Hi there, I am trying to evaluate if Datascript is the right tool for a problem I'm trying to solve.. and I was wondering how I might accomplish a (full)...