KtMongo
Toggle table of contents
0.20.1
common
Platform filter
common
Switch theme
Search in API
KtMongo
Kotlin BSON • Pure Kotlin Multiplatform implementation
/
opensavvy.ktmongo.bson.multiplatform
/
BsonContext
Bson
Context
class
BsonContext
(
objectIdGenerator
:
ObjectIdGenerator
=
ObjectIdGenerator.Default()
)
:
BsonContext
,
ObjectIdGenerator
(
source
)
Members
Constructors
Bson
Context
Link copied to clipboard
constructor
(
objectIdGenerator
:
ObjectIdGenerator
=
ObjectIdGenerator.Default()
)
Functions
build
Array
Link copied to clipboard
open
fun
buildArray
(
instance
:
BsonValueWriteable
)
:
BsonArray
@
LowLevelApi
open
override
fun
buildArray
(
block
:
BsonValueWriter
.
(
)
->
Unit
)
:
BsonArray
build
Document
Link copied to clipboard
open
fun
buildDocument
(
instance
:
BsonFieldWriteable
)
:
Bson
@
LowLevelApi
open
override
fun
buildDocument
(
block
:
BsonFieldWriter
.
(
)
->
Unit
)
:
Bson
new
Id
Link copied to clipboard
open
override
fun
newId
(
)
:
ObjectId
read
Array
Link copied to clipboard
@
LowLevelApi
open
override
fun
readArray
(
bytes
:
ByteArray
)
:
BsonArray
read
Document
Link copied to clipboard
@
LowLevelApi
open
override
fun
readDocument
(
bytes
:
ByteArray
)
:
Bson