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
@Serializable
(with = ObjectId.Serializer::class)class ObjectId : Comparable<ObjectId>
A 12-bytes identifier for MongoDB objects.
ObjectIdGenerator¶
interface ObjectIdGenerator
An object responsible for generating new ObjectId instances.
Timestamp¶
@Serializable
(with = Timestamp.Serializer::class)class Timestamp(val value: ULong) : Comparable<Timestamp>
Internal MongoDB timestamp used in the oplog.
Functions¶
compareTo¶
@ExperimentalTime
operator fun Instant.compareTo(objectId: ObjectId): Int