We published a free plugin last month that generates a DBML schema (https://www.dbml.org) for your bubble database but didn’t make an official annoucement. We have been testing the plugin for a month now and it has been functioning quite well so we wanted to make a more general post in case other users might find the plugin helpful.
The plugin has an element that you place on the page. The schema text is automatically generated and then you can copy and paste it into dbdiagram.io - Database Relationship Diagrams Design Tool and generate a visual schema that looks like this:
Today we also published an update that adds a SSA which uses DBML core and allows you to convert your DBML database script to postgres, mysql or mssql schema syntax. This enables you to easily recreate your database in a different database engine with very little effort.
The link for the plugin is here:
If you find any bugs or issues or if you have ideas to improve the functionality, please do let us know.
No I’m thinking about something that would look like a chart. So think about any page. At the top you would see the main page, then below you would see groups below it, and attached workflows and such.
It’s likely something that would never be made, or couldn’t be, but it would be handy to have your page able to be viewed in a different fashion than simply through the editor. I can make a mock-up later if this makes no sense lol.
@Nakita I’ve confirmed there is some issue here. I am looking into it. It works in the test app but does not work when deployed through the plugin marketplace. I also can’t get the plugin to redeploy so I’m guessing these are related issues. I’ll post again when I have an update.
Its working, But require lot of manual involvement to make it into diagram. As relationships are shown with a “REF” without a space/linefeed and gives the below error
(603:83) Expected " ", “[”, Table Group, comment, end of input, enum, project, references, table, or whitespace but “:” found.
By giving a space/linefeed before Ref, this error will disappear, It will be great, if this can be handled by the plugin.
Example custom.new_companyRef: custom.member_id Ref without a space giving the error, So i’m manually adding spaces everywhere, in my DB around 180 spaces to be added (being smarter and using Find replace)
@ben13 - Love this plugin, and thank you for fixing the Ref line issue.
In the latest export, the plugin generated all table references with the prefix “custom.”, with the exception of the user table. This created a parser error in db diagram - we were able to manually fix all instances to read custom.user and that seemed to fix the issue.
Cheers,
Jon
Thanks @stuart4 I just fixed the user issue so that hack/work around should no longer be necessary. It should copy/paste as expected with no errors now.
@fede.bubble What do you think about proposing this to the Bubble team for official addition to the bubble editor? It seems like it would be easy enough and a nice out-of-the-box feature for users to be able to visually diagram their database?