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

Method OpenPostgresURL

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

OpenPostgresURL opens a Postgres connection based on the URL.

(ctx context.Context, u *url.URL)

Source from the content-addressed store, hash-verified

69type PostgresURLOpener interface {
70 // OpenPostgresURL opens a Postgres connection based on the URL.
71 OpenPostgresURL(ctx context.Context, u *url.URL) (*sql.DB, error)
72}
73
74// URLMux is a URL opener multiplexer. It matches the scheme of the URLs

Callers 4

OpenPostgresMethod · 0.65
OpenPostgresURLMethod · 0.65
TestOpenFunction · 0.65
OpenPostgresURLMethod · 0.65

Implementers 5

URLOpenerpostgres/postgres.go
URLMuxpostgres/postgres.go
lazyCredsOpenerpostgres/gcppostgres/gcppostgres.go
URLOpenerpostgres/gcppostgres/gcppostgres.go
URLOpenerpostgres/awspostgres/awspostgres.go

Calls

no outgoing calls

Tested by 1

TestOpenFunction · 0.52