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.
| 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. |
| 39 | type URLOpener struct { |
| 40 | TraceOpts []otelsql.Option |
| 41 | } |
| 42 | |
| 43 | // OpenPostgresURL opens a new database connection wrapped with OpenTelemetry instrumentation. |
| 44 | func (uo *URLOpener) OpenPostgresURL(ctx context.Context, u *url.URL) (*sql.DB, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected