MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / buildCountSQL

Function buildCountSQL

api/models/utils.go:12–14  ·  view source on GitHub ↗
(querySQL string)

Source from the content-addressed store, hash-verified

10)
11
12func buildCountSQL(querySQL string) string {
13 return selectFromRegexp.ReplaceAllString(querySQL, "SELECT count(*) FROM")
14}
15
16func buildSQLWithConds(querySQL, countSQL string, conds []string) (newQuerySQL, newCountSQL string) {
17 whereSQL := ""

Callers 3

GetBlockListMethod · 0.85
GetTransactionListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected