lib/mongo/db.rb
# Returns a cursor over query result hashes. Each hash contains a
# 'name' string and optionally an 'options' hash. If +coll_name+ is
# specified, an array of length 1 is returned.
Returns a cursor over query result hashes. Each hash contains a
'name' string and optionally an 'options' hash. If +coll_name+ is
specified, an array of length 1 is returned.
Returns a cursor over query result hashes . Each hash contains a ' name ' string and optionally an ' options ' hash . If + coll_name + is specified an array of length 1 is returned .
def collections_info(coll_name=nil)
          selector = {}
          selector[:name] = full_coll_name(coll_name) if coll_name
          query(Collection.new(self, SYSTEM_NAMESPACE_COLLECTION), Query.new(selector))
        end
def collections_info ( coll_name = nil ) selector = { } selector [ :name ] = full_coll_name ( coll_name ) if coll_name query ( Collection . new ( self , SYSTEM_NAMESPACE_COLLECTION ) , Query . new ( selector ) ) end
Returns a cursor over query result hashes.
Returns a cursor over query result hashes .
coll_name
<not_specific>