schema

package
v0.1.3-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UniqueFleetNameConstraint = "fleets_name_idx"
View Source
const UniqueGatewayNameInNamespaceConstraint = "unique_gateway_name_in_namespace"

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Name string
	Up   string
	Down string
}

type Migrator

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

func NewMigrator

func NewMigrator(conn *pgx.Conn) (*Migrator, error)

func (*Migrator) Info

func (m *Migrator) Info(ctx context.Context) (current int32, total int32, migrations []Migration, err error)

func (*Migrator) Migrate

func (m *Migrator) Migrate(ctx context.Context) error

func (*Migrator) MigrateTo

func (m *Migrator) MigrateTo(ctx context.Context, version int32) error

Jump to

Keyboard shortcuts

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