Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string
Port string
User string
Password string
DBName string
SSLMode string
}
Config holds database configuration
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator handles database migrations
func NewMigrator ¶
NewMigrator creates a new migrator instance
func (*Migrator) LoadMigrations ¶
LoadMigrations loads migration files from the migrations directory
func (*Migrator) MigrateDown ¶
MigrateDown rolls back the last migration
Click to show internal directories.
Click to hide internal directories.