signoz/pkg/sqlmigrator/sqlmigrator.go

15 lines
404 B
Go
Raw Normal View History

package sqlmigrator
import (
"context"
)
// SQLMigrator is the interface for the SQLMigrator.
type SQLMigrator interface {
// Migrate migrates the database. Migrate acquires a lock on the database and runs the migrations.
Migrate(context.Context) error
2025-07-20 16:36:23 +05:30
// Rollback rolls back the database. Rollback acquires a lock on the database and rolls back the migrations.
Rollback(context.Context) error
}