func (r *Runner) Run(name string, args ...Param) (*Rows, error) {
	provider := &Provider{
		dialect: r.DB.DriverName(),
	}
	if err := provider.ReadDir(r.FileSystem); err != nil {
		return nil, err
	}
	query, err := provider.Query(name)
	if err != nil {
		return nil, err
	}
	stmt, err := r.DB.Preparex(query)
	if err != nil {
		return nil, err
	}
	defer func() {
		if stmtErr := stmt.Close(); err == nil {
			err = stmtErr
		}
	}()
	return stmt.Queryx(args...)
}
Run runs a given command with provided parameters.
package sqlexec
import (
	"fmt"
	"io"
	"github.com/jmoiron/sqlx"
	"github.com/olekukonko/tablewriter"
)
type Runner struct {
	FileSystem FileSystem
	DB *sqlx.DB
}