View Source EdgeDB.ConfigMemory (EdgeDB v0.7.0)
An immutable value represeting an EdgeDB cfg::memory
value as a quantity of memory storage.
iex(1)> {:ok, client} = EdgeDB.start_link()
iex(2)> mem = EdgeDB.query_required_single!(client, "select <cfg::memory>'5KiB'")
#EdgeDB.ConfigMemory<"5KiB">
iex(3)> EdgeDB.ConfigMemory.bytes(mem)
5120
Summary
Types
An immutable value represeting an EdgeDB cfg::memory
value as a quantity of memory storage.
Types
@opaque t()
An immutable value represeting an EdgeDB cfg::memory
value as a quantity of memory storage.
Functions
@spec bytes(t()) :: pos_integer()
Get a quantity of memory storage in bytes.
@spec new(non_neg_integer()) :: t()
Create a new config memory value.