General execution A driver might support multiple engines (e.g. MySQL driver can support both MySQL and TiDB), So we pass the dbType to tell the exact engine.
(ctx context.Context, dbType storepb.Engine, config ConnectionConfig)
| 138 | // A driver might support multiple engines (e.g. MySQL driver can support both MySQL and TiDB), |
| 139 | // So we pass the dbType to tell the exact engine. |
| 140 | Open(ctx context.Context, dbType storepb.Engine, config ConnectionConfig) (Driver, error) |
| 141 | // Remember to call Close to avoid connection leak |
| 142 | Close(ctx context.Context) error |
| 143 | Ping(ctx context.Context) error |
no outgoing calls