29 stable releases
Uses new Rust 2024
| new 2.52.1 | May 13, 2026 |
|---|---|
| 2.49.0 | Apr 27, 2026 |
| 2.44.0 | Mar 20, 2026 |
| 2.34.0 | Dec 23, 2025 |
| 0.3.0 | Jul 10, 2020 |
#721 in Database interfaces
458 downloads per month
Used in 4 crates
1.5MB
46K
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