make sqlite the default database driver

pull/55/head
Jonas Kruckenberg 3 years ago
parent 84133c9db7
commit 88297a3932

@ -19,6 +19,7 @@ tokio = { version = "1", features = ["sync"] }
futures = "0.3" futures = "0.3"
[features] [features]
default = ["sqlite"]
sqlite = ["sqlx/sqlite"] sqlite = ["sqlx/sqlite"]
mysql = ["sqlx/mysql"] mysql = ["sqlx/mysql"]
postgres = ["sqlx/postgres"] postgres = ["sqlx/postgres"]

@ -14,10 +14,12 @@ Install the Core plugin by adding the following to your `Cargo.toml` file:
`src-tauri/Cargo.toml` `src-tauri/Cargo.toml`
```toml ```toml
[dependencies.tauri-plugin-sql] [dependencies]
git = "https://github.com/tauri-apps/plugins-workspace" tauri-plugin-sql = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
branch = "dev" # or
features = ["sqlite"] # or "postgres", or "mysql" tauri-plugin-sql = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev", default-features = false, features = ["postgres"] }
# or
tauri-plugin-sql = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev", default-features = false, features = ["mysql"] }
``` ```
You can install the JavaScript Guest bindings using your preferred JavaScript package manager: You can install the JavaScript Guest bindings using your preferred JavaScript package manager:

Loading…
Cancel
Save