sz-orm-sqlx 2.0.0

sqlx adapter: MySQL, PostgreSQL, SQLite backend via sqlx crate
Documentation
[package]

name = "sz-orm-sqlx"

description = "sqlx adapter: MySQL, PostgreSQL, SQLite backend via sqlx crate"

version.workspace = true

edition.workspace = true

authors.workspace = true

license.workspace = true

repository.workspace = true

homepage.workspace = true

keywords.workspace = true

categories.workspace = true



[dependencies]

sz-orm-core = { workspace = true }

async-trait.workspace = true

tokio = { workspace = true, features = ["sync"] }

sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "tls-rustls", "mysql", "postgres", "sqlite", "chrono", "json", "rust_decimal", "uuid"] }

rust_decimal = "1.36"

# 流式查询:try_stream! 宏实现 Connection::query_stream

async-stream = "0.3"

# Stream trait 与 StreamExt::next(fetch 流式结果迭代)

futures.workspace = true

# 锁毒化修复:使用 parking_lot 替代 std::sync,消除 .lock().unwrap() panic 风险

parking_lot.workspace = true



[dev-dependencies]

tokio = { workspace = true, features = ["full", "test-util"] }

proptest = { workspace = true }



[lib]

name = "sz_orm_sqlx"

path = "src/lib.rs"



[[test]]

name = "sqlx_adapter_tests"

path = "tests/sqlx_adapter_tests.rs"



[[test]]

name = "real_db_pool_tests"

path = "tests/real_db_pool_tests.rs"



[[test]]

name = "real_db_jepsen"

path = "tests/real_db_jepsen.rs"



[[test]]

name = "benchmark"

path = "tests/benchmark.rs"



[[test]]

name = "differential_fuzz"

path = "tests/differential_fuzz.rs"



[lints]

workspace = true