Quaint is an abstraction over certain SQL databases. It provides:
full
: All connectors and a pooled Quaint
managerfull-postgresql
: Pooled support for PostgreSQLfull-mysql
: Pooled support for MySQLfull-sqlite
: Pooled support for SQLitesingle
: All connectors, but no poolingsingle-postgresql
: Single connection support for PostgreSQLsingle-mysql
: Single connection support for MySQLsingle-sqlite
: Single connection support for SQLiteFor type-safe database abstraction, Diesel is an excellent choice.
.envrc
for connection params. Override variables if different. MySQL and
PostgreSQL needs to be running for tests to succeed.Then:
``` sh
cargo test ```
The queries can be logged by setting the LOG_QUERIES
environment variable to any
value. They'll be logged at the INFO
level and are visible when having a
logger in scope. If using Tracing,
compiling Quaint with the tracing-log
feature flag will parameterize the
logged queries into a more suitable format for Tracing.