Skip to content

Commit 79649c8

Browse files
committed
Allow Prequery analysis
1 parent 69a768d commit 79649c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ func (h *Handler) errorWrappedDoQuery(
618618
) (string, error) {
619619
start := time.Now()
620620
if h.sel != nil {
621-
h.sel.QueryStarted()
621+
h.sel.QueryStarted(query)
622622
}
623623

624624
remainder, err := h.doQuery(c, query, mode, bindings, callback)

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
type ServerEventListener interface {
3131
ClientConnected()
3232
ClientDisconnected()
33-
QueryStarted()
33+
QueryStarted(query string)
3434
QueryCompleted(query string, success bool, duration time.Duration)
3535
}
3636

0 commit comments

Comments
 (0)