func (t *track) Save(filename string, isSuccess bool, err string) error {
	if _, err := t.pgxClient.Conn.Exec(
		"INSERT INTO history (filename, is_success, err) VALUES ($1, $2, $3)",
		filename,
		isSuccess,
		err,
	); err != nil {
		return errors.Wrap(err, "couldn't log sql transaction")
	}
	return nil
}
Save logs to database the milestones
package logic
import (
	"github.com/pkg/errors"
	"github.com/jclebreton/opensirene/database"
)
type track struct {
	pgxClient *database.PgxClient
}
type Tracker interface {
	Save(filename string, isSuccess bool, err string) error
	Truncate() error
}
func NewTracker(pgxClient *database.PgxClient) *track {
	return &track{pgxClient: pgxClient}
}