View Source EdgeDB.Protocol.CodecStorage (EdgeDB v0.8.0)

A storage for each codec that the connection knows how to decode.

Summary

Types

t()

A storage for each codec that the connection knows how to decode.

Functions

Find a codec in the storage by ID.

Find a codec in the storage by type name.

Types

t()

(since 0.2.0)
@type t() :: :ets.tab()

A storage for each codec that the connection knows how to decode.

Functions

get(storage, id)

(since 0.2.0)
@spec get(t(), binary()) :: EdgeDB.Protocol.Codec.t() | nil

Find a codec in the storage by ID.

get_by_name(storage, name)

(since 0.2.0)
@spec get_by_name(t(), binary()) :: EdgeDB.Protocol.Codec.t() | nil

Find a codec in the storage by type name.