[package]
name = "tauri-plugin-sql"
version = "2.0.0-beta.6"
description = "Interface with SQL databases."
authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
repository = { workspace = true }
links = "tauri-plugin-sql"

[package.metadata.docs.rs]
features = [ "sqlite" ]
rustc-args = [ "--cfg", "docsrs" ]
rustdoc-args = [ "--cfg", "docsrs" ]

[build-dependencies]
tauri-plugin = { workspace = true, features = [ "build" ] }

[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
futures-core = "0.3"
sqlx = { version = "0.7", features = [ "json", "time" ] }
time = "0.3"
tokio = { version = "1", features = [ "sync" ] }
indexmap = { version = "2.2.6", features = [ "serde" ] }

[features]
sqlite = [ "sqlx/sqlite", "sqlx/runtime-tokio" ]
mysql = [ "sqlx/mysql", "sqlx/runtime-tokio-rustls" ]
postgres = [ "sqlx/postgres", "sqlx/runtime-tokio-rustls" ]
