MCPcopy
hub / github.com/go-sql-driver/mysql / newConnector

Function newConnector

connector.go:57–63  ·  view source on GitHub ↗
(cfg *Config)

Source from the content-addressed store, hash-verified

55}
56
57func newConnector(cfg *Config) *connector {
58 encodedAttributes := encodeConnectionAttributes(cfg)
59 return &connector{
60 cfg: cfg,
61 encodedAttributes: encodedAttributes,
62 }
63}
64
65// Connect implements driver.Connector interface.
66// Connect returns a connection to the database.

Callers 5

newRWMockConnFunction · 0.85
OpenMethod · 0.85
NewConnectorFunction · 0.85
OpenConnectorMethod · 0.85

Calls 1

Tested by 2

newRWMockConnFunction · 0.68