robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















read  source  history 


MongoDB Driver Function Reference



This documents lists the functions and keywords implemented in the robbiblubber.org MongoDB ADO.NET driver.
The driver implements a subset of MongoDB shell functions as well as driver-specific functionality, especially for using cursors on BSON documents. There may also be differences in function declarations and parameter usage in the functions derived from the MongoDB shell implementation.



Database commands


db Shows the current database.
show databases Shows a list of all databases in the cluster.
show collections Shows a list of all collections in the current database.
use switches the current database.



Database methods


aggregate() Runs an aggregation without a collection.
createCollection() Creates a collection.
createView() Creates a view.
dropCollection() Drops a collection.
dropDatabase() Drops a database.
getCollection() Gets a collection.
getName() Returns the database name.
getSiblingDB() Gets a database.
runCommand() Executes a database command.
serverStatus() Retrieves server status data.
stats() Retrieves storage statistics for a database.



Collection methods


aggregate() Runs an aggregation on a collection.
countDocuments() Returns the number of matching documents.
createIndex() Creates an index on the collection.
delete() Deletes documents from a collection.
deleteOne() Deletes a single document from a collection.
deleteMany() Deletes documents from a collection.
distinct() Retrieves distinct field values from a collection.
drop() Drops the collection.
dropAllIndexes() Drops all indexes on the collection.
dropIndex() Drops an index on the collection.
estimatedDocumentCount() Returns the count of all documents in a collection.
find() Retrieves documents from a collection.
findOne() Retrieves a single document from a collection.
findOneAndDelete() Deletes a single document based on filter and sort criteria.
findOneAndReplace() Replaces a single document based on the specified filter.
findOneAndUpdate() Updates a single document based on the specified filter.
getIndexes() Returns all indexes on the collection.
hideIndex() Hides an index.
index() Creates an index on the collection.
insert() Inserts documents into a collection.
insertOne() inserts a single document into a collection.
insertMany() Inserts documents into a collection.
remove() Removes documents from a collection.
replaceOne() Replaces a single document based on the specified filter.
stats() Retrieves storage statistics for a collection.
update() Updates documents in a collection.
updateOne() Updates a single document in a collection.
updateMany() Updates documents in a collection.
unhideIndex() Unhides an index.
validate() Validates collection and indexes.



Cursor methods


asc() Sorts the results ascending.
avg() Returns the average values for the selected rows.
count() Counts the results.
desc() Sorts the results descending.
distinct() Makes the results distinct.
first() Returns the first rows.
last() Returns the last rows.
limit() Restricts the number of rows returned.
max() Returns the maximum values for the selected rows.
min() Returns the minumum values for the selected rows.
orderBy() Sorts the results.
pretty() Formats BSON documents.
select() Selects fields into a table result.
sort() Sorts the results.
sum() Returns sums for the selected rows.




home | MongoDB Driver