Skip to main content

sqlstate_for

Function sqlstate_for 

Source
pub fn sqlstate_for(error: &SqlError) -> &'static str
Expand description

Return the SQLSTATE code for the given SqlError.

The returned string is always a 5-character SQLSTATE code conforming to ISO/IEC 9075.