Skip to content
Snippets Groups Projects
Commit 37925177 authored by Cam Saul's avatar Cam Saul
Browse files

clarify dox

parent 5e4b5f03
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,8 @@
"Metadata multi-methods. Implemented by the various drivers, e.g. `metabase.driver.postgres.metadata`.")
(defn- field-info-dispatch
"Dispatch fn for the various field info multi-methods. (Dispatches on kw like `:postgres`)"
"Dispatch fn for the various field info multi-methods. When calling a method like `field-count`, FIELD's Database
is fetched and we dispatch on it's `engine` (as a keyword). e.g. `:postgres`"
[{:keys [db] :as field}]
(let [{:keys [engine]} @db]
(require (symbol (str "metabase.driver." engine ".metadata"))) ; dynamically load the correct driver implementation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment