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

Struct PinnedExecutor

server/executor.go:84–87  ·  view source on GitHub ↗

PinnedExecutor wraps a pinned *sql.Conn from a shared *sql.DB pool to implement QueryExecutor for file-persistence mode.

Source from the content-addressed store, hash-verified

82// PinnedExecutor wraps a pinned *sql.Conn from a shared *sql.DB pool
83// to implement QueryExecutor for file-persistence mode.
84type PinnedExecutor struct {
85 conn *sql.Conn
86 db *sql.DB
87}
88
89func NewPinnedExecutor(conn *sql.Conn, db *sql.DB) *PinnedExecutor {
90 return &PinnedExecutor{conn: conn, db: db}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected