MCPcopy Create free account
hub / github.com/Shopify/ghostferry / QueryMySQLVersion

Method QueryMySQLVersion

sqlwrapper/ghostferry_db.go:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61func (db DB) QueryMySQLVersion() (string, error) {
62 var version string
63 err := db.QueryRow("SELECT @@version").Scan(&version)
64 if err != nil {
65 return "", fmt.Errorf("failed to get MySQL version: %v", err)
66 }
67 return version, nil
68}
69
70func (tx Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sqlorig.Result, error) {
71 return tx.Tx.ExecContext(ctx, AnnotateStmt(query, tx.marginalia), args...)

Callers 3

idsOnServerFunction · 0.80
getBinlogStatusCommandFunction · 0.80
FetchMethod · 0.80

Calls 2

QueryRowMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected