11 lines
224 B
Ruby
11 lines
224 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
require File.join(File.dirname(__FILE__), '_common.rb')
|
|
db = Connection.new(DEFAULT_HOST, DEFAULT_PORT).db(DEFAULT_DB)
|
|
|
|
if $DEBUG
|
|
db.drop_collection('test')
|
|
end
|
|
|
|
db.collection('test').insert('a' => 2)
|