Skip to content

Add option to exclude relationships#743

Merged
pwelter34 merged 1 commit intoloresoft:masterfrom
DavidBoone:relationships-ignore
Feb 17, 2026
Merged

Add option to exclude relationships#743
pwelter34 merged 1 commit intoloresoft:masterfrom
DavidBoone:relationships-ignore

Conversation

@DavidBoone
Copy link
Contributor

Next to the current tables and columns exclude lists, adds support for relationships allowing relationships to be ignored by name in the same way.

Sorry, rushing this PR, but this has been very useful to me, so wanted to share before I forget :)

@pwelter34
Copy link
Member

Looks great. Do you have a quick example of what you'd put in the yaml to skip a relationship?

@DavidBoone
Copy link
Contributor Author

Looks great. Do you have a quick example of what you'd put in the yaml to skip a relationship?

Sure, here's a couple examples:

  1. fully named relationship
  2. just the relationship name (hope no other table happens to have a constraint of the same name!)
  3. all relationships for the reseller table
  4. all relationships in the reporting schema
database:
  provider: 'PostgreSQL'
  exclude:
    relationships:
      - public\.order\.order_reseller_id_fkey
      - order_reseller_id_fkey
      - public\.reseller\.
      - ^reporting\.

@pwelter34 pwelter34 merged commit 678c490 into loresoft:master Feb 17, 2026
3 of 4 checks passed
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.

2 participants