factor/mongodb/driver/driver-docs.factor

296 lines
4.6 KiB
Factor
Raw Normal View History

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
{ "name" "name of the collection" }
{ "collection" "mdb-collection instance" }
2009-03-06 16:56:02 -05: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
HELP: <mdb>
2009-03-06 16:56:02 -05:00
{ $values
{ "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
}
{ $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
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
{ "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 "" } ;
HELP: >upsert
2009-03-06 16:56:02 -05:00
{ $values
{ "mdb-update-msg" null }
{ "mdb-update-msg" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
2009-03-06 16:56:02 -05:00
HELP: DIRTY?
{ $values
{ "value" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: MDB-GENERAL-ERROR
{ $values
{ "value" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: PARTIAL?
{ $values
{ "value" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: asc
{ $values
{ "key" null }
{ "spec" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: boolean
{ $var-description "" } ;
2009-03-06 16:56:02 -05:00
HELP: count
{ $values
{ "collection" null }
{ "query" null }
{ "result" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: create-collection
{ $values
{ "name" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: delete
{ $values
{ "collection" null }
{ "selector" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: delete-unsafe
{ $values
{ "collection" null }
{ "selector" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: desc
{ $values
{ "key" null }
{ "spec" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: drop-collection
{ $values
{ "name" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: drop-index
{ $values
{ "collection" null }
{ "name" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: ensure-collection
{ $values
{ "collection" null }
{ "fq-collection" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: ensure-index
{ $values
{ "collection" null }
{ "name" null }
{ "spec" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: explain.
2009-03-06 16:56:02 -05:00
{ $values
{ "mdb-query" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: find
{ $values
{ "mdb-query" null }
{ "cursor" null }
{ "result" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: find-one
{ $values
{ "mdb-query" null }
{ "result" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: get-more
{ $values
{ "mdb-cursor" null }
{ "mdb-cursor" null }
{ "objects" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: hint
{ $values
{ "mdb-query" null }
{ "index-hint" null }
{ "mdb-query" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: lasterror
{ $values
{ "error" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: limit
{ $values
{ "mdb-query" null }
{ "limit#" null }
{ "mdb-query" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: load-collection-list
{ $values
{ "collection-list" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: load-index-list
{ $values
{ "index-list" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: mdb-collection
{ $var-description "" } ;
2009-03-06 16:56:02 -05:00
HELP: mdb-cursor
{ $var-description "" } ;
2009-03-06 16:56:02 -05:00
HELP: mdb-error
{ $values
{ "id" null }
{ "msg" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: r/
2009-03-06 16:56:02 -05:00
{ $values
{ "token" null }
{ "mdbregexp" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: save
{ $values
{ "collection" null }
{ "assoc" assoc }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: save-unsafe
{ $values
{ "collection" null }
{ "object" object }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: skip
{ $values
{ "mdb-query" null }
{ "skip#" null }
{ "mdb-query" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: sort
{ $values
{ "mdb-query" null }
{ "quot" quotation }
{ "mdb-query" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: update
{ $values
{ "mdb-update-msg" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: update-unsafe
{ $values
{ "mdb-update-msg" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: validate.
2009-03-06 16:56:02 -05:00
{ $values
{ "collection" null }
2009-03-06 16:56:02 -05:00
}
{ $description "" } ;
HELP: with-db
{ $values
{ "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"