fix: send SQL inputs as name/sql in the operator envelope
This commit is contained in:
@@ -122,7 +122,7 @@ func (r SuggestFksRequest) stdinEnvelope() (requestEnvelope, error) {
|
||||
if totalBytes > 16<<20 {
|
||||
return requestEnvelope{}, errors.New("SQL input total exceeds 16 MiB")
|
||||
}
|
||||
envelope.SQLFiles = append(envelope.SQLFiles, inputFile{Path: path, Contents: contents})
|
||||
envelope.SQLFiles = append(envelope.SQLFiles, inputFile{Name: filepath.Base(path), SQL: contents})
|
||||
}
|
||||
return envelope, nil
|
||||
}
|
||||
@@ -164,8 +164,8 @@ type requestEnvelope struct {
|
||||
}
|
||||
|
||||
type inputFile struct {
|
||||
Path string `json:"path"`
|
||||
Contents string `json:"contents"`
|
||||
Name string `json:"name"`
|
||||
SQL string `json:"sql"`
|
||||
}
|
||||
|
||||
type Result struct {
|
||||
|
||||
Reference in New Issue
Block a user