Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PostHog/duckgres
/ flushBatch
Method
flushBatch
server/querylog.go:303–307 ·
view source on GitHub ↗
(batch []QueryLogEntry)
Source
from the content-addressed store, hash-verified
301
}
302
return
strings.Clone(text)
303
}
304
305
func
truncateNullableQuery(q *string) *string {
306
if
q == nil {
307
return
nil
308
}
309
truncated := truncateQuery(*q)
310
return
&truncated
Callers
3
flushLoop
Method · 0.95
TestQueryLoggerFlushBatchPersistsOrgID
Function · 0.95
TestEnsureQueryLogTableAddsOrgIDToExistingTable
Function · 0.95
Calls
2
insertQueryLogEntries
Function · 0.85
Error
Method · 0.45
Tested by
2
TestQueryLoggerFlushBatchPersistsOrgID
Function · 0.76
TestEnsureQueryLogTableAddsOrgIDToExistingTable
Function · 0.76