Documentation
¶
Overview ¶
Package sqlhint is the shared SQL-error help used by gadak sql and gadak_query (MCP), and the owner of SQL comment stripping (StripComments) used by the group-query and MCP SELECT gates. Status, issue type, and priority names are localized per account; filtering on the display column is the locale trap that returns zero rows silently. A "no such column" error also gets a did-you-mean when the unknown name is close to a real column (GDK-255: issue_key → key).
Index ¶
Constants ¶
const ZeroRowWarning = "" /* 136-byte string literal not displayed */
ZeroRowWarning is the sentence both surfaces print when a query compared a display-name column and returned nothing.
Variables ¶
This section is empty.
Functions ¶
func FirstKeyword ¶
FirstKeyword returns the leading ASCII identifier of s after skipping leading space. Strip comments first (StripComments); this does not.
func StripComments ¶
StripComments removes -- line comments and /* */ block comments outside of string literals and double-quoted identifiers. A block comment is replaced with a space so "SELECT/*x*/1" stays two tokens.
func WithColumnSuggestion ¶
WithColumnSuggestion appends `did you mean "col"?` to a SQLite "no such column" error when one column from hintTables is close enough. Distant names stay unadorned — a bad guess is worse than none.
func ZeroRowDisplayNameWarning ¶
ZeroRowDisplayNameWarning returns ZeroRowWarning when rowCount is 0 and query compares a localized display-name column. Comments are stripped first so a commented example is not a filter.
Types ¶
This section is empty.