Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// MongoDBVersion defines version to use
MongoDBVersion = "latest"
)
View Source
var (
// PostgreSQLVersion defines version to use
PostgreSQLVersion = "10"
)
Functions ¶
func ConnectToMongoDB ¶
func ConnectToMongoDB(ctx context.Context) (*mongowrapper.WrappedClient, error)
ConnectToMongoDB returns a MongoDB connection
Types ¶
type Configuration ¶
type Configuration struct { ConnectionString string DatabaseName string DatabaseUser string Password string }
Configuration represents database configuration settings
func ConnectToPostgreSQL ¶
ConnectToPostgreSQL returns a PostgreSQL connection form a container or a running instance
Click to show internal directories.
Click to hide internal directories.