MCPcopy
hub / github.com/gocraft/dbr / BenchmarkSelectSQL

Function BenchmarkSelectSQL

select_test.go:39–44  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

37}
38
39func BenchmarkSelectSQL(b *testing.B) {
40 buf := NewBuffer()
41 for i := 0; i < b.N; i++ {
42 Select("a", "b").From("table").Where(Eq("c", 1)).OrderAsc("d").Build(dialect.MySQL, buf)
43 }
44}
45
46type stringSliceWithSQLScanner []string
47

Callers

nothing calls this directly

Calls 7

NewBufferFunction · 0.85
SelectFunction · 0.85
EqFunction · 0.85
OrderAscMethod · 0.80
FromMethod · 0.80
BuildMethod · 0.65
WhereMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…