aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoop Kiefte <ikojba@gmail.com>2023-09-28 03:50:21 +0100
committerJoop Kiefte <ikojba@gmail.com>2023-09-28 03:50:21 +0100
commit0ed7c1a7a9c149f388caa259b9c327651cf70d24 (patch)
treeffac87f2a1788ee8993421f1bef8ec1cbfa26b2b
parent911bc140934718dbcc1d18225ce9fd8085061a60 (diff)
Correct position of tablename refreshing
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 492a14e..6e89895 100644
--- a/main.go
+++ b/main.go
@@ -16,6 +16,7 @@ func main() {
var args []string
var noninteractive bool
var err error
+ var tables = ReadTableNames()
if len(os.Args) > 1 {
noninteractive = true
@@ -51,7 +52,6 @@ Running debby with any other arguments will run it as a dolt command.`
// Menu loop. 1. Run query 2. Edit a table 3. Execute Dolt command 4. Exit
for {
- tables := ReadTableNames()
// Execute choice
switch choice {
@@ -79,7 +79,7 @@ Running debby with any other arguments will run it as a dolt command.`
// Exit
return
}
-
+ tables = ReadTableNames() // Refresh table names
// If noninteractive, exit
if noninteractive {
return