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

add docstr

parent 257892af
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,10 @@
:password (config/config-str :mb-db-pass)
:host (config/config-str :mb-db-host)})))
(defn metabase-db-conn-str []
(defn metabase-db-conn-str
"A connection string that can be used when pretending the Metabase DB is itself a `Database`
(e.g., to use the Generic SQL driver functions on the Metabase DB itself)."
[]
(case (config/config-kw :mb-db-type)
:h2 (db-file)
:postgres (format "host=%s port=%d dbname=%s user=%s password=%s"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment