diff --git a/plugins/sql/Cargo.toml b/plugins/sql/Cargo.toml index b86a945b..6af4a4ca 100644 --- a/plugins/sql/Cargo.toml +++ b/plugins/sql/Cargo.toml @@ -19,6 +19,7 @@ tokio = { version = "1", features = ["sync"] } futures = "0.3" [features] +default = ["sqlite"] sqlite = ["sqlx/sqlite"] mysql = ["sqlx/mysql"] postgres = ["sqlx/postgres"] \ No newline at end of file diff --git a/plugins/sql/README.md b/plugins/sql/README.md index ee7ef740..86fce361 100644 --- a/plugins/sql/README.md +++ b/plugins/sql/README.md @@ -14,10 +14,12 @@ Install the Core plugin by adding the following to your `Cargo.toml` file: `src-tauri/Cargo.toml` ```toml -[dependencies.tauri-plugin-sql] -git = "https://github.com/tauri-apps/plugins-workspace" -branch = "dev" -features = ["sqlite"] # or "postgres", or "mysql" +[dependencies] +tauri-plugin-sql = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" } +# or +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: