contract

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package contract defines the migration driver contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	Status(ctx context.Context) (*Status, error)
	Migrate(ctx context.Context) error
	Rollback(ctx context.Context) error
	Fresh(ctx context.Context) error
}

type Status

type Status struct {
	Version    uint
	HasVersion bool
	Dirty      bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL