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

Function BenchmarkUpdate2

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

Source from the content-addressed store, hash-verified

1659}
1660
1661func BenchmarkUpdate2(b *testing.B) {
1662 bt := WithTemplate(&testTemplate)
1663 for n := 0; n < b.N; n++ {
1664 _ = bt.Update("artist").Set("name = ?", "Artist").Where("id <", 5).String()
1665 }
1666}
1667
1668func BenchmarkUpdate3(b *testing.B) {
1669 bt := WithTemplate(&testTemplate)

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…