func New(creds map[string][]byte) xsql.DB {
	endpoint := string(creds[xpv1.ResourceCredentialsSecretEndpointKey])
	port := string(creds[xpv1.ResourceCredentialsSecretPortKey])
	return mySQLDB{
		dsn: fmt.Sprintf("%s:%s@tcp(%s:%s)/",
			creds[xpv1.ResourceCredentialsSecretUserKey],
			creds[xpv1.ResourceCredentialsSecretPasswordKey],
			endpoint,
			port),
		endpoint: endpoint,
		port:     port,
	}
}
New returns a new MySQL database client.
package mysql
import (
	"context"
	"database/sql"
	"fmt"
	"strings"
	"github.com/crossplane-contrib/provider-sql/pkg/clients/xsql"
	"github.com/pkg/errors"
	xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
	"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
)
const (
	errNotSupported = "%s not supported by mysql client"
)
type mySQLDB struct {
	dsn      string
	endpoint string
	port     string
}