(config-bool k)
Fetch a configuration key and parse it as a boolean.
Fetch a configuration key and parse it as a boolean.
(config-int k)
Fetch a configuration key and parse it as an integer.
Fetch a configuration key and parse it as an integer.
(config-kw k)
Fetch a configuration key and parse it as a keyword.
Fetch a configuration key and parse it as a keyword.
(config-str k)
Retrieve value for a single configuration key. Accepts either a keyword or a string.
We resolve properties from these places:
app-defaults
Retrieve value for a single configuration key. Accepts either a keyword or a string. We resolve properties from these places: 1. environment variables (ex: MB_DB_TYPE -> :mb-db-type) 2. jvm options (ex: -Dmb.db.type -> :mb-db-type) 3. hard coded `app-defaults`
Are we running in dev
mode (i.e. in a REPL or via lein ring server
)?
Are we running in `dev` mode (i.e. in a REPL or via `lein ring server`)?
Are we running in prod
mode (i.e. from a JAR)?
Are we running in `prod` mode (i.e. from a JAR)?
Are we running in test
mode (i.e. via lein test
)?
Are we running in `test` mode (i.e. via `lein test`)?
Are we running on a Windows machine?
Are we running on a Windows machine?
A formatted version string including the word 'Metabase' appropriate for passing along
with database connections so admins can identify them as Metabase ones.
Looks something like Metabase v0.25.0.RC1
.
A formatted version string including the word 'Metabase' appropriate for passing along with database connections so admins can identify them as Metabase ones. Looks something like `Metabase v0.25.0.RC1`.
Information about the current version of Metabase.
This comes from resources/version.properties
for prod builds and is fetched from git
via the ./bin/version
script for dev.
mb-version-info -> {:tag: "v0.11.1", :hash: "afdf863", :branch: "about_metabase", :date: "2015-10-05"}
Information about the current version of Metabase. This comes from `resources/version.properties` for prod builds and is fetched from `git` via the `./bin/version` script for dev. mb-version-info -> {:tag: "v0.11.1", :hash: "afdf863", :branch: "about_metabase", :date: "2015-10-05"}
A formatted version string representing the currently running application.
Looks something like v0.25.0-snapshot (1de6f3f nested-queries-icon)
.
A formatted version string representing the currently running application. Looks something like `v0.25.0-snapshot (1de6f3f nested-queries-icon)`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close