Documentation ¶ Index ¶ Variables func Migrate(db *sql.DB) error Constants ¶ This section is empty. Variables ¶ View Source var SqlFiles embed.FS Functions ¶ func Migrate ¶ func Migrate(db *sql.DB) error Migrate applies database migrations to the provided SQL database. It reads SQL migration files from the specified directory and executes them in order. The function returns an error if any migration fails to execute. Types ¶ This section is empty. Source Files ¶ View all Source files migrator.go Click to show internal directories. Click to hide internal directories.