This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-20
Channels
- # aleph (1)
- # announcements (1)
- # aws (11)
- # babashka (117)
- # beginners (34)
- # calva (13)
- # cider (3)
- # clj-commons (8)
- # clj-kondo (24)
- # clj-yaml (36)
- # cljsrn (46)
- # clojure (50)
- # clojure-australia (5)
- # clojure-europe (239)
- # clojure-nl (3)
- # clojure-norway (3)
- # clojure-spec (16)
- # clojurescript (25)
- # core-typed (20)
- # cursive (41)
- # datahike (1)
- # datalevin (1)
- # datomic (17)
- # fulcro (27)
- # hyperfiddle (35)
- # introduce-yourself (1)
- # jobs (4)
- # lsp (20)
- # malli (8)
- # meander (8)
- # nbb (1)
- # off-topic (31)
- # parinfer (9)
- # pathom (3)
- # portal (2)
- # re-frame (20)
- # react (2)
- # reagent (8)
- # releases (1)
- # remote-jobs (4)
- # scittle (2)
- # shadow-cljs (8)
- # slack-help (4)
- # sql (30)
- # squint (3)
- # tools-deps (34)
- # xtdb (21)
Happy to release a new version of https://github.com/lilactown/pyramid! A library for executing EQL queries over Clojure data and other graph stores, and storing graph data in normal form in Clojure data.
Version 3.4.0 brings a few changes:
* New pyramid.core/identify
function which takes a DB and entity map and returns the lookup ID of the map as if it were added to the DB.
* New visitor pattern support
Visitor pattern: you can now annotate parts of an EQL query with`{:visitor (fn visit [db data] ,,,)}` metadata, which will replace the location with the return value of the visit
function in the final result of the pull
or pull-report
call.
It is similar to doing a postwalk on the results of pull
or pull-report
, but is done in the same pass as pulling data out of the DB - so less traversals - and the transformations can be easily annotated on the location that you want to transform.
See https://github.com/lilactown/pyramid/blob/839306f374ddb888b9e06f0f9dfd14a5f943b0ee/test/pyramid/pull_test.cljc#L53 for example usage.
* Fixed merge-entity
in babashka
This work is a part of a larger project funded by #cljtogether. See https://www.clojuriststogether.org/news/q3-2022-funding-announcement/#exo-unreleased for more details on that. Thanks for the support!