Versions in this module Expand all Collapse all v0 v0.1.0 Dec 6, 2018 Changes in this version + var ErrArrayFilters = errors.New("array filters cannot be set for server versions < 3.6") + var ErrCollation = errors.New("collation cannot be set for server versions < 3.4") + func AbortTransaction(ctx context.Context, cmd command.AbortTransaction, topo *topology.Topology, ...) (result.TransactionResult, error) + func Aggregate(ctx context.Context, cmd command.Aggregate, topo *topology.Topology, ...) (command.Cursor, error) + func BulkWrite(ctx context.Context, ns command.Namespace, models []WriteModel, ...) (result.BulkWrite, error) + func CommitTransaction(ctx context.Context, cmd command.CommitTransaction, topo *topology.Topology, ...) (result.TransactionResult, error) + func Count(ctx context.Context, cmd command.Count, topo *topology.Topology, ...) (int64, error) + func CountDocuments(ctx context.Context, cmd command.CountDocuments, topo *topology.Topology, ...) (int64, error) + func CreateIndexes(ctx context.Context, cmd command.CreateIndexes, topo *topology.Topology, ...) (result.CreateIndexes, error) + func Delete(ctx context.Context, cmd command.Delete, topo *topology.Topology, ...) (result.Delete, error) + func Distinct(ctx context.Context, cmd command.Distinct, topo *topology.Topology, ...) (result.Distinct, error) + func DropCollection(ctx context.Context, cmd command.DropCollection, topo *topology.Topology, ...) (bson.Raw, error) + func DropDatabase(ctx context.Context, cmd command.DropDatabase, topo *topology.Topology, ...) (bson.Raw, error) + func DropIndexes(ctx context.Context, cmd command.DropIndexes, topo *topology.Topology, ...) (bson.Raw, error) + func EndSessions(ctx context.Context, cmd command.EndSessions, topo *topology.Topology, ...) ([]result.EndSessions, []error) + func Find(ctx context.Context, cmd command.Find, topo *topology.Topology, ...) (command.Cursor, error) + func FindOneAndDelete(ctx context.Context, cmd command.FindOneAndDelete, topo *topology.Topology, ...) (result.FindAndModify, error) + func FindOneAndReplace(ctx context.Context, cmd command.FindOneAndReplace, topo *topology.Topology, ...) (result.FindAndModify, error) + func FindOneAndUpdate(ctx context.Context, cmd command.FindOneAndUpdate, topo *topology.Topology, ...) (result.FindAndModify, error) + func Insert(ctx context.Context, cmd command.Insert, topo *topology.Topology, ...) (result.Insert, error) + func KillCursors(ctx context.Context, cmd command.KillCursors, topo *topology.Topology, ...) (result.KillCursors, error) + func ListCollections(ctx context.Context, cmd command.ListCollections, topo *topology.Topology, ...) (command.Cursor, error) + func ListDatabases(ctx context.Context, cmd command.ListDatabases, topo *topology.Topology, ...) (result.ListDatabases, error) + func ListIndexes(ctx context.Context, cmd command.ListIndexes, topo *topology.Topology, ...) (command.Cursor, error) + func Read(ctx context.Context, cmd command.Read, topo *topology.Topology, ...) (bson.Raw, error) + func ReadCursor(ctx context.Context, cmd command.Read, topo *topology.Topology, ...) (command.Cursor, error) + func Update(ctx context.Context, cmd command.Update, topo *topology.Topology, ...) (result.Update, error) + func Write(ctx context.Context, cmd command.Write, topo *topology.Topology, ...) (bson.Raw, error) + type BulkWriteError struct + Model WriteModel + type BulkWriteException struct + WriteConcernError *result.WriteConcernError + WriteErrors []BulkWriteError + func (BulkWriteException) Error() string + type DeleteManyModel struct + Collation *options.Collation + Filter interface{} + type DeleteOneModel struct + Collation *options.Collation + Filter interface{} + type InsertOneModel struct + Document interface{} + type ReplaceOneModel struct + Filter interface{} + Replacement interface{} + type UpdateManyModel struct + ArrayFilters options.ArrayFilters + ArrayFiltersSet bool + Filter interface{} + Update interface{} + type UpdateModel struct + Collation *options.Collation + Upsert bool + UpsertSet bool + type UpdateOneModel struct + ArrayFilters options.ArrayFilters + ArrayFiltersSet bool + Filter interface{} + Update interface{} + type WriteModel interface