from https://github.com/golang/go/issues/14468
| 241 | |
| 242 | // from https://github.com/golang/go/issues/14468 |
| 243 | type 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 | |
| 249 | func GetServerUUID(db QueryAble) (result string, err error) { |
| 250 | err = db.QueryRowContext(context.TODO(), `SELECT @@SERVER_UUID /*dtle*/`).Scan(&result) |
no outgoing calls
no test coverage detected