-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/hck 3426 re couchbase 7 instance re (#5)
* package: add lodash library * RE: update re modal config * RE: implement get document kinds method * RE: add types for document kind data methods * package: add async library * RE: create rest api helper * RE: add retrive collections by doc kind using rest api * RE: implement retrive documents from default collection * RE: implement retrive documents for scopes and collections * RE: fix typo * package: install antler * RE: implement antlr parser * RE: implement collection indexes reversing * RE: fix incorrect error message * RE: add constant for default key name * RE: implement re from n1ql files * RE: add split default scope names to avoid their combining * package: add parser folder to eslint ignore * package: remove unneded libs * config: add container level keys config * RE: add document kinds value to db collections data * RE: add logging for test connection * RE: add safety getting scopes for document kinds * package: install hackolade couchbase deps * parser: remove license data * RE: fix names of params * RE: add require of couchbase lib * RE: replace complex iterations by async reduce * RE: reduce complexity for retriving doc kinds by manual infer * types: fix typing for some methods * package: uninstall redundant couchbase types lib * package: add exact lib versions * RE: fix create of empty scopes after reversing from file * package: remove couchbase native module * build: add .ts files to excluded extensions * package: add types lib to dev dependencies * RE: add retrive selected bucket collections if selected collections are not specifed --------- Co-authored-by: Ugo Bechameil <[email protected]>
- Loading branch information
1 parent
4bec104
commit a4b6668
Showing
31 changed files
with
34,596 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const antlr4 = require('antlr4'); | ||
|
||
class ExprErrorListener extends antlr4.error.ErrorListener { | ||
syntaxError(recognizer, offendingSymbol, line, column, msg, err) { | ||
throw new Error(`line ${line}:${column} ${msg}`); | ||
} | ||
} | ||
|
||
module.exports = ExprErrorListener; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# * run with `sh buildParser.sh` | ||
|
||
# !important: don't forget to change `import` and `export` to `require` and `module.exports` after the parser is built | ||
|
||
# https://www.antlr.org/download/antlr-4.9.2-complete.jar | ||
# | ||
# set antlr4 aliases | ||
# export CLASSPATH=".:/usr/local/lib/antlr-4.9.2-complete.jar:$CLASSPATH" | ||
# alias antlr4='java -jar /usr/local/lib/antlr-4.9.2-complete.jar' | ||
# alias grun='java org.antlr.v4.gui.TestRig' | ||
|
||
# build parser | ||
java -jar /usr/local/lib/antlr-4.9.2-complete.jar -Dlanguage=JavaScript \ | ||
-lib grammars \ | ||
-o parser/ \ | ||
-visitor \ | ||
-no-listener \ | ||
-Xexact-output-dir \ | ||
grammars/n1ql.g4 | ||
|
||
npx prettier --write ./parser/**/*.js |
Oops, something went wrong.