package
1.16.0
Repository: https://github.com/obalunenko/instadiff-cli.git
Documentation: pkg.go.dev

# Functions

BuildCollectionName constructs collection name.
Connect returns specific database connection.
ConnectForTesting returns a connection to a newly created database Test cleanup automatically drops the database and closes underlying connections.
SetUpMongoContainer starts up mongoDB docker container and returns reset closure func, that should be run after m.Run().

# Constants

EnvDBTestURI holds test database URI.

# Variables

ErrNoData returned when no data found in collection.

# Structs

ContainerParams holds mongo container parameters.
MongoParams represents mongo db configuration parameters.
Params used for DB constructor.

# Interfaces

DB represents database interaction contract.