this permits a syntax for adding key-value pairs to DBObject
s.
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 a DBObject
right near where you will use it -
don't let those mutable, untyped things spread around your codebase.
wraps up a key and a value that can be encoded as a field along with the EncodeBsonField that will encode it.
wraps up a key and a value that can be encoded as a field along with the EncodeBsonField that will encode it. used by the syntax provided by StringToDBOKV.
this enables a syntax for constructing key-value pairs with values that can be written to a DBObject - i.
this enables a syntax for constructing key-value pairs with values that can be written to a DBObject - i.e. because the value type has a EncodeBsonField instance
"string" :> <some encodable>
also, you can get an Option of a DBOKV:
"string" :> Some(<encodable>) //gives you Some(DBOKV("string",)) "string" :> None //gives you None
allows you to call asBson on any value that some EncodeBson instance applies to.
apply this to a bunch of DBOKVs and get a DBObject.
apply this to a bunch of DBOKVs and get a DBObject.
DBO("k0" :> true, "k1" :> List(1, 2, 3), k3 :> "a string")
Builders are all the things you need to build up DBObjects using available EncodeBsons and EncodeBsonFields.