ProductDocsArchitectureBlogGitHubGitHubGet Started
Available

Error Codes

SQLSTATE error codes returned by Krishiv SQL operations.

Overview

Krishiv maps SQL errors to standard SQLSTATE codes via the sqlstate_for function in krishiv-sql. Errors carry both a typed SqlError variant and an SQLSTATE string.

SqlError Variants

VariantSQLSTATEDescription
EmptyQuery42000Query was empty or whitespace only.
EmptyTableName42602A table name argument was empty.
Unsupported0A000SQL feature not available in this release.
InvalidTableFunction42883Table function declaration or registration was invalid.
DataFusion42000DataFusion returned an error (message preserved).
Optimizer42000Krishiv plan optimizer failed.
AccessDenied42501Query blocked by auth or policy hook.
OperationCancelled57014Query was cancelled by the caller.
Timeout57014Query exceeded its configured execution timeout.

SQL Feature Matrix

The feature_matrix() function in krishiv-sql::grammar returns the full list of SQL features with their implementation status (Available, Preview, Experimental, NotPlanned). Use features_by_status() to filter by status or features_for_category() to filter by category.