Documentation
¶
Index ¶
- 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
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Type__bool ¶
func Type__datetime ¶
func Type__float ¶
func Type__string ¶
Types ¶
type SQLiteSchemaEditor ¶
type SQLiteSchemaEditor struct {
// contains filtered or unexported fields
}
func NewSQLiteSchemaEditor ¶
func NewSQLiteSchemaEditor(db *sql.DB) *SQLiteSchemaEditor
func (*SQLiteSchemaEditor) AlterField ¶
func (*SQLiteSchemaEditor) CreateTable ¶
func (m *SQLiteSchemaEditor) CreateTable(table migrator.Table) error
func (*SQLiteSchemaEditor) DropTable ¶
func (m *SQLiteSchemaEditor) DropTable(table migrator.Table) error
func (*SQLiteSchemaEditor) HasMigration ¶
func (*SQLiteSchemaEditor) RemoveField ¶
func (*SQLiteSchemaEditor) RemoveMigration ¶
func (m *SQLiteSchemaEditor) RemoveMigration(appName string, modelName string, migrationName string) error
func (*SQLiteSchemaEditor) RenameIndex ¶
func (*SQLiteSchemaEditor) RenameTable ¶
func (m *SQLiteSchemaEditor) RenameTable(table migrator.Table, newName string) error
func (*SQLiteSchemaEditor) Setup ¶
func (m *SQLiteSchemaEditor) Setup() error
func (*SQLiteSchemaEditor) StoreMigration ¶
func (m *SQLiteSchemaEditor) StoreMigration(appName string, modelName string, migrationName string) error
func (*SQLiteSchemaEditor) WriteColumn ¶
func (m *SQLiteSchemaEditor) WriteColumn(w *strings.Builder, col migrator.Column)
Click to show internal directories.
Click to hide internal directories.