Module: MongoImport
- Defined in:
- lib/mongo-import/version.rb,
lib/mongo-import/snapshot.rb
Defined Under Namespace
Classes: Snapshot
Constant Summary collapse
- VERSION =
"0.6.0"
Instance Method Summary collapse
Instance Method Details
#snapshot(expr, opts = {}) ⇒ Object
2 3 4 5 6 |
# File 'lib/mongo-import/snapshot.rb', line 2 def snapshot(expr, opts={}) db, collection = expr.split('.') opts = { db: db, collection: collection }.merge(opts) Snapshot.new(expr, opts).import end |