[package]
edition = "2024"
rust-version = "1.94"
name = "qbrs-sqlx"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "sqlx-based execution integration for qbrs (Postgres)."
readme = "README.md"
keywords = [
"sql",
"database",
"query-builder",
"postgres",
"sqlx",
]
categories = ["database"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/RyutaroYako/qbrs"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
chrono = [
"qbrs-core/chrono",
"sqlx/chrono",
"dep:chrono",
]
decimal = [
"qbrs-core/decimal",
"sqlx/rust_decimal",
"dep:rust_decimal",
]
json = [
"qbrs-core/json",
"sqlx/json",
"dep:serde_json",
]
uuid = [
"qbrs-core/uuid",
"sqlx/uuid",
"dep:uuid",
]
[lib]
name = "qbrs_sqlx"
path = "src/lib.rs"
[[test]]
name = "aggregates_integration"
path = "tests/aggregates_integration.rs"
[[test]]
name = "array_columns_integration"
path = "tests/array_columns_integration.rs"
[[test]]
name = "column_types_integration"
path = "tests/column_types_integration.rs"
[[test]]
name = "data_modifying_cte_integration"
path = "tests/data_modifying_cte_integration.rs"
[[test]]
name = "do_update_where_integration"
path = "tests/do_update_where_integration.rs"
[[test]]
name = "excluded_upsert_integration"
path = "tests/excluded_upsert_integration.rs"
[[test]]
name = "insert_select_integration"
path = "tests/insert_select_integration.rs"
[[test]]
name = "json_columns_integration"
path = "tests/json_columns_integration.rs"
[[test]]
name = "no_from_integration"
path = "tests/no_from_integration.rs"
[[test]]
name = "partial_index_upsert_integration"
path = "tests/partial_index_upsert_integration.rs"
[[test]]
name = "postgres_integration"
path = "tests/postgres_integration.rs"
[[test]]
name = "prepare_integration"
path = "tests/prepare_integration.rs"
[[test]]
name = "reused_bind_integration"
path = "tests/reused_bind_integration.rs"
[[test]]
name = "stream_integration"
path = "tests/stream_integration.rs"
[[test]]
name = "transaction_integration"
path = "tests/transaction_integration.rs"
[dependencies.chrono]
version = "0.4"
features = ["std"]
optional = true
default-features = false
[dependencies.futures-util]
version = "0.3"
default-features = false
[dependencies.qbrs-core]
version = "0.5.0"
[dependencies.rust_decimal]
version = "1"
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
features = ["std"]
optional = true
default-features = false
[dependencies.sqlx]
version = "0.9"
features = [
"postgres",
"runtime-tokio",
"tls-rustls",
]
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.uuid]
version = "1"
optional = true
default-features = false
[dev-dependencies.tokio]
version = "1.53.1"
features = ["full"]