Module: Querrel
- Defined in:
- lib/querrel.rb,
lib/querrel/version.rb,
lib/querrel/map_reduce.rb,
lib/querrel/querreller.rb,
lib/querrel/static_pool.rb,
lib/querrel/connection_resolver.rb
Defined Under Namespace
Modules: MapReduce
Classes: ConnectionResolver, Querreller, StaticPool
Constant Summary
collapse
- VERSION =
"1.4.0"
Class Method Summary
collapse
Class Method Details
.map(scope, opts, &blk) ⇒ Object
14
15
16
|
# File 'lib/querrel.rb', line 14
def map(scope, opts, &blk)
Querreller.new(opts.delete(:on), opts).map(scope, &blk)
end
|
.new(dbs) ⇒ Object
6
7
8
|
# File 'lib/querrel.rb', line 6
def new(dbs)
Querreller.new(dbs)
end
|
.query(scope, opts, &blk) ⇒ Object
10
11
12
|
# File 'lib/querrel.rb', line 10
def query(scope, opts, &blk)
Querreller.new(opts.delete(:on), opts).query(scope, &blk)
end
|
.run(opts, &blk) ⇒ Object
18
19
20
|
# File 'lib/querrel.rb', line 18
def run(opts, &blk)
Querreller.new(opts.delete(:on), opts).run(&blk)
end
|