mongo-ruby-driver/README

123 lines
2.9 KiB
Plaintext
Raw Normal View History

2008-12-02 01:20:00 +00:00
= Introduction
This is a simple pure-Ruby driver for the 10gen Mongo DB. For more information
about Mongo, see http://www.mongodb.org.
2008-12-04 21:38:04 +00:00
Note: this driver is still alpha quality. The API will change, as will the
data saved to the database (especially primary key values). Do *_not_* use this
for any production data.
2008-12-02 01:21:22 +00:00
2008-12-02 01:20:00 +00:00
= Demo
$ ruby examples/demo.rb
Mongo must be running, of course.
2008-12-02 01:21:22 +00:00
2008-12-02 01:20:00 +00:00
= Testing
$ rake test
The tests assume that the Mongo database is running on the default port.
2008-12-02 01:21:22 +00:00
2008-12-04 22:02:19 +00:00
= Documentation
$ rake rdoc
Then open the file doc/index.html. (I need to figure out where to put this on
the Web, or even how to publish this to the Wiki at
http://github.com/jimm/mongo-ruby-driver/wikis automatically.)
2008-12-02 15:45:02 +00:00
= The Code
Most of this code was transliterated from Geir Magnusson Jr's Java Mongo
driver, which can be found at
http://github.com/geir/mongo-java-driver/tree/master.
== Release Notes
2008-12-04 21:38:04 +00:00
I plan to remove the auto-generation of _id primary keys.
If you ran tests using code before release
2008-12-02 15:45:02 +00:00
http://github.com/jimm/mongo-ruby-driver/commit/4244f56ce6c7044a1ce096843eb991856422c0cc
then the DB API tests might fail the first time you run it. If that doesn't
clear up the failed test, you might have to delete your database. To do that,
type
$ rm /data/db/ruby-mongo-test*
2008-12-02 01:21:22 +00:00
= To Do
2008-12-08 20:27:20 +00:00
* Support more types: REGEX, etc.
* Study src/main/ed/db/{dbcollection,dbcursor,db}.js in the Babble code.
That's what I should be writing to.
2008-12-08 13:23:24 +00:00
* Capped collection support.
2008-12-04 21:25:51 +00:00
* More code comments. More text in this file.
* Rake task for rdoc generation.
* Remove default _id generation.
* Introduce optional per-database and per-collection PKInjector.
2008-12-02 01:21:22 +00:00
* Synchronization.
* More tests.
2008-12-02 12:22:32 +00:00
* Implement Admin.
* See FIXME in db test.
2008-12-02 01:21:22 +00:00
= Credits
Adrian Madrid, aemadrid@gmail.com
* examples/benchmarks.rb
* examples/irb.rb
2008-12-08 20:08:14 +00:00
* Modifications to examples/simple.rb
* Found plenty of bugs and missing features.
* Many other code suggestions and improvements.
2008-12-02 01:20:00 +00:00
= License
== Mongo Ruby Driver
Copyright (C) 2008 10gen Inc.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.
See http://www.gnu.org/licenses/ for a copy of the GNU Affero General Public
License.
== UUID
This driver uses the UUID generator by Assaf Arkin and Eric Hodel, which uses
the MIT license (see the top of the file lib/mongo/util/uuid.rb).
== MAC Address Finder
This driver uses the MAC address finder found at
http://codeforpeople.com/lib/ruby/macaddr/macaddr-1.0.0/lib/macaddr.rb, which
uses Ruby's license (see http://codeforpeople.com/lib/license.txt).
2008-12-04 21:44:21 +00:00
--
2008-12-02 01:20:00 +00:00
# Local Variables:
# mode:rdoc
# End:
2008-12-04 21:44:21 +00:00
++