Class: Faststep::Collection
- Inherits:
-
Object
- Object
- Faststep::Collection
- Defined in:
- lib/faststep/collection.rb,
ext/faststep/collection.c
Instance Attribute Summary collapse
- #name ⇒ Object readonly
Instance Method Summary collapse
- #count ⇒ Object
- #create_index ⇒ Object
- #drop ⇒ Object
- #find ⇒ Object
- #find_one ⇒ Object
- #index_information ⇒ Object
- #initialize ⇒ Object constructor
- #insert ⇒ Object
- #ns ⇒ Object
- #remove ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize ⇒ Object
Instance Attribute Details
#name ⇒ Object (readonly)
Instance Method Details
#count ⇒ Object
#create_index ⇒ Object
#drop ⇒ Object
#find ⇒ Object
#find_one ⇒ Object
#index_information ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/faststep/collection.rb', line 3 def index_information info = {} @db["system.indexes"].find({:ns => ns}).each do |index| info[index['name']] = index end info end |