Skip to main content

class_of

Function class_of 

Source
pub fn class_of(code: &str) -> &str
Expand description

Returns the 2-character class prefix of a SQLSTATE code.

Returns an empty string if the code is shorter than 2 characters.