1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! The Avocado prelude provides re-exports of the most commonly used traits
//! and types for convenience, including ones from crates `bson` and `mongodb`.

pub use crate::{
    db::DatabaseExt,
    coll::Collection,
    doc::Doc,
    uid::Uid,
    ops::*,
    ext::*,
    literal::{ IndexType, Order, BsonType },
    error::Error as AvocadoError,
    error::ErrorKind as AvocadoErrorKind,
    error::Result as AvocadoResult,
};
pub use bson::{ Bson, Document, oid::ObjectId, doc, bson };
pub use mongodb::{
    Client, ThreadedClient,
    db::Database,
    coll::options::{
        IndexModel, IndexOptions, FindOptions,
        FindOneAndUpdateOptions, ReturnDocument,
    },
};