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

Method Stop

server/querylog.go:230–232  ·  view source on GitHub ↗

Stop drains remaining entries and shuts down the flush goroutine.

()

Source from the content-addressed store, hash-verified

228
229func insertQueryLogEntries(ctx context.Context, db *sql.DB, table string, batch []QueryLogEntry) error {
230 if len(batch) == 0 {
231 return nil
232 }
233 if ctx == nil {
234 ctx = context.Background()
235 }

Callers 15

sleepContextFunction · 0.45
waitForStateMethod · 0.45
CloseMethod · 0.45
StartCredentialRefreshFunction · 0.45
runMethod · 0.45
RunShellFunction · 0.45
flushLoopMethod · 0.45
waitBeforeRetryMethod · 0.45
StartIdlePrunerMethod · 0.45
cleanupLoopMethod · 0.45

Calls 1

StopContextMethod · 0.95