Struct cudb::db::Collection [−][src]
pub struct Collection { /* fields omitted */ }
Expand description
User API for collection-level actions.
Implementations
Insert one document.
Insert a vector of documents.
Fetch at most one document matching the query.
Fetch a vector of documents matching the query.
Update at most one document that matches the query.
Update all documents matching the query.
Delete at most one document that matches the query.
Delete all documents that match the query.
Create a collection from a path.
Get the collection’s underlying pool mutably.
Create a B-tree index on a list of fields in the collection. If a document doesn’t have a field, will use the default value instead.
Add a document to all existing indices. If any Index is invalid, return without inserting any Index.
Get all indices created on this Collection.
Get the Index Schema that most closely matches the provided Constraints. Only Index Schemas that fully match the Constraints will be considered.