Skip to main content

sqlstate_for_reddb_error

Function sqlstate_for_reddb_error 

Source
pub fn sqlstate_for_reddb_error(err: &RedDBError) -> SqlState
Expand description

Map a RedDBError variant to its SQLSTATE code. Used by the wire protocol’s error response frame so clients get the standardized identifier alongside the human message.