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



17
18
19
# File 'lib/patches/db/plucky.rb', line 17

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

#count_without_profilingObject



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

alias_method :count_without_profiling, :count

#find_each(*args, &blk) ⇒ Object



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

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

#find_each_without_profilingObject



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

alias_method :find_each_without_profiling, :find_each

#find_one(*args, &blk) ⇒ Object



13
14
15
# File 'lib/patches/db/plucky.rb', line 13

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

#find_one_without_profilingObject



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

alias_method :find_one_without_profiling, :find_one

#remove(*args, &blk) ⇒ Object



21
22
23
# File 'lib/patches/db/plucky.rb', line 21

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

#remove_without_profilingObject



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

alias_method :remove_without_profiling, :remove