Skip to content

Instantly share code, notes, and snippets.

@tgk
Created June 29, 2020 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgk/5667cddae8d458e594604acd4338cba3 to your computer and use it in GitHub Desktop.
Save tgk/5667cddae8d458e594604acd4338cba3 to your computer and use it in GitHub Desktop.
;; virtual fields map to multimethods that implement helpers
(sql/load :rental_ads 42 :car :user :picture_url)
;; => "https://..."
;; multimethods can look at meta information for maps
(meta rental-ad)
;; => {:table :rental_ads}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment