Versions in this module Expand all Collapse all v1 v1.5.0 Jul 31, 2021 Changes in this version + type SQLiteDialect struct v1.3.0 Jan 16, 2021 Changes in this version type DbHistory + CheckSum string type MigrationScript + func (ms *MigrationScript) ForEach(f func(m MigrationScript) error) error v1.2.1 Dec 31, 2020 Changes in this version + func SetVersion(v string) v1.1.0 Jul 20, 2020 Changes in this version + const PACKAGE_JSON + const ParserClosed + const ParserDownBegin + const ParserStarted + const ParserUpBegin + const TIME_FORMAT + func Handle(command string, bundle SQLBundle) error + func OpenDBWithDriver(driver string, dbstring string) (*sql.DB, error) + func SetDialect(d string) error + func SetLogWriter(writer io.Writer) + type Argument struct + Artifact string + DBDriver string + DBString string + Filename string + Force bool + Group string + Password string + Repository string + Username string + Version string + WorkDir string + type Command struct + Command string + func ReadArgument() (cmd Command, err error) + type DbHistory struct + DepName string + DepVersion string + File string + Id int + Timestamp time.Time + Version string + func QueryDatabaseHistories(db *sql.DB) ([]DbHistory, error) + type DbVersion struct + Id int + Timestamp time.Time + Version string + func QueryDatabaseVersions(db *sql.DB) ([]DbVersion, error) + type MigrationSQL struct + AppVersion string + Artifact string + FileName string + FilePath string + Group string + Version string + type MigrationScript struct + AppVersion string + Artifact string + FileName string + FilePath string + Group string + Ignore bool + NextScript *MigrationScript + Version string + func (ms *MigrationScript) ListAll() + type OracleDialect struct + type PackageJSON struct + ArtifactId string + Dependencies []string + GroupId string + Version string + func ReadPackageJSON(file string) (config PackageJSON, err error) + type PostgresDialect struct + type SQLBundle struct + BuildDir string + Config *PackageJSON + ConfigFile string + DepsDir string + SourceDir string + WorkingDir string + func NewSQLBundle(arg Argument) (bundle SQLBundle, err error) + func (sb *SQLBundle) Clean() error + func (sb *SQLBundle) Create() error + func (sb *SQLBundle) Downgrade() error + func (sb *SQLBundle) Init() error + func (sb *SQLBundle) Install() error + func (sb *SQLBundle) ListMigrations() error + func (sb *SQLBundle) Pack() error + func (sb *SQLBundle) Publish() error + func (sb *SQLBundle) ReadVersion() string + func (sb *SQLBundle) Upgrade() error + type SQLDialect interface + func GetDialect() SQLDialect