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

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

Link to this section 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.

Link to this section Types

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

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

Link to this section Functions

Link to this function

get(storage, id)

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

Find a codec in the storage by ID.

Link to this function

get_by_name(storage, name)

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

Find a codec in the storage by type name.