restore transform for basic interactive shell
This commit is contained in:
parent
f4191882f6
commit
7356f2959f
|
@ -259,7 +259,7 @@ sparklines:
|
||||||
|
|
||||||
## Real-world recipes
|
## Real-world recipes
|
||||||
### Databases
|
### Databases
|
||||||
The following are different databases connection examples. Interactive shell (init script) usage is recommended to establish connection only once and then reuse it during sampling.
|
The following are different database connection examples. Interactive shell (init script) usage is recommended to establish connection only once and then reuse it during sampling.
|
||||||
|
|
||||||
<details><summary>MySQL</summary>
|
<details><summary>MySQL</summary>
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ func (s *BasicInteractiveShell) execute() (string, error) {
|
||||||
if errorText.Len() > 0 {
|
if errorText.Len() > 0 {
|
||||||
return "", errors.New(errorText.String())
|
return "", errors.New(errorText.String())
|
||||||
} else {
|
} else {
|
||||||
return resultText.String(), nil
|
return s.item.transform(resultText.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue