MCPcopy Create free account
hub / github.com/brimdata/super / Connection

Method Connection

cli/dbflags/flags.go:49–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (l *Flags) Connection() (*client.Connection, error) {
50 uri, err := l.ClientURI()
51 if err != nil {
52 return nil, err
53 }
54 if !api.IsRemote(uri.String()) {
55 return nil, ErrLocalDB
56 }
57 conn := client.NewConnectionTo(uri.String())
58 if err := conn.SetAuthStore(l.AuthStore()); err != nil {
59 return nil, err
60 }
61 return conn, nil
62}
63
64func (l *Flags) Open(ctx context.Context) (api.Interface, error) {
65 uri, err := l.ClientURI()

Callers 7

OpenMethod · 0.95
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80

Calls 6

ClientURIMethod · 0.95
AuthStoreMethod · 0.95
IsRemoteFunction · 0.92
NewConnectionToFunction · 0.92
SetAuthStoreMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected