MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / buildSQLWithConds

Function buildSQLWithConds

api/models/utils.go:16–22  ·  view source on GitHub ↗
(querySQL, countSQL string, conds []string)

Source from the content-addressed store, hash-verified

14}
15
16func buildSQLWithConds(querySQL, countSQL string, conds []string) (newQuerySQL, newCountSQL string) {
17 whereSQL := ""
18 if len(conds) > 0 {
19 whereSQL = " WHERE " + strings.Join(conds, " AND ")
20 }
21 return querySQL + whereSQL, countSQL + whereSQL
22}

Callers 3

GetBlockListMethod · 0.85
GetTransactionListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected