datascript icon indicating copy to clipboard operation
datascript copied to clipboard

Immutable database and Datalog query engine for Clojure, ClojureScript and JS

Results 87 datascript issues
Sort by recently updated
recently updated
newest added

Hi, I'm encountering an issue where data is disappearing or reappearing in historical versions of my db when I do subsequent transactions against the current version. It only happens with...

Is there a recommended/standard/supported way to compose queries in javascript in a more flexible/native way than through writing it all into a string? I saw that datascript-mori exists, but seems...

`(compare [1] [2]) ;; -1` is ok because vecotors are Comparable. `(compare '(1) '(2)) ;; BOOM` throws an exception because lists are not Comparable, it's expected. `(compare ['(1)] ['(2)]) ;;...

I have an implementation of this in Datsync ([here](https://github.com/metasoarous/datsync/blob/master/src/dat/sync/client.cljc#L437)), and I'd really rather have it just be a function in `datascript.core` if you're amenable. More or less, it creates a...

In a transaction where a map has refs and reverse-ref attributes, the ref attributes are thrown away. This works: ```clojure (require '[datascript.core :as d]) (def db (d/empty-db {:foo/id {:db/unique :db.unique/identity}...

Hi, Is there any project to provide typings? All I could find was some stubs here: https://github.com/gmoskal/datascript-redux-typescript

Opening a separate issue based on comment at https://github.com/tonsky/datascript/issues/76#issuecomment-269110873 In order the following fails with `Cannot add #datascript/Datom [1 :name "Ivan" true] because of unique constraint`, but succeeds if you...

![image](https://user-images.githubusercontent.com/6021537/95204984-5d72b280-0817-11eb-9837-fca599371b09.png) ```clojure (defn import-datascript-data [stri] (d/reset-conn! dsdb ^js (dt/read-transit-str stri))) ```

On `datomic`, when we call a "transaction function", the `db` that this function receive is the `db` before all transaction In `datascript 1.0.1`, it receive a "partial db" relative to...

It would be really handy to be able to use DataScript in [Lumo](https://github.com/anmonteiro/lumo). Is this something there's interest in supporting? I've done some basic proof of concept work using [macrovich](https://github.com/cgrand/macrovich)...