You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mysql.go
    path of file: ./repos/risingwave/integration_tests/datagen/sink/mysql
    
    the code of the file until where you have to start completion: package mysql

import (
	"context"
	"database/sql"
	"datagen/sink"
	"fmt"

	_ "github.com/go-sql-driver/mysql"
)

type MysqlConfig struct {
	DbHost     str
    
func (p *MysqlSink) WriteRecord(ctx context.Context, format string, record sink.SinkRecord) error {
	// MySQL's INSERT INTO is compatible with Postgres's.
	query := record.ToPostgresSql()
	_, err := p.db.ExecContext(ctx, query)
	if err != nil {
		err = fmt.Errorf("failed to execute query '%s': %s", query, err)
	}
	return err
}