goose

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package goose provides a MigrationDriver backed by pressly/goose/v3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver implements interfaces.MigrationDriver using pressly/goose.

func New

func New() *Driver

New returns a new goose Driver.

func (*Driver) Down

Down rolls back N migrations (Options.Steps, default 1).

func (*Driver) Goto

Goto migrates to the specified version.

func (*Driver) Name

func (d *Driver) Name() string

Name returns the driver name.

func (*Driver) Status

Status returns the current migration state.

func (*Driver) Up

Up applies all pending migrations.

Jump to

Keyboard shortcuts

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