Skip to main content

@powersync/tauri-plugin

Classes

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

Interfaces

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

Type Aliases

TauriPowerSyncOpenOptions

type TauriPowerSyncOpenOptions = PowerSyncDatabaseOptions & {
database: TauriSQLOpenOptions;
};

Type declaration

NameType
databaseTauriSQLOpenOptions