abstract
AbstractWebPowerSyncDatabaseOpenFactory
Intermediate PowerSync Database Open factory for Web which uses a mock SSR DB Adapter if running on server side. Most SQLite DB implementations only run on client side, this will safely return empty query results in SSR which will allow for generating server partial views.
Extends
Extended by
Constructors
new AbstractWebPowerSyncDatabaseOpenFactory()
new AbstractWebPowerSyncDatabaseOpenFactory(options): AbstractWebPowerSyncDatabaseOpenFactory
Parameters
Parameter | Type |
---|---|
options | WebPowerSyncOpenFactoryOptions |
Returns
AbstractWebPowerSyncDatabaseOpenFactory
Overrides
AbstractPowerSyncDatabaseOpenFactory
.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
AbstractPowerSyncDatabaseOpenFactory
.generateInstance
generateOptions()
generateOptions(): WebPowerSyncDatabaseOptions
Returns
Overrides
AbstractPowerSyncDatabaseOpenFactory
.generateOptions
getInstance()
getInstance(): AbstractPowerSyncDatabase