sql: Begin cleanup of code

This commit is contained in:
Tom Wiesing 2022-09-19 13:03:59 +02:00
parent b0d3c686ba
commit f7b8804c61
No known key found for this signature in database
8 changed files with 158 additions and 135 deletions

View file

@ -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)

View file

@ -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
}

View file

@ -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
}