-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Labels
Description
Self Checks
- This is only for bug report, if you would like to ask a question, please head to Discussions.
- I have searched for existing issues search for existing issues, including closed ones.
Version Type
CLI Version (npm package)
Version (only for Self Hosted)
>= 0.5.9
Steps to reproduce
- Set up project with Cloud Spanner (emulator is fine)
- Run k1low/tbls to output
schema.json
which has schema information with relationships between tables.
a. example command:SPANNER_EMULATOR_HOST=localhost:9010 tbls doc
- Run latest
liam-hq/cli
a. example command:npx @liam-hq/cli erd build --input schema.json --format tbls
Expected Behavior
Table relations are visualized.
As of liam-hq/[email protected]
, it works like the attached screenshot in my playground.

Actual Behavior
Table relations are not visualized like the attached screenshot in my playground.

Additional Context
As far as I investigated, #2156 (released as 0.5.9) tried to introduce the new mechanism to visualize relationship without schema.relationships
by using foreign key relations.
But, Cloud Spanner mostly uses interleave to create parent and children relationships instead of foreign keys. (ref)
Therefore, I think table relations are not visualized for now.
MH4GF, FunamaYukina, NoritakaIkeda and hoshinotsuyoshi