goosedbversion

package
Version: v2.0.0-beta-001+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GooseDBVersionRecord

type GooseDBVersionRecord struct {
	VersionID int64 `json:"version_id"`
}

GooseDBVersionRecord - the version record in the database that Goose reads/writes

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

type Repository

type Repository interface {
	GetCurrentVersion() (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
t or T : Toggle theme light dark auto
y or Y : Canonical URL