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 + type SQLiteSchemaEditor struct + func NewSQLiteSchemaEditor(db *sql.DB) *SQLiteSchemaEditor + func (m *SQLiteSchemaEditor) AddField(table migrator.Table, col migrator.Column) error + func (m *SQLiteSchemaEditor) AddIndex(table migrator.Table, index migrator.Index) error + func (m *SQLiteSchemaEditor) AlterField(table migrator.Table, oldCol migrator.Column, newCol migrator.Column) error + func (m *SQLiteSchemaEditor) CreateTable(table migrator.Table) error + func (m *SQLiteSchemaEditor) DropIndex(table migrator.Table, index migrator.Index) error + func (m *SQLiteSchemaEditor) DropTable(table migrator.Table) error + func (m *SQLiteSchemaEditor) Execute(ctx context.Context, query string, args ...any) (sql.Result, error) + func (m *SQLiteSchemaEditor) HasMigration(appName string, modelName string, migrationName string) (bool, error) + func (m *SQLiteSchemaEditor) RemoveField(table migrator.Table, col migrator.Column) error + func (m *SQLiteSchemaEditor) RemoveMigration(appName string, modelName string, migrationName string) error + func (m *SQLiteSchemaEditor) RenameIndex(table migrator.Table, oldName string, newName string) error + func (m *SQLiteSchemaEditor) RenameTable(table migrator.Table, newName string) error + func (m *SQLiteSchemaEditor) Setup() error + func (m *SQLiteSchemaEditor) StoreMigration(appName string, modelName string, migrationName string) error + func (m *SQLiteSchemaEditor) WriteColumn(w *strings.Builder, col migrator.Column)