Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestDB ¶
type TestDB struct {
// contains filtered or unexported fields
}
TestDB is a struct that contains the test database container and the DSN to connect to it.
func NewTestDB ¶
NewTestDB creates a new Test database (need docker to be installed and running). If waitDbForBeingReady is true, it will wait for the database to be ready to accept connections. It returns a pointer to a TestDB struct. The TestDB struct contains the test database container and the DSN to connect to it. Don't forget to call the Teardown method to clean up the resources.
Click to show internal directories.
Click to hide internal directories.