Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var OracleReservedWords = map[string]struct{}{ // contains filtered or unexported fields }/* 109 elements not displayed */
OracleReservedWords contains all Oracle SQL reserved keywords that require double-quote quoting when used as identifiers (column names, table names, etc.).
This is the canonical source of truth for Oracle reserved word detection across the GoBricks framework. Both the query builder and column parser rely on this list for automatic identifier quoting.
The map is kept in parity with the full official Oracle 19c reserved-word list (V$RESERVED_WORDS where reserved='Y'); parity is enforced by TestOracleReservedWordsMatchOfficial19cList. A small, intentional superset is also quoted defensively (BEGIN, CASE, WHEN, EXCLUDE) — see that test for the rationale of each entry.
Source: Oracle Database SQL Language Reference 19c, "Oracle SQL Reserved Words". https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Oracle-SQL-Reserved-Words.html
Note: This list uses struct{} for zero-memory overhead in the map value.
Functions ¶
func IsOracleReservedWord ¶
IsOracleReservedWord checks if a word is an Oracle reserved keyword. The check is case-insensitive since Oracle identifiers are case-insensitive by default.
Examples:
IsOracleReservedWord("LEVEL") // true
IsOracleReservedWord("level") // true
IsOracleReservedWord("Level") // true
IsOracleReservedWord("user_id") // false
Types ¶
This section is empty.