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
Parameter | Type |
---|---|
options | WebPowerSyncOpenFactoryOptions |
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
Parameter | Type |
---|---|
options | PowerSyncDatabaseOptions |
Returns
Overrides
AbstractWebPowerSyncDatabaseOpenFactory
.generateInstance
generateOptions()
generateOptions(): WebPowerSyncDatabaseOptions
Returns
Inherited from
AbstractWebPowerSyncDatabaseOpenFactory
.generateOptions
getInstance()
getInstance(): AbstractPowerSyncDatabase