[package]
name = "br-db"
version = "1.8.71"
edition = "2021"
authors = ["Doraemon <7991156@qq.com>"]
keywords = ["br", "orm", "db", "sql"]
readme = "README.md"
license = "MIT"
exclude = ["INSTALL.md", "examples", "tests","CLAUDE.md","AGENTS.md"]
description = "This is an orm database mysql mssql sqlite"

[features]

db-mysql = ["mysql"]
db-sqlite = ["sqlite"]
db-mssql = ["tiberius", "async-std", "tokio"]
db-pgsql = ["br-pgsql"]


default = ["db-sqlite", "db-mysql", "db-mssql", "db-pgsql"]

[dependencies]
json = "0.12"
log = "0.4"
lazy_static = "1.5.0"
toml = "0.9"
serde = { version = "1.0", features = ["derive"] }

chrono = "0.4"
thiserror = "2.0"


tokio = { version = "1.49", default-features = false, features = ["full"], optional = true }
async-std = { version = "1.13", default-features = false, features = ["default"], optional = true }

sqlite = { version = "0.37.0", default-features = false, features = ["linkage"], optional = true }

mysql = { version = "27.0.0", optional = true }
tiberius = { version = "0.12", default-features = false, optional = true, features = ["chrono", "time"] }
num_cpus = "1.17.0"
br-crypto = { version = "0.4.8", features = ["br_md5"] }

br-fields = "2.3.5"
br-pgsql = { version = "0.1.29", optional = true }

#br-fields = { path = "../br-fields" }
#br-pgsql = { path = "../br-pgsql", optional = true }
[dev-dependencies]
env_logger = "0.11"
tokio = { version = "1", features = ["full"] }
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4"] } # 支持时间类型