Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProviderProductionSet provides a SchemaMigrationRepo for use in production. ProviderProductionSet = wire.NewSet(Provide, wire.Bind(new(domain.SchemaMigrationRepo), new(*SchemaMigrationRepo))) )
Functions ¶
This section is empty.
Types ¶
type SchemaMigrationRepo ¶
SchemaMigrationRepo is a repository that holds information about SchemaMigrations backed by a database.
func Provide ¶
func Provide(manager *database.Manager) *SchemaMigrationRepo
Provide returns a SchemaMigrationRepo configured with the provided Manager.
func (*SchemaMigrationRepo) GetSchemaMigration ¶
func (s *SchemaMigrationRepo) GetSchemaMigration() (*domain.SchemaMigration, error)
GetSchemaMigration gets the first SchemaMigration that is stored in the database.
func (*SchemaMigrationRepo) GetSchemaMigrationByVersion ¶
func (s *SchemaMigrationRepo) GetSchemaMigrationByVersion(version int) (migration *domain.SchemaMigration, err error)
GetSchemaMigrationByVersion retrieves the SchemaMigration by the given version.
Click to show internal directories.
Click to hide internal directories.