models

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Version string
	Message string
	Applied bool
}

func NewSequentialMigration added in v0.3.0

func NewSequentialMigration(version uint64, message string) *Migration

func NewTimestampMigration added in v0.3.0

func NewTimestampMigration(version time.Time, message string) *Migration

func (*Migration) Name added in v0.3.0

func (m *Migration) Name() string

func (Migration) NormalizedMessage added in v0.8.0

func (m Migration) NormalizedMessage() string

NormalizedMessage gives back the Message in lowercase, leading and trailing whitespace removed, and spaces replaced with underscores.

Jump to

Keyboard shortcuts

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