View Source EdgeDB.ConfigMemory (EdgeDB v0.6.1)

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

Link to this section Summary

Types

t()

An immutable value represeting an EdgeDB cfg::memory value as a quantity of memory storage.

Functions

Get a quantity of memory storage in bytes.

Link to this section Types

@opaque t()

An immutable value represeting an EdgeDB cfg::memory value as a quantity of memory storage.

Link to this section Functions

@spec bytes(t()) :: pos_integer()

Get a quantity of memory storage in bytes.