Documentation
¶
Index ¶
- 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
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Type__blob ¶
func Type__bool ¶
func Type__datetime ¶
func Type__decimal ¶
func Type__float ¶
func Type__string ¶
Types ¶
type SQLiteSchemaEditor ¶
type SQLiteSchemaEditor struct {
// contains filtered or unexported fields
}
func NewSQLiteSchemaEditor ¶
func NewSQLiteSchemaEditor(db drivers.Database) *SQLiteSchemaEditor
func (*SQLiteSchemaEditor) AlterField ¶
func (*SQLiteSchemaEditor) CreateTable ¶
func (*SQLiteSchemaEditor) HasMigration ¶
func (*SQLiteSchemaEditor) RemoveField ¶
func (*SQLiteSchemaEditor) RemoveMigration ¶
func (*SQLiteSchemaEditor) RenameIndex ¶
func (*SQLiteSchemaEditor) RenameTable ¶
func (*SQLiteSchemaEditor) StartTransaction ¶
func (m *SQLiteSchemaEditor) StartTransaction(ctx context.Context) (drivers.Transaction, error)
func (*SQLiteSchemaEditor) StoreMigration ¶
func (*SQLiteSchemaEditor) WriteColumn ¶
func (m *SQLiteSchemaEditor) WriteColumn(w *strings.Builder, col migrator.Column)
Click to show internal directories.
Click to hide internal directories.