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 include other dbml files #125

Open
lucianokrebss opened this issue Aug 1, 2020 · 3 comments
Open

Ability to include other dbml files #125

lucianokrebss opened this issue Aug 1, 2020 · 3 comments

Comments

@lucianokrebss
Copy link

Hey guys,

Thank you for your awesome project. DBML is making a huge difference here at @provicapital. We are documenting our production database using db_docs and we thought it would be really great to have an import/export syntax function to make the database.dbml a little more modular, you know?

Thank you for your amazing work

@nvquanghuy
Copy link
Contributor

Hi @lucianokrebs, thank you for your compliment!

Could you share a little bit more on what do you mean by import/export syntax function please? Is it like module systems?

Something like below?

# File database.dbml
Include users.dbml
Include transactions.dbml

@lloydhumphreys
Copy link

Hey there - we're evaluating this at TS, and think we'd also benefit from this kind of functionality. We're thinking of using this to document our databases, as well as our data pipelines.

We have hundreds of tables, with many teams and maintainers, so 1 .dbml file seems like it would get a bit out of hand. There are a few central (maybe derived, in the case of a DP) tables that glue it all together that everyone needs access to. We'd like to document those independently, and then "export" the documentation to be consumed by various teams in their own DBML. For example: We're a business network, so lots of teams rely on a "companies" table. We don't want everyone inventing their own definitions of what a companies table is, but rather import @ts/companies & be able to reference the data. If we started using dbdocs.io alongside it, we wouldn't want multiple dbml files to end up creating many copies of the same table, either.

+1 for this!

@nvquanghuy nvquanghuy changed the title import / export function Ability to include other dbml files Jul 19, 2021
@asule90
Copy link

asule90 commented Dec 18, 2023

hello, any update for this? i think i need this too..

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

4 participants