From 2f4c7cc3caead03bb66af175eb1d7ddb546e9c91 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 21 Jan 2023 11:38:45 +0200 Subject: [PATCH] chore: add comment --- chmigrate/migration.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chmigrate/migration.go b/chmigrate/migration.go index 57d1540..785c49c 100644 --- a/chmigrate/migration.go +++ b/chmigrate/migration.go @@ -45,6 +45,7 @@ func NewSQLMigrationFunc(fsys fs.FS, name string) MigrationFunc { } } +// Exec reads and executes the SQL migration in the f. func Exec(ctx context.Context, db *ch.DB, f io.Reader) error { scanner := bufio.NewScanner(f) var queries []string