mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
docs(sqlite): Update BaseDir mention to AppConfig
App was removed in v2 but was an alias for AppConfig
This commit is contained in:
@@ -64,7 +64,7 @@ Afterwards all the plugin's APIs are available through the JavaScript guest bind
|
|||||||
```javascript
|
```javascript
|
||||||
import Database from "@tauri-apps/plugin-sql";
|
import Database from "@tauri-apps/plugin-sql";
|
||||||
|
|
||||||
// sqlite. The path is relative to `tauri::api::path::BaseDirectory::App`.
|
// sqlite. The path is relative to `tauri::api::path::BaseDirectory::AppConfig`.
|
||||||
const db = await Database.load("sqlite:test.db");
|
const db = await Database.load("sqlite:test.db");
|
||||||
// mysql
|
// mysql
|
||||||
const db = await Database.load("mysql://user:pass@host/database");
|
const db = await Database.load("mysql://user:pass@host/database");
|
||||||
|
|||||||
Reference in New Issue
Block a user