Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pingcap/tidb
/ GetDB
Method
GetDB
pkg/testkit/dbtestkit.go:94–96 ·
view source on GitHub ↗
GetDB returns the underlay sql.DB instance.
()
Source
from the content-addressed store, hash-verified
92
93
// GetDB returns the underlay sql.DB instance.
94
func
(tk *DBTestKit) GetDB() *sql.DB {
95
return
tk.db
96
}
Callers
15
RunTestsOnNewDB
Method · 0.95
TestPostSettings
Function · 0.95
prepareData
Method · 0.95
RunTestRegression
Method · 0.80
RunTestPrepareResultFieldType
Method · 0.80
RunTestLoadDataForListPartition
Method · 0.80
RunTestLoadDataForListPartition2
Method · 0.80
RunTestLoadDataForListColumnPartition
Method · 0.80
RunTestLoadDataForListColumnPartition2
Method · 0.80
RunTestLoadDataWithColumnList
Method · 0.80
RunTestLoadDataInTransaction
Method · 0.80
RunTestLoadData
Method · 0.80
Calls
no outgoing calls
Tested by
7
TestPostSettings
Function · 0.76
prepareData
Method · 0.76
TestVectorTypeGORM
Function · 0.64
TestTiDBIdleTransactionTimeout
Function · 0.64
TestBatchGetTypeForRowExpr
Function · 0.64
TestAuditPluginInfoForStarting
Function · 0.64
TestAuditPluginRetrying
Function · 0.64