MCPcopy Index your code
hub / github.com/actiontech/dtle / QueryAble

Interface QueryAble

driver/mysql/sql/sqlutils.go:243–247  ·  view source on GitHub ↗

from https://github.com/golang/go/issues/14468

Source from the content-addressed store, hash-verified

241
242// from https://github.com/golang/go/issues/14468
243type QueryAble interface {
244 ExecContext(ctx context.Context, query string, args ...interface{}) (gosql.Result, error)
245 QueryContext(ctx context.Context, query string, args ...interface{}) (*gosql.Rows, error)
246 QueryRowContext(ctx context.Context, query string, args ...interface{}) *gosql.Row
247}
248
249func GetServerUUID(db QueryAble) (result string, err error) {
250 err = db.QueryRowContext(context.TODO(), `SELECT @@SERVER_UUID /*dtle*/`).Scan(&result)

Callers 24

AddLogMinerFileMethod · 0.80
BuildLogMinerMethod · 0.80
StartLogMinerBySCN2Method · 0.80
StartLogMinerBySCNMethod · 0.80
EndLogMinerMethod · 0.80
NLS_DATE_FORMATMethod · 0.80
GetTableDDLMethod · 0.80
cleanGtidExecutedMethod · 0.80
getChunkDataMethod · 0.80
GetLogFileBySCNMethod · 0.80
GetLogMinerRecordMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected