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

Method Apply

dsn.go:104–112  ·  view source on GitHub ↗

Apply applies the given options to the Config object.

(opts ...Option)

Source from the content-addressed store, hash-verified

102
103// Apply applies the given options to the Config object.
104func (c *Config) Apply(opts ...Option) error {
105 for _, opt := range opts {
106 err := opt(c)
107 if err != nil {
108 return err
109 }
110 }
111 return nil
112}
113
114// TimeTruncate sets the time duration to truncate time.Time values in
115// query parameters.

Callers 1

TestBeforeConnectFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestBeforeConnectFunction · 0.64