sled v0.1.0-alpha.2 Sled.Config View Source
Configuration for sled.
Link to this section Summary
Link to this section Types
Specs
t()
A reference to a cached sled config.
Link to this section Functions
Specs
new(keyword() | Sled.Config.Options.t()) :: t() | no_return()
Create a sled config for options.
For more info, refer to the sled docs.
You can pass keyword arguments:
iex> Sled.Config.new(path: "test_keyword_config_db")or, you can use the Sled.Config.Options struct, if you prefer:
iex> Sled.Config.new(%Sled.Config.Options{path: "test_struct_config_db"}) Specs
Open the sled database for the given config.
iex> config = Sled.Config.new(path: "test_config_db")
iex> Sled.Config.open(config)
#Sled<path: "test_config_db", ...>