MCPcopy
hub / github.com/sqlc-dev/sqlc / NewClientFromConfig

Function NewClientFromConfig

internal/quickdb/rpc.go:17–20  ·  view source on GitHub ↗
(cloudConfig config.Cloud)

Source from the content-addressed store, hash-verified

15const defaultHostname = "grpc.sqlc.dev"
16
17func NewClientFromConfig(cloudConfig config.Cloud) (pb.QuickClient, error) {
18 projectID := cloudConfig.Project
19 return NewClient(projectID, cloudConfig.AuthToken, WithHost(cloudConfig.Hostname))
20}
21
22type options struct {
23 hostname string

Callers 2

VerifyFunction · 0.92
ValidateMethod · 0.92

Calls 2

WithHostFunction · 0.85
NewClientFunction · 0.70

Tested by

no test coverage detected