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

Function NewLocalExecutor

server/executor.go:29–31  ·  view source on GitHub ↗

NewLocalExecutor creates a new LocalExecutor wrapping the given *sql.DB.

(db *sql.DB)

Source from the content-addressed store, hash-verified

27
28// NewLocalExecutor creates a new LocalExecutor wrapping the given *sql.DB.
29func NewLocalExecutor(db *sql.DB) *LocalExecutor {
30 return &LocalExecutor{db: db}
31}
32
33// DB returns the underlying *sql.DB (for credential refresh and other direct access).
34func (e *LocalExecutor) DB() *sql.DB {

Calls

no outgoing calls