datascript
datascript copied to clipboard
Immutable database and Datalog query engine for Clojure, ClojureScript and JS
Hi, I'm trying to do a query using lookup refs, using an input variable in the lookup ref, like this: ``` clj (d/q '[:find ?e :in $ ?client-squuid :where [?e...
Use case: - I want to be able to describe 1-to-1 relationships in my schema. - My solution is to create unique refs in my schema. Did: - Added an...
First of all thanks for a great tool! Are there any plans to support replication/sync DS over wire? It's hard to overestimate the usefulness of such feature for collaborative apps....
This project has my interest, and I'd also like to use it in my project, if it's capable of what I think it is. But... there's no documentation linked. Zero....
``` clj '[:in $ ?now ?after? :find ?e :where [?e :campaign/id] [?e :starts-at ?start] [?e :finishes-at ?finish] [(?after? ?now ?start)] [(?after? ?finish ?now)]] ``` get you `No protocol IIndexAccess.-datoms defined...
I was experimenting with external ids by using the second approach suggested by @tonsky at https://github.com/tonsky/datascript/issues/31#issuecomment-57993865 and found an undocumented max entity-id limit exists at `0x1FFFFFFF` but surpassing it gets...
Skypack reports 56/100 as of 15 Aug 2022. https://docs.skypack.dev/package-authors/package-checks#esm Especially ES module and non-minified versions would be very helpful for me personally.
Back with another weird one. In the following example, I'd like to upsert an entity via composite tuple. One element of the composite tuple is a ref. At insertion time,...
Attempting to follow the [Datomic Rules with required bindings](https://docs.datomic.com/on-prem/query/query.html#rules) documentation and discovered this bug in DataScript. Here's a short example: ```clojure (d/q '[:find ?need :in $ % ?name :where (needs...
## Description Attribute of composite tuple starting with colon is not working in js ## Reproduction A minimal reproduction is provided on [stackblitz](https://stackblitz.com/edit/node-6o4quy?file=README.md&view=editor) ```js const d = require('datascript') const db...