Kotlin BSON • Multiplatform abstraction for different BSON implementations¶
Primitives for BSON types.
This module contains abstractions and utilities for implementing the BSON specification.
BSON objects are obtained from the BsonFactory interface. Each BSON implementation should provide its own implementation.
The KtMongo project provides two different implementations: :bson-official uses the official BSON Java driver, and :bson-multiplatform is a brand new implementation purely written in Kotlin Multiplatform. End-users are expected to depend on one of these two modules, instead of depending directly on :bson.
Depending on this module provides an easy way to declare utilities that work across BSON implementations. For example, this module contains a BsonPath class that works for any BSON implementation.
The module :bson-tests provides unit tests to verify any new BSON implementation.
Packages¶
opensavvy.ktmongo.bson¶
Utilities and primitives to read and write BSON documents.
opensavvy.ktmongo.bson.types¶
Data types specified in the BSON specification or in the MongoDB specification.