https://github.com/mongodb/mongo
https://github.com/mongodb/mongo-go-driver
go get go.mongodb.org/mongo-driver/mongo
ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
cur, err := collection.Find(ctx, bson.D{})
if err != nil { log.Fatal(err) }
defer cur.Close(ctx)
for cur.Next(ctx) {
var result bson.D
err := cur.Decode(&result)
if err != nil { log.Fatal(err) }
// do something with result….
}
if err := cur.Err(); err != nil {
log.Fatal(err)
}
MongoHub is an application used to manage mongodb databases (locally or over the internet). It lets you add and remove databases and collections, change fields and indexes, view and filter the content of collections, add, edit and remove rows, perform custom queries and dump collections or entire databases.
https://www.oschina.net/p/mongohub
https://github.com/bububa/MongoHub-Mac
Studio 3T
官网下载地址:https://studio3t.com/download/
超过 100,000 的开发人员和数据库管理员使用 Studio 3T 作为 MongoDB GUI 的首选。Studio 3T 属于收费工具,30 天的免费试用期,Studio 3T 具有更多更强大的功能并提供企业支持服务,支持副本集、独立主机和分片集群连接,支持导入导出,SQL 查询,语法填充,支持 MongoDB 4.0+ 等等。适用于 Windows,macOS 和 Linux。
https://www.jianshu.com/p/05a6507598ca
https://robomongo.org/