MCPcopy
hub / github.com/pingcap/tidb / simpleQuery

Function simpleQuery

dumpling/export/sql.go:1262–1264  ·  view source on GitHub ↗
(conn *sql.Conn, query string, handleOneRow func(*sql.Rows) error)

Source from the content-addressed store, hash-verified

1260}
1261
1262func simpleQuery(conn *sql.Conn, query string, handleOneRow func(*sql.Rows) error) error {
1263 return simpleQueryWithArgs(context.Background(), conn, handleOneRow, query)
1264}
1265
1266func simpleQueryWithArgs(ctx context.Context, conn *sql.Conn, handleOneRow func(*sql.Rows) error, query string, args ...any) error {
1267 var (

Callers 7

ShowDatabasesFunction · 0.85
ShowTablesFunction · 0.85
ShowMasterStatusFunction · 0.85
GetPartitionTableIDsFunction · 0.85
GetDBInfoFunction · 0.85
GetRegionInfosFunction · 0.85
recordGlobalMetaDataFunction · 0.85

Calls 2

BackgroundFunction · 0.92
simpleQueryWithArgsFunction · 0.85

Tested by

no test coverage detected