Otogiri-Plugin-TableInfo
view release on metacpan or search on metacpan
lib/Otogiri/Plugin/TableInfo/PgKeywords.pm view on Meta::CPAN
package Otogiri::Plugin::TableInfo::PgKeywords;
use 5.008005;
use strict;
use warnings;
# keywords are picked from postgresql-9.3.4/src/include/parser/kwlist.h
# COL_NAME_KEYWORD
my @col_name_keywords = (
'between',
'bigint',
'bit',
'boolean',
'char',
'character',
'coalesce',
'dec',
'decimal',
'exists',
'extract',
'float',
'greatest',
'inout',
'int',
'integer',
'interval',
'least',
'national',
'nchar',
'none',
'nullif',
'numeric',
'out',
'overlay',
'position',
'precision',
'real',
'row',
'setof',
'smallint',
'substring',
'time',
'timestamp',
'treat',
'trim',
'values',
'varchar',
'xmlattributes',
'xmlconcat',
'xmlelement',
'xmlexists',
'xmlforest',
'xmlparse',
'xmlpi',
'xmlroot',
'xmlserialize',
);
# RESERVED_KEYWORD
my @reserved_keywords = (
"all",
"analyse",
"analyze",
"and",
"any",
"array",
"as",
"asc",
"asymmetric",
"both",
"case",
"cast",
"check",
"collate",
"column",
"constraint",
"create",
"current_catalog",
"current_date",
"current_role",
"current_time",
"current_timestamp",
"current_user",
"default",
"deferrable",
"desc",
"distinct",
"do",
"else",
"end",
"except",
"false",
"fetch",
"for",
( run in 2.055 seconds using v1.01-cache-2.11-cpan-5837b0d9d2c )