TablePlus / diagram-plugin

111 stars 10 forks source link

Can the generated diagram include the comment and index? #14

Open xialvjun opened 4 years ago

xialvjun commented 4 years ago

And export to database also include the comment and index.

thien-do commented 4 years ago

The comment should be simple. There's actually a community PR for "comment" column in MySQL (merged) at #2

In fact it's all possible and the relevant code is in https://github.com/TablePlus/diagram-plugin/blob/8cfebeff47c74cddfe961096247fa67c0b893b97/diagram.tableplusplugin/library/helper.js (it's specific for each DB though)

I mean, eventually we will support many more columns, but if you don't want to wait you can do it yourself with a PR to this PR :D

thien-do commented 4 years ago

The "index" part may be a little bit more complicated. At the moment I'm not sure if it can be done solely here (this open-sourced "diagram-plugin") or it will require some changes in the diagram app. I'll take more look and update here :D