Home Manual Reference Source Test
import DatabaseChangeRecord from 'electron-coresqlite/lib/database-change-record.js'
public class | source

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:

NameTypeAttributeDescription
database *
options *

Public Methods

public append(other: *) source

Params:

NameTypeAttributeDescription
other *

public canAppend(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public toJSON(): * source

Return:

*