DittoWriteStrategy

enum DittoWriteStrategy : Enum<DittoWriteStrategy>

Defines the various strategies available when inserting a document into a collection.

Entries

InsertDefaultIfAbsent
Link copied to clipboard
Insert the document, with its contents treated as default data, only if there is not already a document with the same ID in the store.
InsertIfAbsent
Link copied to clipboard
Insert the document only if there is not already a document with the same ID in the store.
Overwrite
Link copied to clipboard
An existing document will be overwritten.
Merge
Link copied to clipboard
The existing document will be merged with the document being inserted, if there is a pre-existing document.

Functions

asWriteStrategyRs
Link copied to clipboard
abstract fun asWriteStrategyRs(): WriteStrategyRs_t

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int