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