File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ const tabularOnelineClauses = expandPhrases([
172172 'DROP IDENTITY' ,
173173 'DROP INDEX' ,
174174 'DROP LANGUAGE' ,
175- 'DROP MATERIALIZED VIEW' ,
175+ 'DROP MATERIALIZED VIEW [IF EXISTS] ' ,
176176 'DROP OPERATOR' ,
177177 'DROP OPERATOR CLASS' ,
178178 'DROP OPERATOR FAMILY' ,
@@ -216,7 +216,7 @@ const tabularOnelineClauses = expandPhrases([
216216 'REFRESH MATERIALIZED VIEW' ,
217217 'REINDEX' ,
218218 'RELEASE SAVEPOINT' ,
219- 'RESET' ,
219+ 'RESET [ALL|ROLE|SESSION AUTHORIZATION] ' ,
220220 'REVOKE' ,
221221 'ROLLBACK' ,
222222 'ROLLBACK PREPARED' ,
@@ -252,11 +252,15 @@ const reservedPhrases = expandPhrases([
252252 'PRIMARY KEY' ,
253253 'GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY' ,
254254 'ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]' ,
255+ 'DO {NOTHING | UPDATE}' ,
256+ 'AS MATERIALIZED' ,
255257 '{ROWS | RANGE | GROUPS} BETWEEN' ,
256258 // https://www.postgresql.org/docs/current/datatype-datetime.html
257259 '[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE' ,
258260 // comparison operator
259261 'IS [NOT] DISTINCT FROM' ,
262+ 'NULLS {FIRST | LAST}' ,
263+ 'WITH ORDINALITY' ,
260264] ) ;
261265
262266// https://www.postgresql.org/docs/14/index.html
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export const keywords: string[] = [
9898 'SYMMETRIC' , // reserved
9999 'TABLE' , // reserved
100100 'TABLESAMPLE' , // reserved (can be function or type)
101+ 'TEMPLATE' , // non-reserved, used in CREATE DATABASE to specify a template database
101102 'THEN' , // reserved
102103 'TO' , // reserved, requires AS
103104 'TRAILING' , // reserved
You can’t perform that action at this time.
0 commit comments