sled v0.1.0-alpha.1 Sled.Config View Source
Configuration for sled.
Link to this section Summary
Link to this section Types
Specs
t()
A handle 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
.
You can pass keyword arguments:
iex> Sled.Config.new(path: "my_db")
or, you can use the Sled.Config.Options
struct, if you prefer:
iex> Sled.Config.new(%Sled.Config.Options{path: "my_db"})
Specs
Open the sled database for the given config
.
iex> config = Sled.Config.new(path: "my_db")
iex> Sled.Config.open(config)
#Sled<>