Flexible settings #676
Replies: 4 comments 6 replies
|
Thank you for sharing your thoughts. Indeed, we're considering letting users define & store custom metadata for DB objects with inline and the new Metadata concept. Something like this: Inner thoughtsWhy are we introducing the new Metadata concept? Why don't we simply add custom metadata in column settings, as proposed above?
Feel free to share your thoughts about this. |
|
Reposting my comment from #824. Reposting feedback from @hdnax as a reply. I'm using dbml to version control a Postgres instance, and I'd like to use this tool to model my RLS policies and generate CREATE POLICY scripts. Suggested markup:
|
|
This feature might be a perfect case for the multiple files feature. |
|
Hi everyone, We implemented this in #932. For more information, please see https://dbml.dbdiagram.io/syntax/enrichment-visualization#custom-metadata |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've been wanting to use dbml as the foundation for my project, but it's currently held back due to the lack of options to add custom information.
In my case I need, for example, policies and RLS markers. I was thinking of using the table settings for this but this is being validated in a switch statement that only allows headercolor (which shouldn't be in dbml imo, and should instead be part of a "plugin" of sorts that enables the feature for the studio) and notes.
If the settings (or some other mechanism like decorators, custom handles or metadata) allow users to define, validate and implement their own, you open up dbml to many more use cases.
For now I'll try to add settings in my fork, but I think it would be nice as a core thing.
Not the best example, but it does more or less illustrate what I'd like to be able to do.
All reactions