Sha256: 8e88a3bea199147b845de272cce6a586856b2592166abe16697139d37f5f81f2
Contents?: true
Size: 240 Bytes
Versions: 16
Compression:
Stored size: 240 Bytes
Contents
require 'mongo' class DataStore def initialize @@mongo_db ||= Mongo::MongoClient.new("localhost", 27017) @@db ||= @@mongo_db.db("development") end def query(collection, query) @@db[collection].find(query).to_a end end
Version data entries
16 entries across 16 versions & 1 rubygems