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

Function insertQueryLogKafkaEvent

server/querylog_kafka_writer.go:735–740  ·  view source on GitHub ↗

insertQueryLogKafkaEvent skips an event_id that is already present. This makes normal single-consumer Kafka replays idempotent, but it is not a storage-level unique constraint across multiple independent writer groups.

(ctx context.Context, db *sql.DB, table string, entry QueryLogEntry)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

Tested by

no test coverage detected