[](https://crates.io/crates/arium-pool)
[](https://docs.rs/arium-pool)
[](https://github.com/tonybierman/arium/actions)
[](#license)
# arium-pool
Compile-time-selected sqlx pool aliases — the one place the backend
(`sqlite` vs `postgres`) is chosen.
Enable exactly one of the `sqlite` or `postgres` features. Both the arium
auth engine and `arium-authz` depend on this crate, so they agree on a
single concrete `Pool` type and a single "exactly one backend" guard:
a feature-unification mistake fails here, loudly, rather than as a cryptic
`SqlitePool`-vs-`PgPool` mismatch deep in a transaction signature.
## Installation
Enable exactly one backend feature — there is no default, so the backend is
chosen once at the top of the dependency tree and forwarded down:
```toml
[dependencies]
arium-pool = { version = "0.1", features = ["sqlite"] } # or "postgres"
```
Full API reference on [docs.rs](https://docs.rs/arium-pool). Key aliases: `Pool`, `DbBackend`, `DbConnection`.
## License
Licensed under either of:
- [Apache License, Version 2.0](LICENSE-APACHE)
- [MIT License](LICENSE-MIT)
at your option.