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 ¶
func (p *PostgresGooseDBVersionRepository) GetCurrentVersion() (GooseDBVersionRecord, error)
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
Click to show internal directories.
Click to hide internal directories.