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

Method Validate

internal/bundler/upload.go:55–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (up *Uploader) Validate() error {
56 if up.config.Cloud.Project == "" {
57 return ErrNoProject
58 }
59 if up.config.Cloud.AuthToken == "" {
60 return ErrNoAuthToken
61 }
62 if up.client == nil {
63 client, err := quickdb.NewClientFromConfig(up.config.Cloud)
64 if err != nil {
65 return fmt.Errorf("client init failed: %w", err)
66 }
67 up.client = client
68 }
69 return nil
70}
71
72var envvars = []string{
73 "GITHUB_REPOSITORY",

Callers 2

PushFunction · 0.95
UploadMethod · 0.95

Calls 1

NewClientFromConfigFunction · 0.92

Tested by

no test coverage detected