persistence/mysqldump.go
func (s *MysqlDump) Import(lfile io.Reader) (err error) {
	if err = s.RemoteOps.UploadFile(lfile); err != nil {
		return err
	}

	err = s.restore()
	lo.G.Debug("mysqldump Import called: ", err)

	if err != nil {
		return
	}

	err = s.RemoteOps.RemoveRemoteFile()

	lo.G.Debug("mysqldump remove remote file called: ", err)
	return
}
func (s *MysqlDump) Import(lfile io.Reader) (err error) {
	if err = s.RemoteOps.UploadFile(lfile); err != nil {
		return err
	}

	err = s.restore()
	lo.G.Debug("mysqldump Import called: ", err)

	if err != nil {
		return
	}

	err = s.RemoteOps.RemoveRemoteFile()

	lo.G.Debug("mysqldump remove remote file called: ", err)
	return
}
func ( s * MysqlDump ) Import ( lfile io . Reader ) ( err error ) { if err = s . RemoteOps . UploadFile ( lfile ) ; err != nil { return err } err = s . restore ( ) lo . G . Debug ( " " , err ) if err != nil { return } err = s . RemoteOps . RemoveRemoteFile ( ) lo . G . Debug ( " " , err ) return }
//Import - will import to mysql from the given reader
Import - will import to mysql from the given reader