[package]
edition = "2021"
name = "chain-builder"
version = "2.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A typed, dialect-aware SQL query builder for Rust (PostgreSQL/MySQL/SQLite)."
readme = "README.md"
keywords = [
"database",
"sql",
"query",
"builder",
"sqlx",
]
categories = [
"database",
"database-implementations",
]
license = "MIT"
repository = "https://github.com/AssetsArt/chain-builder.git"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
chrono = [
"dep:chrono",
"sqlx/chrono",
]
default = ["sqlx_mysql"]
json = ["dep:serde_json"]
sqlx_mysql = ["sqlx/mysql"]
sqlx_postgres = ["sqlx/postgres"]
sqlx_sqlite = ["sqlx/sqlite"]
uuid = [
"dep:uuid",
"sqlx/uuid",
]
[lib]
name = "chain_builder"
path = "src/lib.rs"
[[test]]
name = "clauses"
path = "tests/clauses.rs"
[[test]]
name = "crud"
path = "tests/crud.rs"
[[test]]
name = "cte_union"
path = "tests/cte_union.rs"
[[test]]
name = "db"
path = "tests/db.rs"
[[test]]
name = "dynamic"
path = "tests/dynamic.rs"
[[test]]
name = "fetch"
path = "tests/fetch.rs"
[[test]]
name = "gaps"
path = "tests/gaps.rs"
[[test]]
name = "groups_nested"
path = "tests/groups_nested.rs"
[[test]]
name = "join"
path = "tests/join.rs"
[[test]]
name = "live_sqlite"
path = "tests/live_sqlite.rs"
[[test]]
name = "pg"
path = "tests/pg.rs"
[[test]]
name = "select"
path = "tests/select.rs"
[[test]]
name = "sqlx"
path = "tests/sqlx.rs"
[[test]]
name = "subquery"
path = "tests/subquery.rs"
[[test]]
name = "typebinds"
path = "tests/typebinds.rs"
[[test]]
name = "upsert"
path = "tests/upsert.rs"
[dependencies.chrono]
version = "0.4"
features = ["clock"]
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.sqlx]
version = "0.9"
[dependencies.uuid]
version = "1"
optional = true
[dev-dependencies.sqlx]
version = "0.9"
features = [
"mysql",
"sqlite",
"postgres",
"runtime-tokio",
"tls-rustls",
]
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
]