Crates.io | quaint-forked |
lib.rs | quaint-forked |
version | |
source | src |
created_at | 2023-03-11 02:29:35.804386 |
updated_at | 2024-12-14 10:11:47.017524 |
description | An abstraction layer for SQL databases. |
homepage | https://github.com/zhangkaiyulw/quaint/ |
repository | https://github.com/zhangkaiyulw/quaint/ |
max_upload_size | |
id | 806905 |
Cargo.toml error: | TOML parse error at line 25, column 1 | 25 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This project is a fork of Prisma's quaint.
Quaint is an abstraction over certain SQL databases. It provides:
mysql
: Support for MySQL databases.postgresql
: Support for PostgreSQL databases.sqlite
: Support for SQLite databases.mssql
: Support for Microsoft SQL Server databases.pooled
: A connection pool in pooled::Quaint
.json
: JSON type support with serde_json
crate.uuid
: UUID type support with uuid
crate.chrono
: DateTime type support with chrono
crate.serde-support
: Deserialize support from result set with serde
crate.bigdecimal
: Numeric values can be read as BigDecimal
.vendored-openssl
: Statically links against a vendored OpenSSL library on
non-Windows or non-Apple platforms.fmt-sql
: Enables logging SQL queries formatted. The FMT_SQL
env var must be present for the formatting to be enabled.For 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.
The FMT_SQL
environment variable can be used to log formatted SQL queries. Beware, the fmt-sql
feature must be enabled too.
If you have a security issue to report, please contact us at security@prisma.io