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

Function BenchmarkUpdate3

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

Source from the content-addressed store, hash-verified

1666}
1667
1668func BenchmarkUpdate3(b *testing.B) {
1669 bt := WithTemplate(&testTemplate)
1670 for n := 0; n < b.N; n++ {
1671 _ = bt.Update("artist").Set(struct {
1672 Nombre string `db:"name"`
1673 }{"Artist"}).Set(map[string]string{"last_name": "Foo"}).Where(db.Cond{"id <": 5}).String()
1674 }
1675}
1676
1677func BenchmarkUpdate4(b *testing.B) {
1678 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…