MCPcopy Create free account
hub / github.com/daodst/chat / QueryVariadicOffset

Function QueryVariadicOffset

internal/sqlutil/sql.go:103–113  ·  view source on GitHub ↗
(count, offset int)

Source from the content-addressed store, hash-verified

101}
102
103func QueryVariadicOffset(count, offset int) string {
104 str := "("
105 for i := 0; i < count; i++ {
106 str += fmt.Sprintf("$%d", i+offset+1)
107 if i < (count - 1) {
108 str += ", "
109 }
110 }
111 str += ")"
112 return str
113}
114
115func minOfInts(a, b int) int {
116 if a <= b {

Callers 1

QueryVariadicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected