Liking cljdoc? Tell your friends :D

cmql-core.administration


create-collectionclj/s

(create-collection db-namespace & args)
source

create-defclj/s

source

create-indexclj/s

(create-index coll-namespace index & options)
source

create-indexesclj/s

(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)
sourceraw docstring

create-indexes-defclj/s

source

create-viewclj/s

(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
sourceraw docstring

current-opclj/s

(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
sourceraw docstring

drop-collectionclj/s

(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
sourceraw docstring

drop-databaseclj/s

(drop-database db-name & args)
source

drop-database-defclj/s

source

drop-defclj/s

source

drop-indexclj/s

(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)
sourceraw docstring

drop-indexesclj/s

(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 '*')
 
sourceraw docstring

drop-indexes-defclj/s

source

get-index-nameclj/s

(get-index-name index-sorted-map)
source

indexclj/s

(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 ..]) 
sourceraw docstring

kill-cursorsclj/s

(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]
sourceraw docstring

kill-cursors-defclj/s

source

kill-opclj/s

(kill-op opid-number & args)
source

list-collectionsclj/s

(list-collections db-name & args)

Returns cursor with collection info

Returns cursor with collection info
sourceraw docstring

list-collections-defclj/s

source

list-databasesclj/s

(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
sourceraw docstring

list-databases-defclj/s

source

list-indexesclj/s

(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))
sourceraw docstring

rename-collectionclj/s

(rename-collection source-db-namespace target-db-namespace & args)
source

rename-collection-defclj/s

source

shutdown-databaseclj/s

(shutdown-database & args)
source

shutdown-defclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close