From b5016bdc7ab43682244ddf222d14ffb64240d6ea 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