MCPcopy Create free account
hub / github.com/google/go-cloud / URLOpener

Struct URLOpener

postgres/postgres.go:39–41  ·  view source on GitHub ↗

URLOpener opens URLs like "postgres://" by using the underlying PostgreSQL driver. See https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters for details.

Source from the content-addressed store, hash-verified

37// URLOpener opens URLs like "postgres://" by using the underlying PostgreSQL driver.
38// See https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters for details.
39type URLOpener struct {
40 TraceOpts []otelsql.Option
41}
42
43// OpenPostgresURL opens a new database connection wrapped with OpenTelemetry instrumentation.
44func (uo *URLOpener) OpenPostgresURL(ctx context.Context, u *url.URL) (*sql.DB, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected