View Source EdgeDB.Protocol.CustomCodec behaviour (EdgeDB v0.7.0)

Behaviour for custom scalar codecs.

See custom codecs development guide on hex.pm or on edgedb.com for more information.

Summary

Callbacks

Get name for type that can be decoded by codec.

Initialize custom codec.

Callbacks

@callback name() :: String.t()

Get name for type that can be decoded by codec.

@callback new() :: EdgeDB.Protocol.Codec.t()

Initialize custom codec.