goosedbversion

package
v0.0.0-...-10da5ee Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresGooseDBVersionRepository

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

PostgresGooseDBVersionRepository is a PostgreSQL-backed Goose DB Version repository

func (*PostgresGooseDBVersionRepository) GetCurrentVersion

GetCurrentVersion - Returns the latest GooseDBVersionRecord

func (*PostgresGooseDBVersionRepository) List

List - Returns a list of all versions

type Repository

type Repository interface {
	GetCurrentVersion() (api.GooseDBVersionRecord, error)
	List() ([]*api.GooseDBVersionRecord, error)
}

Repository - the repository required to talk to this table of data

func NewPostgresGooseDBVersionRepository

func NewPostgresGooseDBVersionRepository(dcp *sql.DB) (Repository, error)

NewPostgresGooseDBVersionRepository will create a new instance of the PostgresInstanceRepository

Jump to

Keyboard shortcuts

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