We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm trying to define the following SQL table:
TableName: { shape: sql_table id: String {constraint: primary_key} label: String }
where label is an actual column, the D2 compiler is interpreting it as the label for the table in the graphical output:
label
The text was updated successfully, but these errors were encountered:
it because label is reserved word.
You are trying to change the label for the current container. It is similar to the following:
TableName: String { shape: sql_table id: String {constraint: primary_key} }
Instead you should change key for the "column" shape.
I use "string-literal-hack":
TableName: { shape: sql_table id: String {constraint: primary_key} "label ": String }
Also, you can use "escape-hack" 😄
TableName: { shape: sql_table id: String {constraint: primary_key} \ label: String }
Sorry, something went wrong.
yeah sorry quotes should bypass the reserved nature of the keyword. it's an open wip
thanks this is a good workaround!!
No branches or pull requests
Hi, I'm trying to define the following SQL table:
where
label
is an actual column, the D2 compiler is interpreting it as the label for the table in the graphical output:The text was updated successfully, but these errors were encountered: