Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct { Name string Code func(t Transaction) error Timestamp string // contains filtered or unexported fields }
Migration struct
type Migrator ¶
type Migrator struct { Migrations []Migration Log *slog.Logger // contains filtered or unexported fields }
Migrator type
func NewMigrator ¶
NewMigrator creates a new instance of Migrator
func (*Migrator) CountApplied ¶
CountApplied returns the number of already applied migrations
type Transaction ¶
Transaction exposes allowed database operations for migrations
Click to show internal directories.
Click to hide internal directories.