Documentation ¶
Index ¶
- func NewDataSource(pool *Pool) *datasource
- type Pool
- type TransactionRepository
- func (r *TransactionRepository) Create(ctx context.Context, transactions []beans.Transaction) error
- func (r *TransactionRepository) Delete(ctx context.Context, budgetID beans.ID, transactionIDs []beans.ID) error
- func (r *TransactionRepository) Get(ctx context.Context, budgetID beans.ID, id beans.ID) (beans.Transaction, error)
- func (r *TransactionRepository) GetActivityByCategory(ctx context.Context, budgetID beans.ID, from beans.Date, to beans.Date) (map[beans.ID]beans.Amount, error)
- func (r *TransactionRepository) GetForBudget(ctx context.Context, budgetID beans.ID) ([]beans.TransactionWithRelations, error)
- func (r *TransactionRepository) GetIncomeBetween(ctx context.Context, budgetID beans.ID, begin beans.Date, end beans.Date) (beans.Amount, error)
- func (r *TransactionRepository) GetSplits(ctx context.Context, budgetID beans.ID, transactionID beans.ID) ([]beans.TransactionAsSplit, error)
- func (r *TransactionRepository) GetWithRelations(ctx context.Context, budgetID beans.ID, id beans.ID) (beans.TransactionWithRelations, error)
- func (r *TransactionRepository) Update(ctx context.Context, transactions []beans.Transaction) error
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource(pool *Pool) *datasource
Types ¶
type TransactionRepository ¶
type TransactionRepository struct {
// contains filtered or unexported fields
}
func (*TransactionRepository) Create ¶
func (r *TransactionRepository) Create(ctx context.Context, transactions []beans.Transaction) error
func (*TransactionRepository) Get ¶
func (r *TransactionRepository) Get(ctx context.Context, budgetID beans.ID, id beans.ID) (beans.Transaction, error)
func (*TransactionRepository) GetActivityByCategory ¶
func (*TransactionRepository) GetForBudget ¶
func (r *TransactionRepository) GetForBudget(ctx context.Context, budgetID beans.ID) ([]beans.TransactionWithRelations, error)
func (*TransactionRepository) GetIncomeBetween ¶
func (*TransactionRepository) GetSplits ¶
func (r *TransactionRepository) GetSplits(ctx context.Context, budgetID beans.ID, transactionID beans.ID) ([]beans.TransactionAsSplit, error)
func (*TransactionRepository) GetWithRelations ¶
func (r *TransactionRepository) GetWithRelations(ctx context.Context, budgetID beans.ID, id beans.ID) (beans.TransactionWithRelations, error)
func (*TransactionRepository) Update ¶
func (r *TransactionRepository) Update(ctx context.Context, transactions []beans.Transaction) error
Click to show internal directories.
Click to hide internal directories.