MCPcopy Index your code
hub / github.com/bytebase/bytebase / Close

Method Close

backend/plugin/db/driver.go:142–142  ·  view source on GitHub ↗

Remember to call Close to avoid connection leak

(ctx context.Context)

Source from the content-addressed store, hash-verified

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
144 GetDB() *sql.DB
145 // Execute will execute the statement.

Callers 15

SendMethod · 0.65
fetchOIDCConfigFunction · 0.65
fetchJWKSFromURLFunction · 0.65
UserInfoMethod · 0.65
GetOpenIDConfigurationFunction · 0.65
dialMethod · 0.65
ConnectMethod · 0.65
AuthenticateMethod · 0.65
TestCompletionFunction · 0.65

Implementers 15

MockDriverbackend/plugin/advisor/utils_for_tests
Driverbackend/plugin/db/bigquery/bigquery.go
Driverbackend/plugin/db/mongodb/mongodb.go
Driverbackend/plugin/db/trino/trino.go
Driverbackend/plugin/db/redshift/redshift.go
Driverbackend/plugin/db/oracle/oracle.go
Driverbackend/plugin/db/dynamodb/dynamodb.go
Driverbackend/plugin/db/cosmosdb/cosmosdb.go
Driverbackend/plugin/db/spanner/spanner.go
Driverbackend/plugin/db/mssql/mssql.go
Driverbackend/plugin/db/mysql/mysql.go
Driverbackend/plugin/db/pg/pg.go

Calls

no outgoing calls

Tested by 15

TestCompletionFunction · 0.52
TestGetQuerySpanFromYAMLFunction · 0.52
TestGetQuerySpanFunction · 0.52
TestRestoreFunction · 0.52
TestGetStatementTypeFunction · 0.52
TestBackupFunction · 0.52
TestCompletionFunction · 0.52
TestGetQuerySpanFunction · 0.52