Class: Plucky::Query
- Inherits:
-
Object
- Object
- Plucky::Query
- Defined in:
- lib/patches/db/plucky.rb
Overview
mongo_mapper patches TODO: Include overrides for distinct, update, cursor, and create
Instance Method Summary collapse
- #count(*args, &blk) ⇒ Object
- #count_without_profiling ⇒ Object
- #find_each(*args, &blk) ⇒ Object
- #find_each_without_profiling ⇒ Object
- #find_one(*args, &blk) ⇒ Object
- #find_one_without_profiling ⇒ Object
- #remove(*args, &blk) ⇒ Object
- #remove_without_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
9 |
# File 'lib/patches/db/plucky.rb', line 9 alias_method :remove_without_profiling, :remove |