Home Manual Reference Source Test
public class | source

Coordinator

To use RxDB, you need to attach the coordinator in your Electron browser process. It handles message dispatch across windows and manages the state of database files when they need to be created before use. Just import it and instantiate one:

import {Coordinator} from 'electron-rxdb';
global._coordinator = new Coordinator();

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

deleteDatabase(databasePath: *, callback: *)

public

deleteFileWithRetry(filePath: *, callback: *, retries: number)

public
public

setPhase(phase: *)

Public Constructors

public constructor source

Public Methods

public deleteDatabase(databasePath: *, callback: *) source

Params:

NameTypeAttributeDescription
databasePath *
callback *

public deleteFileWithRetry(filePath: *, callback: *, retries: number) source

Params:

NameTypeAttributeDescription
filePath *
callback *
  • optional
retries number
  • optional
  • default: 5

public recoverFromFatalDatabaseError(databasePath: *) source

Params:

NameTypeAttributeDescription
databasePath *

public setPhase(phase: *) source

Params:

NameTypeAttributeDescription
phase *