Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. (defn get-user-schema [conn]
  2. (d/q '[:find ?id
  3. :where [?e :db/ident ?id]
  4. [_ :db.install/attribute ?e]
  5. [?e :db.install/partition :db.part/db]]
  6. (d/db conn)))
  7.  
  8. [:find ?attr ?type ?card
  9. :where
  10. [_ :db.install/attribute ?a]
  11. [?a :db/valueType ?t]
  12. [?a :db/cardinality ?c]
  13. [?a :db/ident ?attr]
  14. [?t :db/ident ?type]
  15. [?c :db/ident ?card]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement