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

Support for Views (Virtual Tables) #74

Closed
julioz opened this issue Apr 4, 2020 · 3 comments
Closed

Support for Views (Virtual Tables) #74

julioz opened this issue Apr 4, 2020 · 3 comments

Comments

@julioz
Copy link
Contributor

julioz commented Apr 4, 2020

In many databases, especially complex ones, views provide a way to select and/or collate data from multiple tables.

It would be interesting to allow DBML to represent virtual tables, that could be possibly drawn in a different way from regular tables in UI renderers.

@phuongduyphan
Copy link
Collaborator

phuongduyphan commented Apr 9, 2020

Hi,

We have the same idea, but we call it model instead of view. In the future, we might introduce a new concept "data model" which is generally used in analytics, BI industry and integrate it into (or make it works with) DBML. You can check more details about data modeling concept here.

@jdiaz-cdw
Copy link

Hi! I can see this is an old thread. I was looking at the DBML documentation, and it seems neither views nor models are supported. Is there a plan to add support for this? I can definitely see the value of it, when representing complex DB models. Any plans to add this to the DBML language?

@Nidroide
Copy link

Nidroide commented May 9, 2023

Hi!
First time on dbml (from dbdiagrams.io). It's very nice.
Please add views support as they are used not only to display data but also to define some security advanced patterns (security invoker, definer etc. introduced e.g. in postgresql 15 or to define "instead of insert" triggers).

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

5 participants