io.github.raptros.bson
these allow things of type A to be written into DBObjects as keyed values. this is important because with BSON the only valid database objects are, well, objects.
A
the type that can be encoded. contravariant for the same reason as EncodeBson.
encodes and inserts v into dbo at key k.
v
dbo
k
the DBObject to modify.
the key to insert the value at.
the value to encode.
alias for writeTo that also returns the modified object
derives a new field encoder by transforming other values into values this encoder can encode.
these allow things of type
A
to be written into DBObjects as keyed values. this is important because with BSON the only valid database objects are, well, objects.the type that can be encoded. contravariant for the same reason as EncodeBson.