import DatabaseChangeRecord from 'electron-coresqlite/lib/database-change-record.js'
DatabaseChangeRecord
An RxDB database emits DatabaseChangeRecord objects once a transaction has completed. The change record contains a copy of the model(s) that were modified, the type of modification (persist / destroy) and the model class.
DatabaseChangeRecords can be serialized to JSON and RxDB transparently bridges them between windows of Electron applications. Change records of the same type and model class can also be merged.
Constructor Summary
Public Constructor | ||
public |
constructor(database: *, options: *) |
Method Summary
Public Methods | ||
public |
append(other: *) |
|
public |
canAppend(other: *): * |
|
public |
toJSON(): * |
Public Constructors
public constructor(database: *, options: *) source
Params:
Name | Type | Attribute | Description |
database | * | ||
options | * |