I hereby claim:
- I am mdirolf on github.
- I am mdirolf (https://keybase.io/mdirolf) on keybase.
- I have a public key whose fingerprint is C16B E0A1 472C AE1A 0044 D0C9 ABB0 0EC7 1F5B 997F
To claim this, I am signing this object:
require 'rubygems' | |
require 'mongo' | |
require 'pp' | |
host = ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost' | |
port = ENV['MONGO_RUBY_DRIVER_PORT'] || XGen::Mongo::Driver::Mongo::DEFAULT_PORT | |
puts "Connecting to #{host}:#{port}" | |
db = XGen::Mongo::Driver::Mongo.new(host, port).db('jon') | |
coll = db.collection('test') |
> db.test.find() | |
> db.test.update({foo: 1, bar: 2}, {$set: {}}, true); | |
> db.test.find() | |
{ "_id" : ObjectId("4c3649f8dd24e71e36ca6f69"), "bar" : 2, "foo" : 1 } | |
> db.test.update({foo: 1, bar: 2}, {$set: {}}, true); | |
> db.test.find() | |
{ "_id" : ObjectId("4c3649f8dd24e71e36ca6f69"), "bar" : 2, "foo" : 1 } | |
> db.test.update({foo: 1}, {$set: {}}, true); | |
> db.test.find() | |
{ "_id" : ObjectId("4c3649f8dd24e71e36ca6f69"), "bar" : 2, "foo" : 1 } |
I hereby claim:
To claim this, I am signing this object: