Skip to main content

WASQLitePowerSyncDatabaseOpenFactory

Deprecated

PowerSyncDatabase can now be constructed directly

Example

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

Extends

Constructors

new WASQLitePowerSyncDatabaseOpenFactory()

new WASQLitePowerSyncDatabaseOpenFactory(options): WASQLitePowerSyncDatabaseOpenFactory

Parameters

ParameterType
optionsWebPowerSyncOpenFactoryOptions

Returns

WASQLitePowerSyncDatabaseOpenFactory

Inherited from

AbstractWebPowerSyncDatabaseOpenFactory.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

AbstractWebPowerSyncDatabaseOpenFactory.generateInstance


generateOptions()

generateOptions(): WebPowerSyncDatabaseOptions

Returns

WebPowerSyncDatabaseOptions

Inherited from

AbstractWebPowerSyncDatabaseOpenFactory.generateOptions


getInstance()

getInstance(): AbstractPowerSyncDatabase

Returns

AbstractPowerSyncDatabase

Inherited from

AbstractWebPowerSyncDatabaseOpenFactory.getInstance