MCPcopy Create free account
hub / github.com/actiontech/dtle / GetServerUUID

Function GetServerUUID

driver/mysql/sql/sqlutils.go:249–255  ·  view source on GitHub ↗
(db QueryAble)

Source from the content-addressed store, hash-verified

247}
248
249func GetServerUUID(db QueryAble) (result string, err error) {
250 err = db.QueryRowContext(context.TODO(), `SELECT @@SERVER_UUID /*dtle*/`).Scan(&result)
251 if err != nil {
252 return "", err
253 }
254 return result, nil
255}
256
257func ShowMasterStatus(db QueryAble) *gosql.Row {
258 return db.QueryRowContext(context.TODO(), "show master status /*dtle*/")

Callers 3

RunMethod · 0.92
NewBinlogReaderFunction · 0.92
DataStreamEventsMethod · 0.92

Calls 2

ScanMethod · 0.80
QueryRowContextMethod · 0.80

Tested by

no test coverage detected