Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

sqlmig

go get -u github.com/codemodus/sqlmig

Usage

typeDataProvidertypeRegularizertypeResultfunc (r*Result) Err() errorfunc (r*Result) String() stringfunc (r*Result) Total() inttypeResultsfunc (rsResults) Errs() []errorfunc (rsResults) ErrsErr() errorfunc (rsResults) HasError() boolfunc (rsResults) String() stringfunc (rsResults) Total() inttypeSQLMigfuncNew(db*sql.DB, driver, tablePrefixstring) (*SQLMig, error)
func (m*SQLMig) AddDataProviders(ps...DataProvider)
func (m*SQLMig) AddRegularizers(rs...Regularizer)
func (m*SQLMig) Migrate() Resultsfunc (m*SQLMig) Regularize(ctxcontext.Context) errorfunc (m*SQLMig) RollBack() Results
typeDataProviderinterface {
MigrationData() (namestring, datamap[string][]byte)
}
typeRegularizerinterface {
Regularize(context.Context) error
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages