getSchemaDiff gets the schema diff.
(ctx context.Context, schemaDiff *v1pb.DiffSchemaRequest)
| 59 | |
| 60 | // getSchemaDiff gets the schema diff. |
| 61 | func (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 | } |