Skip to content

Commit

Permalink
fix(mongodb): Fix table completions in versions without mongosh
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 19, 2023
1 parent 05d1706 commit 5574c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/dialect/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (MongoDB) ListDatabasesQuery() string {
}

func (MongoDB) ListTablesQuery() string {
return "show collections"
return "db.getCollectionNames().forEach(function(collection){ print(collection) })"
}

func (MongoDB) UserEnvNames() []string {
Expand Down

0 comments on commit 5574c85

Please sign in to comment.