Skip to content

Commit

Permalink
feat: Support remaining database commands for MongoDB (#270)
Browse files Browse the repository at this point in the history
* feat: support aggregate method for database context

* feat: support listCollections/renameCollection/dropCollection/dropDatabase for database operations

* feat: support create index command for database operations

* refactor: add prefix to the method rules

* feat: support indexInformation/remove-user/runCursorCommand methods for database operations

* feat: support stats/profilingLevel/setProfilingLevel commands for database operations

* feat: support admin commands for database operations
  • Loading branch information
viladimiru authored Dec 26, 2024
1 parent c55ff02 commit d302bcd
Show file tree
Hide file tree
Showing 27 changed files with 10,231 additions and 4,429 deletions.
53 changes: 52 additions & 1 deletion src/autocomplete/databases/mongo/generated/MongoLexer.interp

Large diffs are not rendered by default.

102 changes: 68 additions & 34 deletions src/autocomplete/databases/mongo/generated/MongoLexer.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,44 @@ AGGREGATE=39
COLLECTION=40
CREATE_COLLECTION=41
COMMAND=42
LBRACKET=43
RBRACKET=44
LPAREN=45
RPAREN=46
LBRACE=47
RBRACE=48
COLON=49
COMMA=50
SEMICOLON=51
DOT=52
TRUE=53
FALSE=54
NULL=55
STRING=56
NUMBER=57
NUMERIC_LITERAL=58
SYMBOL=59
IDENTIFIER=60
SINGLE_LINE_COMMENT=61
MULTI_LINE_COMMENT=62
WS=63
LIST_COLLECTIONS=43
RENAME_COLLECTION=44
DROP_COLLECTION=45
DROP_DATABASE=46
REMOVE_USER=47
RUN_CURSOR_COMMAND=48
STATS=49
PROFILING_LEVEL=50
SET_PROFILING_LEVEL=51
ADMIN=52
BUILD_INFO=53
SERVER_INFO=54
SERVER_STATUS=55
PING=56
VALIDATE_COLLECTION=57
LIST_DATABASES=58
REPL_SET_GET_STATUS=59
LBRACKET=60
RBRACKET=61
LPAREN=62
RPAREN=63
LBRACE=64
RBRACE=65
COLON=66
COMMA=67
SEMICOLON=68
DOT=69
TRUE=70
FALSE=71
NULL=72
STRING=73
NUMBER=74
NUMERIC_LITERAL=75
SYMBOL=76
IDENTIFIER=77
SINGLE_LINE_COMMENT=78
MULTI_LINE_COMMENT=79
WS=80
'db'=1
'find'=2
'findOne'=3
Expand Down Expand Up @@ -103,16 +120,33 @@ WS=63
'collection'=40
'createCollection'=41
'command'=42
'['=43
']'=44
'('=45
')'=46
'{'=47
'}'=48
':'=49
','=50
';'=51
'.'=52
'true'=53
'false'=54
'null'=55
'listCollections'=43
'renameCollection'=44
'dropCollection'=45
'dropDatabase'=46
'removeUser'=47
'runCursorCommand'=48
'stats'=49
'profilingLevel'=50
'setProfilingLevel'=51
'admin'=52
'buildInfo'=53
'serverInfo'=54
'serverStatus'=55
'ping'=56
'validateCollection'=57
'listDatabases'=58
'replSetGetStatus'=59
'['=60
']'=61
'('=62
')'=63
'{'=64
'}'=65
':'=66
','=67
';'=68
'.'=69
'true'=70
'false'=71
'null'=72
1,109 changes: 615 additions & 494 deletions src/autocomplete/databases/mongo/generated/MongoLexer.ts

Large diffs are not rendered by default.

Loading

0 comments on commit d302bcd

Please sign in to comment.