MCPcopy Index your code
hub / github.com/bytebase/bytebase / getSchemaDiff

Method getSchemaDiff

backend/tests/sql.go:61–67  ·  view source on GitHub ↗

getSchemaDiff gets the schema diff.

(ctx context.Context, schemaDiff *v1pb.DiffSchemaRequest)

Source from the content-addressed store, hash-verified

59
60// getSchemaDiff gets the schema diff.
61func (ctl *controller) getSchemaDiff(ctx context.Context, schemaDiff *v1pb.DiffSchemaRequest) (string, error) {
62 resp, err := ctl.databaseServiceClient.DiffSchema(ctx, connect.NewRequest(schemaDiff))
63 if err != nil {
64 return "", err
65 }
66 return resp.Msg.Diff, nil
67}

Callers 1

TestSyncSchemaFunction · 0.95

Calls 1

DiffSchemaMethod · 0.65

Tested by 1

TestSyncSchemaFunction · 0.76