This commit is contained in:
wangzihuacool 2022-11-25 09:39:57 +00:00
parent 3ee667a40e
commit ccf5b2e01d
2 changed files with 8 additions and 9 deletions

View File

@ -18,23 +18,23 @@ import (
)
const (
TLS_CONFIG_KEY = "ghost"
TLS_CONFIG_KEY = "ghost"
)
// ConnectionConfig is the minimal configuration required to connect to a MySQL server
type ConnectionConfig struct {
Key InstanceKey
User string
Password string
ImpliedKey *InstanceKey
tlsConfig *tls.Config
Timeout float64
Key InstanceKey
User string
Password string
ImpliedKey *InstanceKey
tlsConfig *tls.Config
Timeout float64
transactionIsolation string
}
func NewConnectionConfig(transactionIsolation string) *ConnectionConfig {
config := &ConnectionConfig{
Key: InstanceKey{},
Key: InstanceKey{},
transactionIsolation: transactionIsolation,
}
config.ImpliedKey = &config.Key

View File

@ -17,7 +17,6 @@ const (
transactionIsolation = "REPEATABLE-READ"
)
func init() {
log.SetLevel(log.ERROR)
}