should be it
This commit is contained in:
10
external/duckdb/extension/autocomplete/grammar/statements/create_index.gram
vendored
Normal file
10
external/duckdb/extension/autocomplete/grammar/statements/create_index.gram
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
CreateIndexStmt <- Unique? 'INDEX' IfNotExists? IndexName? 'ON' BaseTableName IndexType? Parens(List(IndexElement)) WithList? WhereClause?
|
||||
|
||||
WithList <- 'WITH' Parens(List(RelOption)) / Oids
|
||||
Oids <- ('WITH' / 'WITHOUT') 'OIDS'
|
||||
IndexElement <- Expression DescOrAsc? NullsFirstOrLast?
|
||||
Unique <- 'UNIQUE'
|
||||
IndexType <- 'USING' Identifier
|
||||
RelOption <- ColLabel ('.' ColLabel)* ('=' DefArg)?
|
||||
DefArg <- FuncType / ReservedKeyword / StringLiteral / NumberLiteral / 'NONE'
|
||||
FuncType <- Type / ('SETOF'? TypeFuncName '%' 'TYPE')
|
||||
Reference in New Issue
Block a user