URLOpener opens GCP PostgreSQL URLs like "gcppostgres://user:password@myproject/us-central1/instanceId/mydb".
| 88 | // URLOpener opens GCP PostgreSQL URLs |
| 89 | // like "gcppostgres://user:password@myproject/us-central1/instanceId/mydb". |
| 90 | type URLOpener struct { |
| 91 | // CertSource specifies how the opener will obtain authentication information. |
| 92 | // CertSource must not be nil. |
| 93 | CertSource proxy.CertSource |
| 94 | |
| 95 | // TraceOpts contains options for OpenTelemetry. |
| 96 | TraceOpts []otelsql.Option |
| 97 | } |
| 98 | |
| 99 | // OpenPostgresURL opens a new GCP database connection wrapped with OpenTelemetry instrumentation. |
| 100 | func (uo *URLOpener) OpenPostgresURL(ctx context.Context, u *url.URL) (*sql.DB, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected