Skip to content
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

schema: allow optional LabelStep #387

Closed
wants to merge 1 commit into from
Closed

Conversation

giautm
Copy link
Contributor

@giautm giautm commented May 2, 2024

This is helpful in case of AtlasHCL, which has an optional schema qualifier before each table resource

table "public" "t1" {
  column "c1" {
    type = int
  }
}

"public" is the optional label, in this case, hover. When collecting block addresses, the last label should be optional. Then the block's address will be resolved as table.public.t1 or table.t1

This helpful in case of AtlasHCL, which has optional schema qualifier before each table resource

```hcl
table "public" "t1" {
  column "c1" {
    type = int
  }
}
```

`"public"` is the optional label in this case, hover. When collecting block address, the last label should be optional. Then the block's address will be resolved as `table.public.t1` or `table.t1`
@giautm giautm requested a review from a team as a code owner May 2, 2024 05:02
@giautm giautm closed this May 11, 2024
@giautm giautm deleted the patch branch May 11, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant