Skip to content

Commit

Permalink
Save selected db
Browse files Browse the repository at this point in the history
  • Loading branch information
lewissteele committed Dec 14, 2024
1 parent c355c88 commit 7224733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/db/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func Selected() string {

func Select(d string) {
Conn.Exec(fmt.Sprintf("use `%s`", d))
go updateSelected()
}

func Query(q string) ([]map[string]interface{}, error) {
Expand Down

0 comments on commit 7224733

Please sign in to comment.