package
0.0.2
Repository: https://github.com/codingjzy/manipulate.git
Documentation: pkg.go.dev

# Functions

CompileFilter compiles the given manipulate filter into a raw mongo filter.
CreateCollection creates a collection using the given mgo.CollectionInfo.
CreateIndex creates multiple mgo.Index for the collection storing info for the given identity using the given manipulator.
DoesDatabaseExist checks if the database used by the given manipulator exists.
DropDatabase drops the entire database used by the given manipulator.
GetDatabase returns a ready to use mgo.Database.
New returns a new manipulator backed by MongoDB.
NewMongoManipulator returns a new TransactionalManipulator backed by MongoDB.
OptionConnectionPoolLimit sets maximum size of the connection pool.
OptionConnectionTimeout sets the connection timeout.
OptionCredentials sets the username and password to use for authentication.
OptionDefaultReadConsistencyMode sets the default read consistency mode.
OptionDefaultWriteConsistencyMode sets the default write consistency mode.
OptionSharder sets the sharder.
OptionSocketTimeout sets the socket timeout.
OptionTLS sets the tls configuration for the connection.
SetConsistencyMode sets the mongo consistency mode of the mongo session.

# Interfaces

A Sharder is the interface of an object that can be use to manage sharding of resources.

# Type aliases

An Option represents a maniphttp.Manipulator option.