https://github.com/0xsio/sqlstate-rs
Representations and parsing logic for SQLSTATE return codes.
https://github.com/0xsio/sqlstate-rs
rust sql sqlstate
Last synced: 12 months ago
JSON representation
Representations and parsing logic for SQLSTATE return codes.
- Host: GitHub
- URL: https://github.com/0xsio/sqlstate-rs
- Owner: 0xSiO
- License: mpl-2.0
- Created: 2021-08-29T01:37:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-04T02:35:01.000Z (over 1 year ago)
- Last Synced: 2025-03-24T08:47:49.940Z (about 1 year ago)
- Topics: rust, sql, sqlstate
- Language: Rust
- Homepage:
- Size: 75.2 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlstate-rs
[](https://github.com/0xSiO/sqlstate-rs/actions/workflows/ci.yml)
[](https://crates.io/crates/sqlstate)
[](https://docs.rs/sqlstate)
Representations and parsing logic for [`SQLSTATE`](https://en.wikipedia.org/wiki/SQLSTATE)
return codes.
`sqlstate` supports all standard SQL error codes as defined in ISO/IEC 9075.
Databases may define custom error codes as well - `sqlstate` supports additional error codes for
the following databases:
- [PostgreSQL](https://www.postgresql.org/docs/current/errcodes-appendix.html)
(enable with feature `postgres`)
## Contributing
- Contributions to this project must be submitted under the [project's license](./LICENSE).
- Contributors to this project must attest to the [Developer Certificate of Origin](https://developercertificate.org/) by including a `Signed-off-by` statement in all commit messages.
- All commits must have a valid digital signature.