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

relationshipLabels ignored #58

Open
shah-ovo opened this issue Apr 4, 2024 · 1 comment
Open

relationshipLabels ignored #58

shah-ovo opened this issue Apr 4, 2024 · 1 comment

Comments

@shah-ovo
Copy link

shah-ovo commented Apr 4, 2024

I have the following yaml:

# Connection properties
connectionString: "postgres://postgres:postgres@localhost/postgres"

# Define what schemas should be used
useAllSchemas: true

selectedTables:
  - schema1.table1
  - schema1.table2
  - schema2.table1
  - schema3.table1

# Additional flags
showAllConstraints: true

showDescriptions:
  - enumValues
  - columnComments
  - notNull

showSchemaPrefix: true

relationshipLabels:
  - "schema3.table1 schema2.table1 : participates_in"
  - "schema2.table1 schema1.table2 : results_into"
  - "schema2.table1 schema1.table1 : results_into"

but when I run mermerd --runConfig ./config.yaml I don't see any labels generated. Everything else seems to be respected. What am I missing?

@dangoslen
Copy link
Contributor

👋🏼 One thing to make sure of: you must list the table with the primary key first and the table with the FK reference second.

Perhaps we could add support for either direction?

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

No branches or pull requests

2 participants