sqlectron-gui icon indicating copy to clipboard operation
sqlectron-gui copied to clipboard

Feature: GUI for managing table structure

Open bkjohnson opened this issue 8 years ago • 4 comments

Right now the GUI only shows me tables and columns and allows me to run my own queries, but it would be great if there was an interface for managing foreign keys, primary keys, default column values, etc. I think it could start out as something fairly simple, like right clicking a table could give you a context menu:

+ Add column
+ Rename Table
+ Drop Table

And right clicking a column could bring up a different context menu:

+ Rename column
+ Change type
+ Add Foreign Key

And each of these options would pop up a modal which would allow you to choose values to be plugged into the specific query.

bkjohnson avatar Dec 10 '16 00:12 bkjohnson

There is already something similar, when you click on a table you get a context menu with automatically generated scripts for altering the table. I considered enhancing it with additional features you mentioned, but was never really high priority. Since there are examples in a code how to make context menu, and how to generate custom SQL scripts in sqlectron-core, I highly encourage you to try implement it yourself and possible make a pull request ;) Shouldn't be too complicated.

BornaP avatar Dec 11 '16 10:12 BornaP

Sorry for the late reply, I've been very busy lately. I should have some free time in the next two weeks or so, so I'll work on a PR.

bkjohnson avatar Dec 21 '16 15:12 bkjohnson

@BornaP the only options on context menu of tables are:

  • Create
  • Select
  • Insert
  • Update
  • (and) Delete there is no ALTER TABLE option...

antonioolf avatar Jun 16 '17 17:06 antonioolf

Still missing feature. Would be really great to have it.

itma avatar Jul 29 '20 07:07 itma