Skip to content

Ability to import/include other DBML #585

@tv-long

Description

@tv-long

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions