1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-07-03 00:27:03 +02:00

chore: add comment

This commit is contained in:
Vladimir Mihailenco
2023-01-21 11:38:45 +02:00
parent 0f4c06861f
commit b5016bdc7a

View File

@ -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