Open gburd opened 4 years ago
Thanks to Schema, we know a bunch of things during algebrizing: a query like
Schema
[:find ?x :where [?x :db/ident :db/valueType]]
which currently translates to
SELECT DISTINCT `datoms00`.e AS `?x` FROM `datoms` AS `datoms00` WHERE `datoms00`.a = 1 AND `datoms00`.v = $v0 Bindings: $v0 = Text(":db/valueType")
can instead be answered directly. So can
[:find ?valueType :in ?attr :where [?attr :db/valueType ?valueType]]
— that's also known via the schema without running SQL.
This makes it reasonable for dynamic callers to do most of their work through the query interface, rather than needing specialized access to Schema and the cache.
Thanks to
Schema
, we know a bunch of things during algebrizing: a query likewhich currently translates to
can instead be answered directly. So can
— that's also known via the schema without running SQL.
This makes it reasonable for dynamic callers to do most of their work through the query interface, rather than needing specialized access to
Schema
and the cache.