Versions in this module Expand all Collapse all v1 v1.1.0 May 27, 2025 v1.0.9 May 22, 2025 Changes in this version + func Type__bool(f attrs.Field) string + func Type__datetime(f attrs.Field) string + func Type__float(f attrs.Field) string + func Type__int(f attrs.Field) string + func Type__string(f attrs.Field) string + func WriteColumn(w *strings.Builder, col migrator.Column) + type MySQLSchemaEditor struct + func NewMySQLSchemaEditor(db *sql.DB) *MySQLSchemaEditor + func (m *MySQLSchemaEditor) AddField(table migrator.Table, col migrator.Column) error + func (m *MySQLSchemaEditor) AddIndex(table migrator.Table, index migrator.Index) error + func (m *MySQLSchemaEditor) AlterField(table migrator.Table, oldCol, newCol migrator.Column) error + func (m *MySQLSchemaEditor) CreateTable(table migrator.Table) error + func (m *MySQLSchemaEditor) DropIndex(table migrator.Table, index migrator.Index) error + func (m *MySQLSchemaEditor) DropTable(table migrator.Table) error + func (m *MySQLSchemaEditor) Execute(ctx context.Context, query string, args ...any) (sql.Result, error) + func (m *MySQLSchemaEditor) HasMigration(appName, modelName, migrationName string) (bool, error) + func (m *MySQLSchemaEditor) RemoveField(table migrator.Table, col migrator.Column) error + func (m *MySQLSchemaEditor) RemoveMigration(appName, modelName, migrationName string) error + func (m *MySQLSchemaEditor) RenameIndex(table migrator.Table, oldName, newName string) error + func (m *MySQLSchemaEditor) RenameTable(table migrator.Table, newName string) error + func (m *MySQLSchemaEditor) Setup() error + func (m *MySQLSchemaEditor) StoreMigration(appName, modelName, migrationName string) error