sql: Begin cleanup of code
This commit is contained in:
parent
b0d3c686ba
commit
f7b8804c61
8 changed files with 158 additions and 135 deletions
|
|
@ -101,7 +101,6 @@ func (bk backupC) Run(context wisski_distillery.Context) error {
|
|||
}
|
||||
|
||||
// and write everything into it!
|
||||
// TODO: Should we move the open call to here?
|
||||
var count int64
|
||||
if err := logging.LogOperation(func() error {
|
||||
context.IOStream.Println(archivePath)
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ func (mma makeMysqlAccount) Run(context wisski_distillery.Context) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
code, err := context.Environment.SQL().OpenShell(context.IOStream, "-e", query)
|
||||
code, err := context.Environment.SQL().Shell(context.IOStream, "-e", query)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ func (mysql) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
func (ms mysql) Run(context wisski_distillery.Context) error {
|
||||
code, err := context.Environment.SQL().OpenShell(context.IOStream, ms.Positionals.Args...)
|
||||
code, err := context.Environment.SQL().Shell(context.IOStream, ms.Positionals.Args...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue