Skip to content

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

Package-level declarations

Utilities to read and write BSON.

Types

AnyBsonWriter

@LowLevelApi
sealed interface AnyBsonWriter

Parent interface for type parameters that can accept either BsonValueWriter or BsonFieldWriter.

Bson

interface Bson

A BSON document.

BsonArray

interface BsonArray

A BSON array.

BsonArrayReader

@LowLevelApi
interface BsonArrayReader

Utilities for decomposing a BsonArray into its elements.

BsonContext

Configuration for the BSON serialization.

BsonDocumentReader

@LowLevelApi
interface BsonDocumentReader

Utilities for decomposing a Bson document into its fields.

BsonFieldWriteable

interface BsonFieldWriteable

An object that can be represented as fields in a BSON document.

BsonFieldWriter

@LowLevelApi
interface BsonFieldWriter : AnyBsonWriter

Generator of BSON document fields.

BsonReaderException

class BsonReaderException(message: String, cause: Throwable? = null) : IllegalStateException

Exception thrown when BSON reading fails.

BsonType

The different data types supported in BSON documents.

BsonValueReader

@LowLevelApi
interface BsonValueReader

Representation of a BSON value.

BsonValueWriteable

interface BsonValueWriteable

An object that can be represented as a BSON value (value of a field, item in an array, an array itself).

BsonValueWriter

@LowLevelApi
interface BsonValueWriter : AnyBsonWriter

Generator of BSON values.

BsonWriterDsl

@DslMarker
annotation class BsonWriterDsl

Annotation to mark types that are part of the BSON writer DSL.

Properties

DEPRECATED_IN_BSON_SPEC

Deprecation messages for BSON functionality that is deprecated in the BSON spec.