pub const RESERVED_FOR_COLUMN_OR_TABLE_NAME: &[Keyword];
Expand description
Can’t be used as a column or table name in PostgreSQL.
This list is taken from the following table, for all “reserved” words in the PostgreSQL column, including “can be function or type” and “requires AS”. https://www.postgresql.org/docs/14/sql-keywords-appendix.html#KEYWORDS-TABLE
SELECT
and WITH
were commented out because the following won’t parse:
SELECT (SELECT 1)
or SELECT (WITH a AS (SELECT 1) SELECT 1)
Other commented ones like CURRENT_SCHEMA
are actually functions invoked without parentheses.