You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with using this library as the base for my language server, and I'm configuring a schema template for Atlas HCL. After a few days of trying to configure the schema to fit with Atlas, I'm stuck on some configuration about references. I hope you all can help me get through it
Here is an example of Atlas HCL to define database schema:
The problems I'm facing are how to configure Nested block reference like table.users.column.id and Local reference like column.owner_id.
I have tried defining ScopeID and Targetables, but they don't seem to work. I'm not sure if I'm missing some configuration, or if these features aren't supported yet.
Hi @datdao
First of all, thanks for the interest in the library. I'd caution (as per the Readme) that it's still very much work in progress and the API may change, but LS for AtlasGo looks exactly like a use case this library was designed to potentially solve. In practice though we never tested it outside of Terraform, so YMMV.
Would you mind also providing the code which decodes the configuration based on the schema, so I can understand what exactly you expect to happen and what isn't working?
FWIW We have a relatively decent test coverage of most parts of the code base, so that may help understand how things work, even if they may look confusing at first.
@radeksimko: Hello, I'm a co-worker with @datdao. Thank you for your response here. We also want to contribute to this support if it's missing / undevelopment yet.
First, we will try to send a PR to demonstration of config using your existing unit-test. Then, we can discus what is the next step for this support.
Hi guys,
I'm experimenting with using this library as the base for my language server, and I'm configuring a schema template for Atlas HCL. After a few days of trying to configure the schema to fit with Atlas, I'm stuck on some configuration about references. I hope you all can help me get through it
Here is an example of Atlas HCL to define database schema:
The problems I'm facing are how to configure Nested block reference like
table.users.column.id
and Local reference likecolumn.owner_id
.I have tried defining
ScopeID
andTargetables
, but they don't seem to work. I'm not sure if I'm missing some configuration, or if these features aren't supported yet.Here is my config:
The text was updated successfully, but these errors were encountered: