import "github.com/braindev/dbmigrate/adapter"
// NewPostgres(db *sql.DB) (*PostgresAdapter, error)
pgadapter, err := adapter.NewPostgres(db)
import "github.com/braindev/dbmigrate/adapter"
// NewMySQL(db *sql.DB) (*MySQLAdapter, error)
mysqladapter, err := adapter.NewMySQL(db)
To create a custom adapter implement the following interface:
type VendorAdapter interface {
GetAppliedMigrationsOrderedAsc() ([]string, error)
ApplyMigration(pair MigrationPair) error
RollbackMigration(pair MigrationPair) error
}