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: connect.go
    path of file: ./repos/corteza/server/store/adapters/rdbms/drivers/mysql
    
    the code of the file until where you have to start completion: package mysql

import (
	"context"
	"database/sql"
	"fmt"
	"strings"

	"github.com/cortezaproject/corteza/server/store/adapters/rdbms/dal"

	"github.com/cortezaproject/corteza/server/pkg/errors"
	"github.com/cortezaproject/corteza/server/pkg/logger"
	"github.com/cortezaproject/corteza/server/store"
	"github.com/cortezaproject/corteza/server/store/a
    
func txRetryErrHandler(try int, err error) bool {
	var (
		mysqlErr *mysql.MySQLError
		ok       bool
	)

	// unwrap errors until we find one comming from MySQL
	for errors.Unwrap(err) != nil {
		err = errors.Unwrap(err)

		mysqlErr, ok = err.(*mysql.MySQLError)
		if !ok || mysqlErr == nil {
			return false
		}

		if mysqlErr != nil {
			break
		}
	}

	switch mysqlErr.Number {
	case
		1205, // lock within transaction
		1206, // total number of locks exceeded the lock table size
		1208, // not allowed while thread is holding global read lock
		1213: // deadlock found
		return true

	}

	return false
}