View Source EdgeDB.Protocol.Codec protocol (EdgeDB v0.7.0)
A codec knows how to work with the internal binary data from EdgeDB. The binary protocol specification for the codecs can be found in the relevant part of the EdgeDB documentation. Useful links for codec developers:
- EdgeDB datatypes used in data descriptions.
- EdgeDB data wire formats.
- Built-in EdgeDB codec implementations.
- Custom codecs implementations.
- Guide to developing custom codecs on hex.pm or on edgedb.com.
Summary
Functions
Function that can decode EdgeDB binary format into an entity.
Function that can encode an entity to EdgeDB binary format.
Types
Functions
@spec decode(t(), bitstring(), EdgeDB.Protocol.CodecStorage.t()) :: value when value: term()
Function that can decode EdgeDB binary format into an entity.
@spec encode(t(), value, EdgeDB.Protocol.CodecStorage.t()) :: iodata() when value: term()
Function that can encode an entity to EdgeDB binary format.