-
Notifications
You must be signed in to change notification settings - Fork 279
[enhance]: create database by with statement #995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When I first used Lindb, I was as confused as you because inputting JSON-formatted strings in the CLI is not straightforward. Many times, I had to carefully check whether the structure was correctly closed. Fortunately, creating databases is not something that happens frequently. Your suggestion is excellent. It's very intuitive when configuring values as strings and numbers. However, when you encounter situations where values must be expressed using arrays and objects, you start to think about what kind of DSL would make it easier. After some contemplation, you often find yourself back at JSON format. Just my personal opinion. |
I would like to inquire if the mentioned issue has already been initiated. If not, please assign it to me and provide the completed syntax, especially regarding the syntax for options. @stone1100 |
I do some research. You can ref to https://github.com/antlr/grammars-v4/blob/master/sql/trino/TrinoParser.g4. Create database schema includes two config options:
Example: |
Please describe enhancement
create database schema by with statement not json.
like:
create database apm with (shards=2,replica=3.....)
The text was updated successfully, but these errors were encountered: