golazy.dev
–
golazy.dev
/
lazymigrate
/
fakemigrator
Index
|
Files
package fakemigrator ¶
import "golazy.dev/lazymigrate/fakemigrator"
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func New ¶
func New(applied ...string) *Backend
func (b *Backend) DumpSchema ¶
func (b *Backend) DumpSchema(context.Context) ([]byte, error)
func (b *Backend) List ¶
func (b *Backend) List(context.Context) ([]lazymigrate.BackendMigration, error)
func (b *Backend) LoadSchema ¶
func (b *Backend) LoadSchema(_ context.Context, schema []byte) error
func (b *Backend) Run ¶
func (b *Backend) Run(_ context.Context, step lazymigrate.Step) error
func (b *Backend) Runs ¶
func (b *Backend) Runs() []Run
func (b *Backend) Setup ¶
func (b *Backend) Setup(context.Context) error
func (b *Backend) SetupCount ¶
func (b *Backend) SetupCount() int
type Run ¶
type Run struct {
Step lazymigrate.Step
}
Package fakemigrator provides an in-memory lazymigrate backend for tests.