Skip to main content

@powersync/tauri-plugin

Classes​

ClassDescription
PowerSyncTauriDatabaseA PowerSync database backed by a Rust-owned structure for Tauri apps.

Interfaces​

TauriPowerSyncOpenOptions​

Extends​

  • BasePowerSyncDatabaseOptions

Properties​

PropertyTypeDescriptionInherited from
databaseTauriSQLOpenOptions--
logger?PowerSyncLogger-BasePowerSyncDatabaseOptions.logger
schemaSchemaSchema used for the local database.BasePowerSyncDatabaseOptions.schema

TauriSQLOpenOptions​

Extends​

  • SQLOpenOptions

Properties​

PropertyTypeDescriptionOverridesInherited from
dbFilenamestringFilename for the database.-SQLOpenOptions.dbFilename
dbLocation?undefinedFor Tauri databases, use dbLocationAsync instead.SQLOpenOptions.dbLocation-
dbLocationAsync?() => Promise<string>A promise that resolves to the directory in which the PowerSync database should be stored.--
debugMode?booleanEnable debugMode to log queries to the performance timeline. Defaults to false. To enable in development builds, use: debugMode: process.env.NODE_ENV !== 'production'-SQLOpenOptions.debugMode