db_test

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongo

func NewMongo(pool *dockertest.Pool) (*mongoDocker, error)

func NewMySQL

func NewMySQL(pool *dockertest.Pool) (*mySQL, error)

func NewPG

func NewPG(pool *dockertest.Pool) (*pgDocker, error)

func NewRedis

func NewRedis(pool *dockertest.Pool) (*redisDocker, error)

func PrepareMongoDB

func PrepareMongoDB(t *testing.T) (db *mongo.Database, teardown func() error)

func PrepareMySQLDB

func PrepareMySQLDB(t *testing.T) (db *sql.DB, teardown func() error)

func PreparePostgresDB

func PreparePostgresDB(t *testing.T) (db *sql.DB, teardown func() error)

func PrepareRedisDB

func PrepareRedisDB(t *testing.T, db int) (cli *redis.Client, teardown func() error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL