All checks were successful
Go / build (1.23) (pull_request) Successful in 19s
Go / build (1.22) (pull_request) Successful in 21s
Lint PR / commitlint (pull_request) Successful in 23s
Go / build (1.24) (pull_request) Successful in 25s
Go / build (1.23) (push) Successful in 13s
Go / build (1.22) (push) Successful in 15s
Go / build (1.24) (push) Successful in 20s
Fix ILIKE to use %?% for partial matching as expected.
17 lines
687 B
Go
17 lines
687 B
Go
package dal
|
|
|
|
import "git.rosemyrtle.work/personal-finance/server/internal/entity"
|
|
|
|
type DAL interface {
|
|
Transaction(transactionId int64) (*entity.Transaction, error)
|
|
Transactions(limit, offset int, description *string, category *string) (entity.Transactions, uint, error)
|
|
InsertTransaction(entity.Transaction) (entity.Transaction, error)
|
|
UpdateTransaction(entity.TransactionId, *entity.CategoryName) (bool, error)
|
|
TransactionExists(uint64) (bool, error)
|
|
Bank(bankId string) (*entity.Bank, error)
|
|
Banks() (entity.Banks, error)
|
|
Categories() (entity.Categories, error)
|
|
}
|
|
|
|
//go:generate go run go.uber.org/mock/mockgen@latest -destination=../mock/mock_dal.gen.go -package=mock . DAL
|