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.

Fetch all documents from collection.

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.

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.

Close collection and underlying file pointers.

Drop collection.

Get the Index Schema that most closely matches the provided Constraints. Only Index Schemas that fully match the Constraints will be considered.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.