Fork me on GitHub
#datomic
<
2020-06-02
>
Drew Verlee13:06:49

The simipliest form of discover is to just get all the db idents and do a string filter on them. I'm not sure it gets better then that. The get-schema function alid linked seems to have some hints in it.

ghadi13:06:33

in Datomic, attribute definitions are themselves entities

👍 4
Drew Verlee14:06:27

makes sense thanks.

ghadi13:06:22

you can query them normally:

:find ?attribute
[_ :db/ident ?attribute]

ghadi13:06:34

and you can also augment them with your own information

ghadi13:06:41

that datomic doesn't know about

ghadi13:06:34

so you can add attributes like :drewverlee.attribute/relates-to

ghadi13:06:41

to relate one attribute to another

ghadi13:06:08

or to assist making schema html documentation