Documentation
¶
Overview ¶
Package migrations embeds SQL migration files into the Go binary. These migrations are used by the application to manage the database schema, ensuring it is always up-to-date.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
Functions ¶
func NewMigrator ¶
NewMigrator creates a new migrator instance from the embedded migration files. It initializes the migration engine using the embedded FS and connects it to the provided database path. dbPath should be the SQLite database file path (e.g., "/tmp/test.db") or ":memory:" for in-memory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.