View Source EdgeDB.ConfigMemory (EdgeDB v0.1.0)

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

iex(1)> {:ok, pid} = EdgeDB.start_link()
iex(2)> mem = EdgeDB.query_required_single!(pid, "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

Specs

t()

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

Link to this section Functions

Specs

bytes(t()) :: pos_integer()

Get a quantity of memory storage in bytes.