This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-29
Channels
- # beginners (16)
- # cider (7)
- # clj-kondo (4)
- # clj-together (1)
- # cljsrn (1)
- # clojure (11)
- # clojure-europe (4)
- # clojure-norway (6)
- # clojure-spec (1)
- # clojurescript (2)
- # datalevin (35)
- # datomic (9)
- # honeysql (1)
- # introduce-yourself (3)
- # lsp (6)
- # off-topic (25)
- # pathom (1)
- # polylith (1)
- # releases (1)
- # shadow-cljs (38)
- # sql (5)
Hello guys! Is there a library for declaratively querying nested clojure collections? I know there is a great Specter library but I want something more similar to Datalog pull syntax.
Datascript (https://github.com/tonsky/datascript) offers datalog, but it manages its own collection.. For built-in data structures, especially if they are made up of vectors and keyword-indexed maps, these three core functions go a long way: get-in, assoc-in, update-in
isn’t DataScript designed to work with triple stores (flat vectors) is it possible to query any other type of collections?
there's also something called meander, which may be close to what you're looking for
this one is fairly simple: https://github.com/xapix-io/matchete
@U19BK6W0L can you share your use case? Like, a psuedo example? Datascript supports pulling a tree of any depth, as long as the schema defines the tree ahead of time is the pull.
What other type of collections are you trying to query?
I've never used it but https://github.com/edn-query-language/eql seems decoupled from graphql