diff --git a/README.md b/README.md index 5730edf..e7ab509 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,53 @@ # Lqs -TUI database client app. \ No newline at end of file +TUI database client app. + +## Idea + +To have TUI client for DB viewer and editor. Should be possibilities to add many sources. +Will start with mysql, later should be added more engines + + +# Plan + +### Milestone 1 + +- [ ] connect to DB hardcoded +- [ ] query window +- [ ] result window +- [ ] navigate in result window +- [ ] copy value in result window +- [ ] edit value in result window + +### Milestone 2 + +- [ ] result window as tabs +- [ ] left/right navigation tabs in result window +- [ ] sort in result window +- [ ] filter in result window +- [ ] next/prev chunk of data +- [ ] change limit +- [ ] insert new row in result window + +### Milestone 3 + +- [ ] fzf switch result window tab +- [ ] fzf open table to result tab +- [ ] view table structure +- [ ] show key, nullable in result window +- [ ] edit table structure +- [ ] drop table + +### Milestone 4 + +- [ ] new DB connection +- [ ] DB connection selector +- [ ] preview result field in popup +- [ ] format preview popup in json +- [ ] format preview popup in serialized + +### Milestone 5 + +- [ ] sqlite driver +- [ ] postgresql driver +- [ ] open csv file diff --git a/client.go b/client.go index 66e77da..5afa84f 100644 --- a/client.go +++ b/client.go @@ -1,15 +1,12 @@ package main import ( - "fmt" "log" "github.com/gdamore/tcell/v2" ) func run() { - fmt.Println("Prade...") - var screen tcell.Screen var err error if screen, err = tcell.NewScreen(); err != nil { diff --git a/lqs.go b/main.go similarity index 100% rename from lqs.go rename to main.go