aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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