Exemple #1
0
func (s *MysqlTestSuite) SetupTest() {
	s.connection.Exec("DROP SCHEMA public CASCADE")
	s.connection.Exec("CREATE SCHEMA public")

	s.DriverTestSuite.Driver = mysql.New("mysql://" + CONNECTION_URL)
	s.DriverTestSuite.Reader = memory.NewMemoryReader(files)
}
Exemple #2
0
func (s *PostgresTestSuite) SetupTest() {
	s.connection.Exec("DROP SCHEMA public CASCADE")
	s.connection.Exec("CREATE SCHEMA public")

	s.DriverTestSuite.Driver = postgres.New(CONNECTION_URL)
	s.DriverTestSuite.Reader = memory.NewMemoryReader(files)
}
Exemple #3
0
func (s *ManagerTestSuite) SetupSuite() {
	var err error
	s.manager, err = NewManager(memory.NewMemoryReader(files))
	s.Nil(err, "can not read migration files")
}
Exemple #4
0
func (s *CassandraTestSuite) SetupTest() {
	s.DriverTestSuite.Driver = cassandra.New(CONNECTION_URL)
	s.DriverTestSuite.Reader = memory.NewMemoryReader(files)
}
Exemple #5
0
func (s *SqliteTestSuite) SetupSuite() {
	s.DriverTestSuite.Driver = sqlite3.New(CONNECTION_URL)
	s.DriverTestSuite.Reader = memory.NewMemoryReader(files)
}