datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
2021-06-16T10:45:58.222700Z

the numbers are eids, so you can just pull them using d/pull. You could query all attribute names, and use the query-result to map over the 4th entry to make it more efficient. depending your usecase.

Joe Lane 2021-06-16T13:36:06.223400Z

On-Prem or cloud?

Joe Lane 2021-06-16T14:12:24.223600Z

Both https://docs.datomic.com/on-prem/peer/peer-getting-started.html and https://docs.datomic.com/cloud/dev-local.html have equivalent memory databases which you could create and tear down for every unit-test, no production-code modification required.

joshkh 2021-06-16T18:44:43.228100Z

is there a way to trace which https://docs.datomic.com/cloud/query/query-data-reference.html#rules) were satisfied during a query execution? i'm working on a rule list that is sometimes flat, sometimes recursive, and i'd like to be able explain which conditions were met (or not) for auditing purposes

joshkh 2021-06-17T10:45:26.232900Z

hey that's a great idea, thanks @favila

favila 2021-06-16T21:07:36.229Z

I typically add an extra constant binding to each rule

favila 2021-06-16T21:08:04.229200Z

[(ground :rule-impl-1) ?matched-rule-impl]