2009-03-06 16:56:02 -05:00
|
|
|
! Copyright (C) 2009 Your name.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: assocs help.markup help.syntax kernel quotations ;
|
|
|
|
IN: mongodb.driver
|
|
|
|
|
|
|
|
HELP: <mdb-collection>
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "name" "name of the collection" }
|
|
|
|
{ "collection" "mdb-collection instance" }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
2009-03-25 13:22:28 -04:00
|
|
|
{ $description "Creates a new mdb-collection instance. Use this to create capped/limited collections. See also: " { $link mdb-collection } }
|
|
|
|
{ $examples
|
|
|
|
{ $example "\"mycollection\" <mdb-collection> t >>capped" } } ;
|
2009-03-06 16:56:02 -05:00
|
|
|
|
2009-03-25 13:22:28 -04:00
|
|
|
HELP: <mdb>
|
2009-03-06 16:56:02 -05:00
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "db" "name of the database to use" }
|
|
|
|
{ "host" "host name or IP address" }
|
|
|
|
{ "port" "port number" }
|
|
|
|
{ "mdb" "mdb-db instance" }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
2009-03-25 13:22:28 -04:00
|
|
|
{ $description "Create a new mdb-db instance and automatically resolves master/slave information in a paired MongoDB setup." }
|
|
|
|
{ $examples
|
|
|
|
{ $example "\"db\" \"127.0.0.1\" 27017 <mdb>" } } ;
|
2009-03-06 16:56:02 -05:00
|
|
|
|
2009-03-25 13:22:28 -04:00
|
|
|
HELP: <query>
|
|
|
|
{ $values
|
|
|
|
{ "collection" "collection to query" }
|
|
|
|
{ "query" "query assoc" }
|
|
|
|
{ "mdb-query" "mdb-query-msg instance" }
|
|
|
|
}
|
|
|
|
{ $description "Creates a new mdb-query-msg instance. "
|
|
|
|
"This word must be called from within a with-db scope."
|
|
|
|
"For more see: "
|
|
|
|
{ $link with-db } }
|
|
|
|
{ $examples
|
|
|
|
{ $example "\"mycollection\" H{ } <query>" } } ;
|
|
|
|
|
|
|
|
HELP: <update>
|
2009-03-06 16:56:02 -05:00
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" "collection to update" }
|
|
|
|
{ "selector" "selector assoc (selects which object(s) to update" }
|
|
|
|
{ "object" "updated object or update instruction" }
|
|
|
|
{ "update-msg" "mdb-update-msg instance" }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
2009-03-25 13:22:28 -04:00
|
|
|
HELP: >upsert
|
2009-03-06 16:56:02 -05:00
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-update-msg" null }
|
|
|
|
{ "mdb-update-msg" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
2009-03-25 13:22:28 -04:00
|
|
|
{ $description "" } ;
|
2009-03-06 16:56:02 -05:00
|
|
|
|
|
|
|
HELP: DIRTY?
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
|
|
|
|
{ "value" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: MDB-GENERAL-ERROR
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
|
|
|
|
{ "value" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: PARTIAL?
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
|
|
|
|
{ "value" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: asc
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "key" null }
|
|
|
|
{ "spec" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: boolean
|
2009-03-25 13:22:28 -04:00
|
|
|
{ $var-description "" } ;
|
2009-03-06 16:56:02 -05:00
|
|
|
|
|
|
|
HELP: count
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "query" null }
|
|
|
|
{ "result" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: create-collection
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "name" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: delete
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "selector" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: delete-unsafe
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "selector" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: desc
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "key" null }
|
|
|
|
{ "spec" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: drop-collection
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "name" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: drop-index
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "name" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: ensure-collection
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "fq-collection" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: ensure-index
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "name" null }
|
|
|
|
{ "spec" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
2009-03-25 13:22:28 -04:00
|
|
|
HELP: explain.
|
2009-03-06 16:56:02 -05:00
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-query" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: find
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-query" null }
|
|
|
|
{ "cursor" null }
|
|
|
|
{ "result" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: find-one
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-query" null }
|
|
|
|
{ "result" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: get-more
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-cursor" null }
|
|
|
|
{ "mdb-cursor" null }
|
|
|
|
{ "objects" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: hint
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-query" null }
|
|
|
|
{ "index-hint" null }
|
|
|
|
{ "mdb-query" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: lasterror
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
|
|
|
|
{ "error" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: limit
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-query" null }
|
|
|
|
{ "limit#" null }
|
|
|
|
{ "mdb-query" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: load-collection-list
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
|
|
|
|
{ "collection-list" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: load-index-list
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
|
|
|
|
{ "index-list" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: mdb-collection
|
2009-03-25 13:22:28 -04:00
|
|
|
{ $var-description "" } ;
|
2009-03-06 16:56:02 -05:00
|
|
|
|
|
|
|
HELP: mdb-cursor
|
2009-03-25 13:22:28 -04:00
|
|
|
{ $var-description "" } ;
|
2009-03-06 16:56:02 -05:00
|
|
|
|
|
|
|
HELP: mdb-error
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "id" null }
|
|
|
|
{ "msg" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
2009-03-25 13:22:28 -04:00
|
|
|
HELP: r/
|
2009-03-06 16:56:02 -05:00
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "token" null }
|
|
|
|
{ "mdbregexp" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: save
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "assoc" assoc }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: save-unsafe
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
|
|
|
{ "object" object }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: skip
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-query" null }
|
|
|
|
{ "skip#" null }
|
|
|
|
{ "mdb-query" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: sort
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-query" null }
|
|
|
|
{ "quot" quotation }
|
|
|
|
{ "mdb-query" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: update
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-update-msg" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: update-unsafe
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb-update-msg" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
2009-03-25 13:22:28 -04:00
|
|
|
HELP: validate.
|
2009-03-06 16:56:02 -05:00
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "collection" null }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
HELP: with-db
|
|
|
|
{ $values
|
2009-03-25 13:22:28 -04:00
|
|
|
{ "mdb" null }
|
|
|
|
{ "quot" quotation }
|
2009-03-06 16:56:02 -05:00
|
|
|
}
|
|
|
|
{ $description "" } ;
|
|
|
|
|
|
|
|
ARTICLE: "mongodb.driver" "mongodb.driver"
|
|
|
|
{ $vocab-link "mongodb.driver" }
|
|
|
|
;
|
|
|
|
|
|
|
|
ABOUT: "mongodb.driver"
|
2009-03-25 13:22:28 -04:00
|
|
|
|