Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson.types
Package-level declarations¶
Data types contained in the BSON specification.
Types¶
ObjectId
¶
@ExperimentalTime
class ObjectId : Comparable<ObjectId>
A 12-bytes identifier for MongoDB objects.
ObjectIdGenerator
¶
interface ObjectIdGenerator
An object responsible for generating new ObjectId
instances.
Timestamp
¶
class Timestamp(val value: ULong) : Comparable<Timestamp>
Internal MongoDB timestamp used in the oplog.
Functions¶
compareTo
¶
@ExperimentalTime
operator fun Instant.compareTo(objectId: ObjectId): Int