MCPcopy
hub / github.com/github/gh-ost / NewConnectionConfig

Function NewConnectionConfig

go/mysql/connection.go:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36func NewConnectionConfig() *ConnectionConfig {
37 config := &ConnectionConfig{
38 Key: InstanceKey{},
39 }
40 config.ImpliedKey = &config.Key
41 return config
42}
43
44// DuplicateCredentials creates a new connection config with given key and with same credentials as this config
45func (con *ConnectionConfig) DuplicateCredentials(key InstanceKey) *ConnectionConfig {

Callers 7

NewMigrationContextFunction · 0.92
getTestConnectionConfigFunction · 0.92
TestNewConnectionConfigFunction · 0.85
TestDuplicateCredentialsFunction · 0.85
TestDuplicateFunction · 0.85
TestGetDBUriFunction · 0.85
TestGetDBUriWithTLSSetupFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestNewConnectionConfigFunction · 0.68
TestDuplicateCredentialsFunction · 0.68
TestDuplicateFunction · 0.68
TestGetDBUriFunction · 0.68
TestGetDBUriWithTLSSetupFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…