| Crates.io | quaint |
| lib.rs | quaint |
| version | 0.2.0-alpha.13 |
| created_at | 2019-12-27 19:36:08.204163+00 |
| updated_at | 2020-06-16 12:23:02.878477+00 |
| description | An abstraction layer for SQL databases. |
| homepage | https://github.com/prisma/quaint/ |
| repository | https://github.com/prisma/quaint/ |
| max_upload_size | |
| id | 192738 |
| size | 573,553 |
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 SQLitefull-mssql: Pooled support for Microsoft SQL Serversingle: All connectors, but no poolingsingle-postgresql: Single connection support for PostgreSQLsingle-mysql: Single connection support for MySQLsingle-sqlite: Single connection support for SQLitesingle-mssql: Single connection support for Microsoft SQL ServerFor type-safe database abstraction, Diesel is an excellent choice.
.envrc for connection params. Override variables if different. MySQL,
PostgreSQL and SQL Server needs to be running for tests to succeed.Then:
> 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.