Documentation ¶
Index ¶
- func FilterMigrationsByAppliedStatus(migrations []dbm.Migration, appliedStatus bool) []dbm.Migration
- func ParseMigrations(migrations []dbm.Migration) ([]types.ParsedMigration, error)
- func SearchDirectoryForMigrations(directory string) ([]dbm.Migration, error)
- func SetRelativeFilePathOnParsedMigrations(migrations []types.ParsedMigration, migrationsDir string) []types.ParsedMigration
- type DbMateClient
- type DbMateClientOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMigrations ¶
func ParseMigrations(migrations []dbm.Migration) ([]types.ParsedMigration, error)
func SetRelativeFilePathOnParsedMigrations ¶
func SetRelativeFilePathOnParsedMigrations(migrations []types.ParsedMigration, migrationsDir string) []types.ParsedMigration
Types ¶
type DbMateClient ¶
type DbMateClient struct {
// contains filtered or unexported fields
}
func NewDbMateClient ¶
func NewDbMateClient(ctx context.Context, opts DbMateClientOpts) (*DbMateClient, error)
func (*DbMateClient) SearchDatabaseForMigrations ¶
func (m *DbMateClient) SearchDatabaseForMigrations() ([]dbm.Migration, error)
type DbMateClientOpts ¶
Click to show internal directories.
Click to hide internal directories.