Skip to main content

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

ParameterType
optionsWebPowerSyncOpenFactoryOptions

Returns

AbstractWebPowerSyncDatabaseOpenFactory

Overrides

AbstractPowerSyncDatabaseOpenFactory.constructor

Accessors

schema

Get Signature

get schema(): Schema<{}>

Schema used for the local database.

Returns

Schema<{}>

Inherited from

AbstractPowerSyncDatabaseOpenFactory.schema

Methods

generateInstance()

generateInstance(options): AbstractPowerSyncDatabase

Parameters

ParameterType
optionsPowerSyncDatabaseOptions

Returns

AbstractPowerSyncDatabase

Overrides

AbstractPowerSyncDatabaseOpenFactory.generateInstance


generateOptions()

generateOptions(): WebPowerSyncDatabaseOptions

Returns

WebPowerSyncDatabaseOptions

Overrides

AbstractPowerSyncDatabaseOpenFactory.generateOptions


getInstance()

getInstance(): AbstractPowerSyncDatabase

Returns

AbstractPowerSyncDatabase

Inherited from

AbstractPowerSyncDatabaseOpenFactory.getInstance