Skip to content

Commit

Permalink
feat: Support grant command for Clickhouse (#227)
Browse files Browse the repository at this point in the history
* feat: support am/sources/alter rules

* refactor: restructurize test cases

* feat: support system rules

* feat: support named collection rule

* refactor: get rid of excess test cases

* feat: support admin/table rules

* feat: support grant role

* feat: support grant current grants rule

* refactor: split rule tests
  • Loading branch information
viladimiru authored Oct 11, 2024
1 parent ef66174 commit 4902a69
Show file tree
Hide file tree
Showing 71 changed files with 10,900 additions and 7,161 deletions.

Large diffs are not rendered by default.

227 changes: 124 additions & 103 deletions src/autocomplete/databases/clickhouse/generated/ClickHouseLexer.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -213,106 +213,127 @@ SHUTDOWN=212
CACHE=213
DNS=214
MARK=215
PART=216
UNCOMPRESSED=217
CONFIG=218
EMBEDDED=219
FUNCTIONS=220
MOVES=221
REPLICATION=222
QUEUES=223
RESTART=224
DICTGET=225
DICTGETHIERARCHY=226
DICTHAS=227
DICTISIN=228
MANAGEMENT=229
ADMIN=230
INTROSPECTION=231
ADDRESSTOLINE=232
ADDRESSTOSYMBOL=233
DEMANGLE=234
SOURCES=235
FILE=236
URL=237
REMOTE=238
MYSQL=239
ODBC=240
JDBC=241
HDFS=242
S3=243
SETTING=244
OPTION=245
NONE=246
JSON_FALSE=247
JSON_TRUE=248
IDENTIFIER=249
FLOATING_LITERAL=250
OCTAL_LITERAL=251
DECIMAL_LITERAL=252
HEXADECIMAL_LITERAL=253
STRING_LITERAL=254
ARROW=255
ASTERISK=256
BACKQUOTE=257
BACKSLASH=258
COLON=259
COMMA=260
CONCAT=261
DASH=262
DOT=263
EQ_DOUBLE=264
EQ_SINGLE=265
GE=266
GT=267
LBRACE=268
LBRACKET=269
LE=270
LPAREN=271
LT=272
NOT_EQ=273
PERCENT=274
PLUS=275
QUESTIONMARK=276
QUOTE_DOUBLE=277
QUOTE_SINGLE=278
RBRACE=279
RBRACKET=280
RPAREN=281
SEMICOLON=282
SLASH=283
UNDERSCORE=284
MULTI_LINE_COMMENT=285
SINGLE_LINE_COMMENT=286
WHITESPACE=287
'false'=247
'true'=248
'->'=255
'*'=256
'`'=257
'\\'=258
':'=259
','=260
'||'=261
'-'=262
'.'=263
'=='=264
'='=265
'>='=266
'>'=267
'{'=268
'['=269
'<='=270
'('=271
'<'=272
'%'=274
'+'=275
'?'=276
'"'=277
'\''=278
'}'=279
']'=280
')'=281
';'=282
'/'=283
'_'=284
MARKS=216
PART=217
UNCOMPRESSED=218
CONFIG=219
EMBEDDED=220
FUNCTIONS=221
MOVES=222
REPLICATION=223
QUEUES=224
RESTART=225
DICTGET=226
DICTGETHIERARCHY=227
DICTHAS=228
DICTISIN=229
MANAGEMENT=230
ADMIN=231
NAMED=232
COLLECTION=233
CONTROL=234
COLLECTIONS=235
SECRETS=236
USAGE=237
INTROSPECTION=238
ADDRESSTOLINE=239
ADDRESSTOSYMBOL=240
DEMANGLE=241
SOURCES=242
FILE=243
URL=244
REMOTE=245
MYSQL=246
ODBC=247
JDBC=248
HDFS=249
S3=250
SETTING=251
OPTION=252
NONE=253
AZURE=254
HIVE=255
MONGO=256
POSTGRES=257
REDIS=258
SQLITE=259
ADDRESSTOLINEWITHINLINES=260
SQL=261
SECURITY=262
DISPLAYSECRETSINSHOWANDSELECT=263
POLICIES=264
PROFILES=265
ALLOW=266
GRANTS=267
JSON_FALSE=268
JSON_TRUE=269
IDENTIFIER=270
FLOATING_LITERAL=271
OCTAL_LITERAL=272
DECIMAL_LITERAL=273
HEXADECIMAL_LITERAL=274
STRING_LITERAL=275
ARROW=276
ASTERISK=277
BACKQUOTE=278
BACKSLASH=279
COLON=280
COMMA=281
CONCAT=282
DASH=283
DOT=284
EQ_DOUBLE=285
EQ_SINGLE=286
GE=287
GT=288
LBRACE=289
LBRACKET=290
LE=291
LPAREN=292
LT=293
NOT_EQ=294
PERCENT=295
PLUS=296
QUESTIONMARK=297
QUOTE_DOUBLE=298
QUOTE_SINGLE=299
RBRACE=300
RBRACKET=301
RPAREN=302
SEMICOLON=303
SLASH=304
UNDERSCORE=305
MULTI_LINE_COMMENT=306
SINGLE_LINE_COMMENT=307
WHITESPACE=308
'false'=268
'true'=269
'->'=276
'*'=277
'`'=278
'\\'=279
':'=280
','=281
'||'=282
'-'=283
'.'=284
'=='=285
'='=286
'>='=287
'>'=288
'{'=289
'['=290
'<='=291
'('=292
'<'=293
'%'=295
'+'=296
'?'=297
'"'=298
'\''=299
'}'=300
']'=301
')'=302
';'=303
'/'=304
'_'=305
Loading

0 comments on commit 4902a69

Please sign in to comment.