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

feat: extend join tables config for types #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Zerogiven
Copy link

@Zerogiven Zerogiven commented Mar 21, 2023

This pull request would give us more flexibility with JoinTables.

After it the following values are allowed:

JoinTables: ['SiteTree_Live']
JoinTables: ['SiteTree_Live.ID']
JoinTables:
  - "SiteTree_Live.ID": "Page.ID"
# Most advanced config. Set join table and on tables optional with columns
JoinTables:
  - "SiteTree_Live":
    - "SiteTree_Live.ID": "Page.ID"

All of them will produce the same output

LEFT JOIN SiteTree_Live ON SiteTree_Live.ID = Page.ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant