Skip to content
This repository has been archived by the owner on May 11, 2019. It is now read-only.

Commit

Permalink
Development is discontinued
Browse files Browse the repository at this point in the history
  • Loading branch information
edsrzf committed Mar 15, 2011
1 parent fa1f653 commit fec3244
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 675 deletions.
25 changes: 0 additions & 25 deletions LICENSE

This file was deleted.

16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

54 changes: 3 additions & 51 deletions README.md
@@ -1,55 +1,7 @@
Mongogo
=======

Mongogo is a MongoDB driver for the [Go programming language](http://golang.org/).
Mongogo was a MongoDB driver for the [Go programming language](http://golang.org/).

This project is still in development. It's been tested on Arch and Ubuntu Linux for
the amd64 architecture, but there's no reason it shouldn't work on other architectures
as well.

Dependencies
------------

Mongogo compiles with Go release 2010-10-27 or newer, barring any recent language or
library changes.

Mongogo works with MongoDB version 2.6 or newer. It may partially work with older versions.

Mongogo's only non-core Go dependency is [Go-BSON](go-bson).
You can install it with goinstall by running
goinstall github.com/edsrzf/go-bson

Usage
-----

Create a connection:

conn := mongo.Dial("127.0.0.1:27017")

Get a database:

db := conn.Database("blog")

Get a collection:

col := db.Collection("posts")

Insert a document into the collection:

doc := map[string]interface{}{"title": "Hello", "body": "World!"}
col.Insert(doc)

Query the database:

q := mongo.Query{"title": "Hello"}
cursor := col.Find(q, 0, 0)
defer cursor.Close()

See the documentation in the source for more information.

Contributing
------------

Simply use GitHub as usual to create a fork, make your changes, and create a pull
request. Code is expected to be formatted with gofmt and to adhere to the usual Go
conventions -- that is, the conventions used by Go's core libraries.
Development has ceased in favor of [Gustavo Niemeyer's mgo](http://labix.org/mgo).
The history remains here intact for posterity.
224 changes: 0 additions & 224 deletions collection.go

This file was deleted.

0 comments on commit fec3244

Please sign in to comment.