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

Function addQueryHandle

duckdbservice/flight_handler.go:137–145  ·  view source on GitHub ↗
(session *Session, handleID string, handle *QueryHandle)

Source from the content-addressed store, hash-verified

135}
136
137func addQueryHandle(session *Session, handleID string, handle *QueryHandle) bool {
138 session.mu.Lock()
139 defer session.mu.Unlock()
140 if session.closed {
141 return false
142 }
143 session.queries[handleID] = handle
144 return true
145}
146
147func addTrackedTransaction(session *Session, txnKey string, ttx *trackedTx) bool {
148 session.mu.Lock()

Calls

no outgoing calls