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

Ability to import/include other DBML #585

Open
tv-long opened this issue Jun 20, 2024 · 0 comments
Open

Ability to import/include other DBML #585

tv-long opened this issue Jun 20, 2024 · 0 comments

Comments

@tv-long
Copy link

tv-long commented Jun 20, 2024

Hi Team,
Our organization applied Data Mesh architecture to our EDW. Which means we have a lot of Data Product maintained by multiple Teams and they are related to each other. Therefore, we would like to have the ability to include or refer some objects from other DBML to avoid duplicating Table Definition everywhere it's used.
For example, we could describe TABLE_C which link to TABLE_A and TABLE_B in another project like this:

Include 'project/docs/dbml/dataproduct.dbml' {
    provider: 'gitlab'
    token: '$GITLAB_TOKEN'
    table: [TABLE_A, TABLE_B]
}

Include './internal_dataproduct.dbml' {
    provider: 'file'
    table: [TABLE_D]
}

Table TABLE_C {
    column_a string [ref: - TABLE_A.column]
    column_b string [ref: - TABLE_B.column]
    column_c long
    column_d string [ref: - TABLE_D.column]
}

We expected that all relationships between TABLE_A and TABLE_B will be included but none of other tables.

Best regards
Long

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

1 participant