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

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.

Create a new config memory value.

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.

Link to this function

new(bytes)

View Source (since 0.7.0)
@spec new(non_neg_integer()) :: t()

Create a new config memory value.