Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDatabaseUndefined = errors.New("database is not defined")
ErrDatabaseUndefined ...
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository for transactions
func NewTransactionRepository ¶
func NewTransactionRepository(db *sql.DB) (*Repository, error)
NewTransactionRepository creates a new seller repository instance
func (*Repository) GetAll ¶
func (r *Repository) GetAll() ([]*transaction.Entity, error)
GetAll returns all transactions
func (*Repository) NewFromLine ¶
func (r *Repository) NewFromLine(line []string) error
NewFromLine adds a new transaction given it's raw line
Click to show internal directories.
Click to hide internal directories.