(cfg *Config)
| 55 | } |
| 56 | |
| 57 | func 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. |