Expand description
SQLSTATE code mapping for Krishiv SQL errors.
Maps SqlError variants to the 5-character SQLSTATE codes defined by
ISO/IEC 9075 (SQL standard) and widely adopted by JDBC/ODBC drivers.
Clients can surface these codes over the Flight SQL wire protocol in the
grpc-status-details trailer.
Structs§
- SqlState
Error - A structured error envelope carrying the SQLSTATE code alongside the original error message. Suitable for embedding in Flight SQL or JDBC error responses.
Constants§
- DATA_
EXCEPTION 22000— Data exception (general).- FEATURE_
NOT_ SUPPORTED 0A000— Feature not supported.- GENERAL_
ERROR HY000— General error (catch-all for driver-level errors).- INSUFFICIENT_
PRIVILEGE 42501— Insufficient privilege.- INTERNAL_
ERROR XX000— Internal error (engine fault).- INVALID_
AUTHORIZATION 28000— Invalid authorisation specification (access denied).- QUERY_
CANCELLED 57014— Query cancelled (due to operator or timeout).- QUERY_
TIMEOUT 57P05— Query execution timeout.- SUCCESS
00000— Successful completion.- SYNTAX_
ERROR 42000— Syntax error or access rule violation.- SYSTEM_
ERROR 58000— System error (external component failure).- UNDEFINED_
TABLE 42P01— Undefined table.
Functions§
- sqlstate_
for - Return the SQLSTATE code for the given
SqlError.