Liking cljdoc? Tell your friends :D

metabase.common.config


config-boolclj

(config-bool k)

Fetch a configuration key and parse it as a boolean.

Fetch a configuration key and parse it as a boolean.
sourceraw docstring

config-intclj

(config-int k)

Fetch a configuration key and parse it as an integer.

Fetch a configuration key and parse it as an integer.
sourceraw docstring

config-kwclj

(config-kw k)

Fetch a configuration key and parse it as a keyword.

Fetch a configuration key and parse it as a keyword.
sourceraw docstring

config-strclj

(config-str k)

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
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`
sourceraw docstring

is-dev?clj

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`)?
sourceraw docstring

is-prod?clj

Are we running in prod mode (i.e. from a JAR)?

Are we running in `prod` mode (i.e. from a JAR)?
sourceraw docstring

is-test?clj

Are we running in test mode (i.e. via lein test)?

Are we running in `test` mode (i.e. via `lein test`)?
sourceraw docstring

is-windows?clj

Are we running on a Windows machine?

Are we running on a Windows machine?
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close