Grouper.Data.App (Grouper v0.1.0) View Source
data layer driver for :application
implied groups
Link to this section Summary
Functions
delete data value of a given type and a given key
enumerates all key-values of a given type
get data value of a given type and a given key
initialize application-driven data
store data value of a given type and a given key
Link to this section Types
Specs
app_name() :: atom()
Specs
key() :: Grouper.Data.key()
Specs
meta() :: app_name()
Specs
type() :: Grouper.Data.type()
Specs
value() :: Grouper.Data.value()
Link to this section Functions
Specs
delete data value of a given type and a given key
Specs
enumerates all key-values of a given type
Specify the special type :_
to read data of all types
Specs
get data value of a given type and a given key
Specs
initialize application-driven data
This may load OTP environment data. It only attempts to either load or suppress loading the first time it's called. Given that loading is the default, it is necessary to suppress loading the environment very early in application loading if this is desired.
Options
- load_otp_env: Set to
true
to load the current application's environment (the default), to an atom to load a specific applications environment, or tofalse
to suppress loading any environment.
Specs
store data value of a given type and a given key