34 stable releases
Uses new Rust 2024
| new 2.57.0 | Jun 6, 2026 |
|---|---|
| 2.55.0 | May 27, 2026 |
| 2.44.0 | Mar 20, 2026 |
| 2.34.0 | Dec 23, 2025 |
| 0.3.0 | Jul 10, 2020 |
#2732 in Database interfaces
597 downloads per month
Used in 4 crates
1.5MB
51K
SLoC
linter
Error message style guide
Lock messages
Each lock name should be:
- accompanied by an explanation of its meaning in simple terms
- tables that are affected
Instead of:
Changing the size of a `varchar` field requires an `ACCESS EXCLUSIVE` lock.
include a lock description & table name:
Changing the size of a `varchar` field requires an `ACCESS EXCLUSIVE` lock, which prevents reads and writes to `users`.
Help
A help message should be short an actionable.
Instead of:
You can remove the `CASCADE` keyword and then specify exactly which tables you want to truncate directly.
tell the user what to change (add, update, remove):
Remove the `CASCADE` and specify exactly which tables you want to truncate.
Dependencies
~4.5MB
~82K SLoC