Documentation
¶
Index ¶
- type Service
- func (s *Service) Close() error
- func (s *Service) Down(ctx context.Context) error
- func (s *Service) Drop(ctx context.Context) error
- func (s *Service) Force(ctx context.Context, version int) error
- func (s *Service) GetMigrationInfo(ctx context.Context) (*domain.MigrationInfo, error)
- func (s *Service) IsDirty(ctx context.Context) (bool, error)
- func (s *Service) Reset(ctx context.Context) error
- func (s *Service) Steps(ctx context.Context, n int) error
- func (s *Service) Up(ctx context.Context) error
- func (s *Service) Version(ctx context.Context) (uint, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides database migration operations
func NewService ¶
NewService creates a new migration service
func (*Service) Close ¶
Close implements the MigrationService interface but is a no-op for this service since connections are managed per-operation
func (*Service) GetMigrationInfo ¶
GetMigrationInfo returns information about migration status
func (*Service) Reset ¶
Reset drops all tables and re-runs all migrations WARNING: This operation is destructive and will delete all data
Click to show internal directories.
Click to hide internal directories.