Deserializing function reads 'len' bytes and writes the conversion result to the value, pointed by 'val'.
Serializing function converts value pointed to by val to PSQL network protocol format, writing it to byte buffer 'to' and returning number of bytes written, -1 if the value is null, and -2 if 'to' is too small. If result is less than -2, absolute value is the amount of bytes that is required to fully serialize the value.
prototype of a nullable variant deserializer, used in converter
Default converter hash map. You can extend it, or define your own.
returns inplace-constructed string without allocations. Hacky.
Service function. Simple deserialize of some numeric type.
dpeq utility function. Deserialize zero-terminated string from byte buffer.
dpeq utility function
Service function, used for serializeling of protocol messages. Data strings are passed without trailing nulls.
Value type descriptor, constisting of an oid of the type itself and a boolean flag wich indicates wether the value can be null.
std.variant.Variant subtype that is better suited for holding SQL null. Null NullableVariant is essentially a valueless Variant instance.
Default compile-time one-to-many mapper, wich for OID of some Postgres type gives it's native type representation, and serializing and deserializing functions. You can extend it with two custom mappers: Pre and Post.
Utility template to quickly get an array of format codes from an array of FieldSpecs
Can't serialize shit
Types wich are well-known to dpeq
This is a fallback serializeler that simply accepts any type as a string
Primitives used for type (de)serialization.