datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
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]