MCPcopy Index your code
hub / github.com/upper/db / BenchmarkUpdate5

Function BenchmarkUpdate5

internal/sqlbuilder/builder_test.go:1684–1692  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1682}
1683
1684func BenchmarkUpdate5(b *testing.B) {
1685 bt := WithTemplate(&testTemplate)
1686 for n := 0; n < b.N; n++ {
1687 _ = bt.Update("artist").Set(
1688 "name = ? || ' ' || ? || id", "Artist", "#",
1689 "id = id + ?", 10,
1690 ).Where("id > ?", 0).String()
1691 }
1692}
1693
1694func stripWhitespace(in string) string {
1695 q := reInvisibleChars.ReplaceAllString(in, ` `)

Callers

nothing calls this directly

Calls 5

WithTemplateFunction · 0.85
StringMethod · 0.65
WhereMethod · 0.65
SetMethod · 0.65
UpdateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…