(create-indexes db-namespace & args)
Creates one or more indexes Index name if not given = 'fieldName_type_fieldName_type' Call (create-indexes (index keys-vec option1 ...) (index ...) option1)
Creates one or more indexes Index name if not given = 'fieldName_type_fieldName_type' Call (create-indexes (index keys-vec option1 ...) (index ...) option1)
(create-view db-namespace new-view-name & args)
Creates a view View=predefined pipeline to run on the source collection They are not saved in memory or in disk,they are re-computed each time Can be used when many queries have a common starting part Takes the pipeline and 'creates' the view in the database of the source
Creates a view View=predefined pipeline to run on the source collection They are not saved in memory or in disk,they are re-computed each time Can be used when many queries have a common starting part Takes the pipeline and 'creates' the view in the database of the source
(current-op & args)
Like original command,just allows many maps as arguments that will be merged in 1 map option = $ownOps,$all,filter-operator,comment
Like original command,just allows many maps as arguments that will be merged in 1 map option = $ownOps,$all,filter-operator,comment
(drop-collection db-namespace & args)
Drops the collection and its indexes and its associated zone/tag ranges
Drops the collection and its indexes and its associated zone/tag ranges
(drop-index coll-namespace indexname-key-vec & options)
To drop one index Call (drop-index indexname-or-key-vec)
To drop one index Call (drop-index indexname-or-key-vec)
(drop-indexes db-namespace indexnames-key-vecs & options)
Drop specified indexes from the collection(except the index on id) Index name the manual or the auto-created name or use key-vec Index name if not given = 'fieldName_type_fieldName_type' To drop some = [indexname-or-key-vec indexname-or-key-vec ...] To drop all = '*' Call (drop-indexes ['myindex' [:afield :!bfield] 'afield_1_bfield-1']) (drop-indexes '*')
Drop specified indexes from the collection(except the index on _id) Index name the manual or the auto-created name or use key-vec Index name if not given = 'fieldName_type_fieldName_type' To drop some = [indexname-or-key-vec indexname-or-key-vec ...] To drop all = '*' Call (drop-indexes ['myindex' [:afield :!bfield] 'afield_1_bfield_-1']) (drop-indexes '*')
(index keys-vec & args)
Index definition,one create-index command can take one or many indexes Each index will be a member of :indexes [],see create-index command keys-vec = [:field1 :!field2 [:field3 1] [:field4 -1]...] keys-vec = [[:field1 'text']] ; for text index Index name if not given = 'fieldName_type_fieldName_type' Call (index [:field1 :!field2 ..])
Index definition,one create-index command can take one or many indexes Each index will be a member of :indexes [],see create-index command keys-vec = [:field1 :!field2 [:field3 1] [:field4 -1]...] keys-vec = [[:field1 'text']] ; for text index Index name if not given = 'fieldName_type_fieldName_type' Call (index [:field1 :!field2 ..])
(kill-cursors db-namespace & args)
arg = id cursor [id1 id2 cursor3 id4 ...] If some cursor is exchausted(cursor-id 0) it is excluded If all are exchausted ,command isn't sended at all Call (kill-cursors id1 cursor2 [cursor3 id4] id5 [cursor6]
arg = id cursor [id1 id2 cursor3 id4 ...] If some cursor is exchausted(cursor-id 0) it is excluded If all are exchausted ,command isn't sended at all Call (kill-cursors id1 cursor2 [cursor3 id4] id5 [cursor6]
(list-collections db-name & args)
Returns cursor with collection info
Returns cursor with collection info
(list-databases & args)
Returns 1 document with array that contains all the databases info
Returns 1 document with array that contains all the databases info
(list-indexes db-namespace & args)
Returns a cursor with the indexes(version name key(doc-definition) ns(db.collection))
Returns a cursor with the indexes(version name key(doc-definition) ns(db.collection))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close