[package]
edition = "2024"
rust-version = "1.94"
name = "sqlx-pool-registry"
version = "0.3.0"
authors = [
"Anton Dutov <anton.dutov@gmail.com>",
"fergus.finn@doubleword.ai",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight SQLx PostgreSQL connection pool routing for primary/replica separation"
readme = "README.md"
keywords = [
"database",
"postgres",
"pool",
"replica",
"routing",
]
categories = [
"database",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/anton-dutov/sqlx-pool-registry"
[package.metadata.docs.rs]
features = [
"with-named-pools",
"with-deref",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["with-sqlx-0_8"]
with-deref = []
with-named-pools = []
with-sqlx-0_8 = ["dep:sqlx_0_8"]
with-sqlx-0_9 = ["dep:sqlx_0_9"]
[lib]
name = "sqlx_pool_registry"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "testing"
path = "examples/testing.rs"
[[test]]
name = "db_pools"
path = "tests/db_pools.rs"
[[test]]
name = "pool_registry"
path = "tests/pool_registry.rs"
[[test]]
name = "test_db_pools"
path = "tests/test_db_pools.rs"
[dependencies.sqlx_0_8]
version = "0.8"
features = ["postgres"]
optional = true
default-features = false
package = "sqlx"
[dependencies.sqlx_0_9]
version = "0.9"
features = ["postgres"]
optional = true
default-features = false
package = "sqlx"
[dev-dependencies.sqlx_0_8]
version = "0.8"
features = [
"postgres",
"macros",
"runtime-tokio",
]
package = "sqlx"
[dev-dependencies.sqlx_0_9]
version = "0.9"
features = [
"postgres",
"macros",
"runtime-tokio",
]
package = "sqlx"
[dev-dependencies.tokio]
version = "1.0"
features = ["full"]
[dev-dependencies.url]
version = "2.5"