Versions in this module Expand all Collapse all v1 v1.7.4 Jul 8, 2026 Changes in this version + func Type__blob(c *migrator.Column) string + func Type__bool(c *migrator.Column) string + func Type__datetime(c *migrator.Column) string + func Type__decimal(c *migrator.Column) string + func Type__float(c *migrator.Column) string + func Type__int(c *migrator.Column) string + func Type__string(c *migrator.Column) string + type SQLiteSchemaEditor struct + func NewSQLiteSchemaEditor(db drivers.Database) *SQLiteSchemaEditor + func (m *SQLiteSchemaEditor) AddField(ctx context.Context, table migrator.Table, col migrator.Column) error + func (m *SQLiteSchemaEditor) AddIndex(ctx context.Context, table migrator.Table, index migrator.Index, ...) error + func (m *SQLiteSchemaEditor) AlterField(ctx context.Context, table migrator.Table, oldCol migrator.Column, ...) error + func (m *SQLiteSchemaEditor) CreateTable(ctx context.Context, table migrator.Table, ifNotExists bool) error + func (m *SQLiteSchemaEditor) DropIndex(ctx context.Context, table migrator.Table, index migrator.Index, ifExists bool) error + func (m *SQLiteSchemaEditor) DropTable(ctx context.Context, table migrator.Table, ifExists bool) error + func (m *SQLiteSchemaEditor) Execute(ctx context.Context, query string, args ...any) (sql.Result, error) + func (m *SQLiteSchemaEditor) HasMigration(ctx context.Context, appName string, modelName string, migrationName string) (bool, error) + func (m *SQLiteSchemaEditor) RemoveField(ctx context.Context, table migrator.Table, col migrator.Column) error + func (m *SQLiteSchemaEditor) RemoveMigration(ctx context.Context, appName string, modelName string, migrationName string) error + func (m *SQLiteSchemaEditor) RenameIndex(ctx context.Context, table migrator.Table, oldName string, newName string) error + func (m *SQLiteSchemaEditor) RenameTable(ctx context.Context, table migrator.Table, newName string) error + func (m *SQLiteSchemaEditor) Setup(ctx context.Context) error + func (m *SQLiteSchemaEditor) StartTransaction(ctx context.Context) (drivers.Transaction, error) + func (m *SQLiteSchemaEditor) StoreMigration(ctx context.Context, appName string, modelName string, migrationName string) error + func (m *SQLiteSchemaEditor) WriteColumn(w *strings.Builder, col migrator.Column)