sql

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OldMigrationRecord

type OldMigrationRecord struct {
	ID        string    `db:"id"`
	AppliedAt time.Time `db:"applied_at"`
}

this type is copied from sql-migrate to remove the dependency

type Persister

type Persister struct {
	// contains filtered or unexported fields
}

func NewPersister

func NewPersister(c *pop.Connection) (*Persister, error)

func (*Persister) Connection

func (p *Persister) Connection(_ context.Context) *pop.Connection

func (*Persister) MigrateDown

func (p *Persister) MigrateDown(_ context.Context, steps int) error

func (*Persister) MigrateUp

func (p *Persister) MigrateUp(_ context.Context) error

func (*Persister) MigrateUpTo

func (p *Persister) MigrateUpTo(_ context.Context, steps int) (int, error)

func (*Persister) MigrationStatus

func (p *Persister) MigrationStatus(_ context.Context, w io.Writer) error

func (*Persister) PrepareMigration

func (p *Persister) PrepareMigration(_ context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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