forked from mikejs/gomongo
-
Notifications
You must be signed in to change notification settings - Fork 1
Go driver for MongoDB
License
patrickxb/gomongo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Example usage: import "mongo" doc, _ := mongo.Marshal(map[string]string{"_id": "doc1", "title": "A Mongo document", "content": "Testing, 1. 2. 3."}); conn, _ := mongo.Connect("127.0.0.1", 27017); collection := conn.GetDB("test").GetCollection("test_collection"); collection.Insert(doc); query, _ := mongo.Marshal(map[string]string{"_id": "doc1"}); got, _ := collection.FindOne(query); mongo.Equal(doc, got); // true! collection.Drop();
About
Go driver for MongoDB
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 100.0%