ditto-lib / live.ditto / DittoWriteTransaction

DittoWriteTransaction

class DittoWriteTransaction

Constructors

<init>

DittoWriteTransaction()

Functions

evictByID

fun evictByID(collectionName: String, id: String): Unit

Evicts a document using its ID.

insert

fun insert(collectionName: String, vararg documents: Map<String, Any>): Unit

Inserts one or more documents.

removeByID

fun removeByID(collectionName: String, id: String): Unit

Removes a document using its ID.

updateByID

fun updateByID(collectionName: String, id: String, newDocument: Map<String, Any?>): Unit

Updates a document, referenced by its ID, with the data in the new document provided.