An open API service indexing awesome lists of open source software.

https://github.com/bmaddy/gadget

A version of inspect-tree that displays reverse references for Datomic entities
https://github.com/bmaddy/gadget

clojure datomic

Last synced: 2 months ago
JSON representation

A version of inspect-tree that displays reverse references for Datomic entities

Awesome Lists containing this project

README

          

# gadget

A version of `clojure.inspector/inspect-tree` that includes reverse references when inspecting Datomic entities.

## Usage

[![Clojars Project](https://img.shields.io/clojars/v/gadget.svg)](https://clojars.org/gadget)

Alternatively, you can just hotload the dependency in your project (`cljr-hotload-dependency` in Emacs).

```clojure
(require '[gadget.core :as g])
(g/inspect-entity-tree (d/entity (d/db conn) 0))
;; notice that reverse references are included so you can walk the entire graph
```

## Demo

![gadget demo](doc/gadget-demo.gif)

## License

Copyright © 2018 Brian Maddy

Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.