this appends multiple DBOKVs to a dbo.
this appends multiple DBOKVs to a dbo.
dbo ++@++ List("k0" :> <encodable1>, "k1" :> <encodable2>) +@+ ("k2" :> <encodable2>)
this optionally appends optional DBOKVs to a dbo.
this optionally appends optional DBOKVs to a dbo.
//this will end up adding the keys k0 (with the encoded value of encodable0) and k1, but not the key k1. dbo +?+ ("k0" :?> Some(<encodable0>)) +?+ ("k1" :?> None) +@+ ("k2" :> <encodable1>)
this appends a io.github.raptros.bson.Builders.DBOKV to a dbo, and returns the same dbo.
this appends a io.github.raptros.bson.Builders.DBOKV to a dbo, and returns the same dbo.
dbo +@+ ("k0" :> <encodable1>) +@+ ("k1" :> <encodable2>)
directly appends a key and value to the dbo, with a Unit return type; no fancy syntax here.
this permits a syntax for adding key-value pairs to
DBObject
s.the methods given by this class mutate the underlying
DBObject
. you should really only construct aDBObject
right near where you will use it - don't let those mutable, untyped things spread around your codebase.