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 ¶
func (p *PostgresGooseDBVersionRepository) GetCurrentVersion() (api.GooseDBVersionRecord, error)
GetCurrentVersion - Returns the latest GooseDBVersionRecord
func (*PostgresGooseDBVersionRepository) List ¶
func (p *PostgresGooseDBVersionRepository) List() ([]*api.GooseDBVersionRecord, error)
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
Click to show internal directories.
Click to hide internal directories.