@powersync/tauri-plugin
Classes
| Class | Description |
|---|---|
| PowerSyncTauriDatabase | A PowerSync database backed by a Rust-owned structure for Tauri apps. |
Interfaces
TauriSQLOpenOptions
Extends
SQLOpenOptions
Properties
| Property | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|
dbFilename | string | Filename for the database. | - | SQLOpenOptions.dbFilename |
dbLocation? | undefined | For 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? | boolean | Enable 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
| Name | Type |
|---|---|
database | TauriSQLOpenOptions |