Bankster library, registry initialization helpers.
Bankster library, registry initialization helpers.
(load-registry resource-path)(load-registry resource-path opts)Loads a registry from an EDN config resource file (classpath path).
By default it loads ONLY the provided resource-path (no overlay from Bankster's
distribution config).
Options map:
:keep-dist? - when truthy, loads the distribution registry first and
overlays it with the user registry using
io.randomseed.bankster.util.importer/merge-registry.
Default: false.:dist-resource-path - distribution resource path. Default:
io.randomseed.bankster.config/default-resource-path.:optional? - when truthy, missing resource-path is treated as
"no overlay" (returns dist registry when keep-dist?,
or an empty registry when not). Default: false.:merge-opts - a map of options for importer/merge-registry:
- :verbose? (boolean),
- :preserve-fields (seq),
- :iso-like? (boolean).Returns a Registry.
Loads a registry from an EDN config resource file (classpath path).
By default it loads ONLY the provided `resource-path` (no overlay from Bankster's
distribution config).
Options map:
- `:keep-dist?` - when truthy, loads the distribution registry first and
overlays it with the user registry using
`io.randomseed.bankster.util.importer/merge-registry`.
Default: false.
- `:dist-resource-path` - distribution resource path. Default:
`io.randomseed.bankster.config/default-resource-path`.
- `:optional?` - when truthy, missing `resource-path` is treated as
"no overlay" (returns dist registry when keep-dist?,
or an empty registry when not). Default: false.
- `:merge-opts` - a map of options for `importer/merge-registry`:
- `:verbose?` (boolean),
- `:preserve-fields` (seq),
- `:iso-like?` (boolean).
Returns a `Registry`.(load-registry! resource-path)(load-registry! resource-path opts)Like load-registry, but installs the result as the global registry.
Like `load-registry`, but installs the result as the global registry.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |