Skip to content

Kotlin BSON • Multiplatform abstraction for different BSON implementationsopensavvy.ktmongo.bson.types

Package-level declarations

Data types contained in the BSON specification.

Types

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

toObjectIdRange

Converts a range of Instant to a range of ObjectId.

Converts a range of Instant to a range of ObjectId.