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

Function Open

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

Open opens the bucket identified by the URL given. URL openers must be registered in the DefaultURLMux, which is typically done in driver packages' initialization. See the URLOpener documentation in driver subpackages for more details on supported scheme(s) and URL parameter(s).

(ctx context.Context, urlstr string)

Source from the content-addressed store, hash-verified

122// See the URLOpener documentation in driver subpackages for more
123// details on supported scheme(s) and URL parameter(s).
124func Open(ctx context.Context, urlstr string) (*sql.DB, error) {
125 return defaultURLMux.OpenPostgres(ctx, urlstr)
126}

Callers 7

ExampleOpenFunction · 0.92
TestURLOpenerFunction · 0.92
ExampleFunction · 0.92
ExampleFunction · 0.92
Example_iamFunction · 0.92
TestURLOpenerFunction · 0.92
TestURLOpenerIAMFunction · 0.92

Calls 1

OpenPostgresMethod · 0.80

Tested by 7

ExampleOpenFunction · 0.74
TestURLOpenerFunction · 0.74
ExampleFunction · 0.74
ExampleFunction · 0.74
Example_iamFunction · 0.74
TestURLOpenerFunction · 0.74
TestURLOpenerIAMFunction · 0.74