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
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_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
7 |
# File 'lib/patches/db/plucky.rb', line 7 alias_method :remove_without_profiling, :remove |