Class: Plucky::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/db/plucky.rb

Overview

mongo_mapper patches TODO: Include overrides for distinct, update, cursor, and create

Instance Method Summary collapse

Instance Method Details

#count(*args, &blk) ⇒ Object



19
20
21
# File 'lib/patches/db/plucky.rb', line 19

def count(*args, &blk)
  profile_database_operation(__callee__, filtered_inspect(), *args, &blk)
end

#count_without_profilingObject



8
# File 'lib/patches/db/plucky.rb', line 8

alias_method :count_without_profiling, :count

#find_each(*args, &blk) ⇒ Object



11
12
13
# File 'lib/patches/db/plucky.rb', line 11

def find_each(*args, &blk)
  profile_database_operation(__callee__, filtered_inspect(), *args, &blk)
end

#find_each_without_profilingObject



6
# File 'lib/patches/db/plucky.rb', line 6

alias_method :find_each_without_profiling, :find_each

#find_one(*args, &blk) ⇒ Object



15
16
17
# File 'lib/patches/db/plucky.rb', line 15

def find_one(*args, &blk)
  profile_database_operation(__callee__, filtered_inspect(args[0]), *args, &blk)
end

#find_one_without_profilingObject



7
# File 'lib/patches/db/plucky.rb', line 7

alias_method :find_one_without_profiling, :find_one

#remove(*args, &blk) ⇒ Object



23
24
25
# File 'lib/patches/db/plucky.rb', line 23

def remove(*args, &blk)
  profile_database_operation(__callee__, filtered_inspect(), *args, &blk)
end

#remove_without_profilingObject



9
# File 'lib/patches/db/plucky.rb', line 9

alias_method :remove_without_profiling, :remove