MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / Upload

Method Upload

internal/bundler/upload.go:152–164  ·  view source on GitHub ↗
(ctx context.Context, result []*QuerySetArchive, tags []string)

Source from the content-addressed store, hash-verified

150}
151
152func (up *Uploader) Upload(ctx context.Context, result []*QuerySetArchive, tags []string) error {
153 if err := up.Validate(); err != nil {
154 return err
155 }
156 req, err := up.buildRequest(ctx, result, tags)
157 if err != nil {
158 return err
159 }
160 if _, err := up.client.UploadArchive(ctx, req); err != nil {
161 return fmt.Errorf("upload error: %w", err)
162 }
163 return nil
164}

Callers 1

PushFunction · 0.95

Calls 3

ValidateMethod · 0.95
buildRequestMethod · 0.95
UploadArchiveMethod · 0.65

Tested by

no test coverage detected