Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
func Migrate(schemas []string, dbtyp config.DBType, cfg *DatabaseConfig, opt *MigrateOption) (migrated bool, err error)
Migrate applies the schema changes to the database. It returns true if any changes were applied (or would be applied in dry-run mode), and false if the database schema is already up-to-date.
Types ¶
type DatabaseConfig ¶
type MigrateOption ¶
type SchemaDumper ¶
type SchemaDumper struct {
// contains filtered or unexported fields
}
func NewSchemaDumper ¶
func NewSchemaDumper() (*SchemaDumper, error)
func (*SchemaDumper) Close ¶
func (s *SchemaDumper) Close() (err error)
Click to show internal directories.
Click to hide internal directories.