Kotlin BSON • Based on the official MongoDB implementation • opensavvy.ktmongo.bson.official.types
Package-level declarations¶
Types¶
Decimal128
¶
expect class Decimal128 : Number, Comparable<Decimal128>
actual typealias Decimal128 = org.bson.types.Decimal128
Binary integer decimal representation of a 128-bit decimal value, supporting 34 decimal digits of significand and an exponent range of -6143 to +6144.
Functions¶
Jvm
¶
fun ObjectIdGenerator.Companion.Jvm(): ObjectIdGenerator
An ObjectIdGenerator instance that uses the Java driver's org.bson.types.ObjectId's algorithm.
toKtMongo
¶
fun BsonTimestamp.toKtMongo(): Timestamp
@ExperimentalTime
fun ObjectId.toKtMongo(): ObjectId
Converts an ObjectId from KtMongo into one from the Java driver.
toOfficial
¶
@ExperimentalTime
fun ObjectId.toOfficial(): ObjectId
Converts an ObjectId from the Java driver into a KtMongo ObjectId.
fun Timestamp.toOfficial(): BsonTimestamp