Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn get-user-schema [conn]
- (d/q '[:find ?id
- :where [?e :db/ident ?id]
- [_ :db.install/attribute ?e]
- [?e :db.install/partition :db.part/db]]
- (d/db conn)))
- [:find ?attr ?type ?card
- :where
- [_ :db.install/attribute ?a]
- [?a :db/valueType ?t]
- [?a :db/cardinality ?c]
- [?a :db/ident ?attr]
- [?t :db/ident ?type]
- [?c :db/ident ?card]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement