mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-03 10:40:40 -05:00
21 lines
388 B
Go
21 lines
388 B
Go
package db
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/jackc/pgx/v5"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
type tracer struct {
|
|
}
|
|
|
|
func (t tracer) TraceQueryStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryStartData) context.Context {
|
|
logrus.Trace(data)
|
|
return ctx
|
|
}
|
|
|
|
func (c tracer) TraceQueryEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryEndData) {
|
|
logrus.Trace(data)
|
|
}
|