Documentation ¶
Index ¶
Constants ¶
View Source
const ( Psql = "postgres" Host = "localhost" Port = 5432 User = "postgres" Password = "changeme" DbName = "postgres" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Migration ¶
type Migration struct {
// contains filtered or unexported fields
}
Migration hold the database migration object to perform up/down on it.
func CreateMigration ¶
CreateMigration new migrations and connects to the selected database.
type PostgresqlSuite ¶
type PostgresqlSuite struct { suite.Suite DSN string DBConn *sql.DB Migration *Migration MigrationLocationFolder string DBName string }
func (*PostgresqlSuite) SetupSuite ¶
func (s *PostgresqlSuite) SetupSuite()
SetupSuite setup at the beginning of test
func (*PostgresqlSuite) SetupTest ¶
func (s *PostgresqlSuite) SetupTest()
func (*PostgresqlSuite) TearDownSuite ¶
func (s *PostgresqlSuite) TearDownSuite()
TearDownSuite teardown at the end of test
func (*PostgresqlSuite) TearDownTest ¶
func (s *PostgresqlSuite) TearDownTest()
Click to show internal directories.
Click to hide internal directories.