sqlstate 0.2.0

SQLSTATE error codes as a structured type, with the codes PostgreSQL, MySQL and MariaDB report
Documentation
  • Coverage
  • 100%
    407 out of 407 items documented4 out of 12 items with examples
  • Size
  • Source code size: 57.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.7 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • diesel-rs/diesel
    14244 1258 102
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • weiznich

sqlstate

Crates.io Documentation

SQLSTATE codes with PostgreSQL, MySQL and MariaDB constants.

let code: sqlstate::SqlState = "40001".parse().unwrap();
assert!(matches!(code, sqlstate::pg::T_R_SERIALIZATION_FAILURE));