Documentation
¶
Overview ¶
A very lightweigh migration tool to replace `ent.Schema.Create` calls.
Index ¶
Constants ¶
View Source
const IgnoreMarker = "-- migration:ignore"
View Source
const (
MigrationsTable = "schema_om"
)
Variables ¶
View Source
var ErrNoChange = migrate.ErrNoChange
View Source
var OMMigrations embed.FS
Functions ¶
func SetMigrationTableName ¶
Types ¶
type SourceWrapper ¶
type SourceWrapper struct {
// contains filtered or unexported fields
}
func NewSourceWrapper ¶
func NewSourceWrapper(fsys fs.FS) *SourceWrapper
Click to show internal directories.
Click to hide internal directories.