datalog: dl-rules-of relation-inspection helper (214/214)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 49s

(dl-rules-of db rel-name) → list of rules with head matching
the given relation name. Useful for tooling and debugging
("show me how this relation is derived") without exposing the
internal :rules list directly.

2 new api tests cover hit and miss cases.
This commit is contained in:
2026-05-08 10:17:44 +00:00
parent fc6979a371
commit 9695d31dab
4 changed files with 38 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# datalog scoreboard
**212 / 212 passing** (0 failure(s)).
**214 / 214 passing** (0 failure(s)).
| Suite | Passed | Total | Status |
|-------|--------|-------|--------|
@@ -12,6 +12,6 @@
| semi_naive | 8 | 8 | ok |
| negation | 10 | 10 | ok |
| aggregates | 18 | 18 | ok |
| api | 17 | 17 | ok |
| api | 19 | 19 | ok |
| magic | 22 | 22 | ok |
| demo | 18 | 18 | ok |