Skip to main content

RNQSPowerSyncDatabaseOpenFactory

Deprecated

PowerSyncDatabase can now be constructed directly

Example

const powersync = new PowerSyncDatabase({
database: {
dbFileName: 'powersync.db'
}
});

Extends

Constructors

new RNQSPowerSyncDatabaseOpenFactory()

new RNQSPowerSyncDatabaseOpenFactory(options): RNQSPowerSyncDatabaseOpenFactory

Parameters

ParameterType
optionsPowerSyncOpenFactoryOptions

Returns

RNQSPowerSyncDatabaseOpenFactory

Overrides

AbstractPowerSyncDatabaseOpenFactory.constructor

Accessors

schema

get schema(): Schema<{}>

Schema used for the local database.

Returns

Schema<{}>

Methods

generateInstance()

generateInstance(options): AbstractPowerSyncDatabase

Parameters

ParameterType
optionsPowerSyncDatabaseOptions

Returns

AbstractPowerSyncDatabase

Overrides

AbstractPowerSyncDatabaseOpenFactory.generateInstance


generateOptions()

generateOptions(): PowerSyncDatabaseOptions

Returns

PowerSyncDatabaseOptions

Inherited from

AbstractPowerSyncDatabaseOpenFactory.generateOptions


getInstance()

getInstance(): AbstractPowerSyncDatabase

Returns

AbstractPowerSyncDatabase

Inherited from

AbstractPowerSyncDatabaseOpenFactory.getInstance