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
Parameter | Type |
---|---|
options | PowerSyncOpenFactoryOptions |
Returns
RNQSPowerSyncDatabaseOpenFactory
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(): PowerSyncDatabaseOptions
Returns
Inherited from
AbstractPowerSyncDatabaseOpenFactory
.generateOptions
getInstance()
getInstance(): AbstractPowerSyncDatabase