MCPcopy Create free account
hub / github.com/PostHog/duckgres / buildCommandTag

Method buildCommandTag

server/conn.go:2178–2192  ·  view source on GitHub ↗
(cmdType string, result ExecResult)

Source from the content-addressed store, hash-verified

2176 }
2177 i++
2178
2179 default:
2180 i++
2181 }
2182 }
2183 return false
2184}
2185
2186// parseDollarTag extracts a dollar-quote tag starting at position i.
2187// Returns the full tag (e.g., "$$" or "$tag$") and true, or ("", false).
2188func parseDollarTag(s string, i int) (string, bool) {
2189 if i >= len(s) || s[i] != '$' {
2190 return "", false
2191 }
2192 j := i + 1
2193 // Tag is $[identifier]$ where identifier is [A-Z_0-9] (already uppercased).
2194 for j < len(s) {
2195 if s[j] == '$' {

Callers 8

handleExecuteMethod · 0.95
execUserSecretDDLMethod · 0.95
handleQueryMethod · 0.95
executeQueryDirectMethod · 0.95
executeMultiStatementMethod · 0.95

Calls 1

RowsAffectedMethod · 0.65

Tested by 1