BinaryCollection

class BinaryCollection

Functions

Link copied to clipboard
suspend fun append(id: String, content: ByteArray, common: CommonOptions = CommonOptions.Default, durability: Durability = Durability.none(), cas: Long = 0): MutationResult

Appends binary content to a document.

Link copied to clipboard
suspend fun decrement(id: String, common: CommonOptions = CommonOptions.Default, durability: Durability = Durability.none(), expiry: Expiry = Expiry.none(), delta: ULong, initialValue: ULong?): CounterResult

Decrements a counter document and returns the new value.

Link copied to clipboard
suspend fun increment(id: String, common: CommonOptions = CommonOptions.Default, durability: Durability = Durability.none(), expiry: Expiry = Expiry.none(), delta: ULong, initialValue: ULong? = delta): CounterResult

Increments a counter document and returns the new value.

Link copied to clipboard
suspend fun prepend(id: String, content: ByteArray, common: CommonOptions = CommonOptions.Default, durability: Durability = Durability.none(), cas: Long = 0): MutationResult

Prepends binary content to a document.