object BsonUtil
TODO find or create a library which maps BsonValues to circe json types
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BsonUtil
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def asBson(json: Json): BsonValue
- def asDocument[A](value: A)(implicit arg0: Encoder[A]): BsonDocument
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bsonAsDocument(bson: Bson)(implicit registry: CodecRegistry = defaultRegistry): BsonDocument
- def bsonValueAsJson(value: BsonValue): Json
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- var defaultRegistry: CodecRegistry
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromBson(bson: String): Try[Json]
- def fromBson(doc: Document): Try[Json]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def idForDocument(doc: Document): String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def numAsBson(jsonNum: JsonNumber): BsonNumber
- def parse[A](doc: Document)(implicit arg0: Decoder[A]): Either[Error, A]
-
def
sanitizeFromBson(bsonValue: Json): Json
BSON will read back numeric values as:
BSON will read back numeric values as:
{ "aLong" : { "$numberLong" : "123" } }
Which sucks. This hack turns it into:
{ "aLong" : "123" }
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- object codec