Vocabularymongodb.
driverInputsindex-spec | an index specification |
OutputsNone
Word descriptionEnsures the existence of the given index. For more information on MongoDB indexes see:
https://www.mongodb.org/display/DOCS/IndexesExamplesUSING: mongodb.driver ;
"db" "127.0.0.1" 27017 <mdb>
[ "mycollection" nameIdx [ "name" asc ] keyspec <index-spec> ensure-index ] with-db
USING: mongodb.driver ;
"db" "127.0.0.1" 27017 <mdb>
[ "mycollection" nameIdx [ "name" asc ] keyspec <index-spec> t >>unique? ensure-index ] with-db
Definition