Documentation ¶
Index ¶
- type AccountNoSQL
- func (a AccountNoSQL) Create(ctx context.Context, account domain.Account) (domain.Account, error)
- func (a AccountNoSQL) DeleteByID(ctx context.Context, ID domain.AccountID) (bool, error)
- func (a AccountNoSQL) FindAll(ctx context.Context) ([]domain.Account, error)
- func (a AccountNoSQL) FindBalance(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountNoSQL) FindByID(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountNoSQL) UpdateBalance(ctx context.Context, ID domain.AccountID, balance domain.Money) error
- type AccountSQL
- func (a AccountSQL) Create(ctx context.Context, account domain.Account) (domain.Account, error)
- func (a AccountSQL) DeleteByID(ctx context.Context, ID domain.AccountID) (bool, error)
- func (a AccountSQL) FindAll(ctx context.Context) ([]domain.Account, error)
- func (a AccountSQL) FindBalance(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountSQL) FindByID(ctx context.Context, ID domain.AccountID) (domain.Account, error)
- func (a AccountSQL) UpdateBalance(ctx context.Context, ID domain.AccountID, balance domain.Money) error
- type CharityMrysSQL
- func (a CharityMrysSQL) Create(ctx context.Context, CharityMrys domain.CharityMrys) (domain.CharityMrys, error)
- func (a CharityMrysSQL) CreateBulk(ctx context.Context, CharityMrys []domain.CharityMrys) ([]domain.CharityMrys, error)
- func (a CharityMrysSQL) DeleteByID(ctx context.Context, ID string) (bool, error)
- func (a CharityMrysSQL) FindAll(ctx context.Context, auth *domain.UserJwt) (domain.CharityMrysAll, error)
- func (a CharityMrysSQL) FindByID(ctx context.Context, ID string) (domain.CharityMrys, error)
- func (a CharityMrysSQL) FindPagination(ctx context.Context, currentPage int, perPage int, sort string, search string) (domain.CharityMrysPagination, error)
- func (a CharityMrysSQL) Update(ctx context.Context, CharityMrys domain.CharityMrys, ID string) (domain.CharityMrys, error)
- type NoSQL
- type ReceiptLunarSQL
- func (a ReceiptLunarSQL) Create(ctx context.Context, ReceiptLunar domain.ReceiptLunar) (domain.ReceiptLunar, error)
- func (a ReceiptLunarSQL) DeleteByID(ctx context.Context, Id string) (bool, error)
- func (a ReceiptLunarSQL) DeleteByReceiptLunarId(ctx context.Context, Id string) (bool, error)
- func (a ReceiptLunarSQL) FindAllByReceiptLunarId(ctx context.Context, Id string) ([]domain.ReceiptLunarDetail, error)
- func (a ReceiptLunarSQL) FindByID(ctx context.Context, Id string) (domain.ReceiptLunar, error)
- func (a ReceiptLunarSQL) FindPagination(ctx context.Context, currentPage int, perPage int, sort string, search string) (domain.ReceiptLunarPagination, error)
- func (a ReceiptLunarSQL) Update(ctx context.Context, ReceiptLunar domain.ReceiptLunar, Id string) (domain.ReceiptLunar, error)
- type Row
- type Rows
- type SQL
- type Session
- type TransferNoSQL
- type TransferSQL
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountNoSQL ¶
type AccountNoSQL struct {
// contains filtered or unexported fields
}
func NewAccountNoSQL ¶
func NewAccountNoSQL(db NoSQL) AccountNoSQL
func (AccountNoSQL) DeleteByID ¶
func (AccountNoSQL) FindBalance ¶
func (AccountNoSQL) UpdateBalance ¶
type AccountSQL ¶
type AccountSQL struct {
// contains filtered or unexported fields
}
func NewAccountSQL ¶
func NewAccountSQL(db SQL) AccountSQL
func (AccountSQL) DeleteByID ¶
func (AccountSQL) FindBalance ¶
func (AccountSQL) UpdateBalance ¶
type CharityMrysSQL ¶
type CharityMrysSQL struct {
// contains filtered or unexported fields
}
func NewCharityMrysSQL ¶
func NewCharityMrysSQL(db SQL) CharityMrysSQL
func (CharityMrysSQL) Create ¶
func (a CharityMrysSQL) Create(ctx context.Context, CharityMrys domain.CharityMrys) (domain.CharityMrys, error)
func (CharityMrysSQL) CreateBulk ¶
func (a CharityMrysSQL) CreateBulk(ctx context.Context, CharityMrys []domain.CharityMrys) ([]domain.CharityMrys, error)
func (CharityMrysSQL) DeleteByID ¶
func (CharityMrysSQL) FindAll ¶
func (a CharityMrysSQL) FindAll(ctx context.Context, auth *domain.UserJwt) (domain.CharityMrysAll, error)
func (CharityMrysSQL) FindByID ¶
func (a CharityMrysSQL) FindByID(ctx context.Context, ID string) (domain.CharityMrys, error)
func (CharityMrysSQL) FindPagination ¶
func (a CharityMrysSQL) FindPagination(ctx context.Context, currentPage int, perPage int, sort string, search string) (domain.CharityMrysPagination, error)
func (CharityMrysSQL) Update ¶
func (a CharityMrysSQL) Update(ctx context.Context, CharityMrys domain.CharityMrys, ID string) (domain.CharityMrys, error)
type NoSQL ¶
type NoSQL interface { Store(context.Context, string, interface{}) error Update(context.Context, string, interface{}, interface{}) error FindAll(context.Context, string, interface{}, interface{}) error FindOne(context.Context, string, interface{}, interface{}, interface{}) error StartSession() (Session, error) }
type ReceiptLunarSQL ¶
type ReceiptLunarSQL struct {
// contains filtered or unexported fields
}
func NewReceiptLunarSQL ¶
func NewReceiptLunarSQL(db SQL) ReceiptLunarSQL
func (ReceiptLunarSQL) Create ¶
func (a ReceiptLunarSQL) Create(ctx context.Context, ReceiptLunar domain.ReceiptLunar) (domain.ReceiptLunar, error)
func (ReceiptLunarSQL) DeleteByID ¶
func (ReceiptLunarSQL) DeleteByReceiptLunarId ¶
func (ReceiptLunarSQL) FindAllByReceiptLunarId ¶
func (a ReceiptLunarSQL) FindAllByReceiptLunarId(ctx context.Context, Id string) ([]domain.ReceiptLunarDetail, error)
func (ReceiptLunarSQL) FindByID ¶
func (a ReceiptLunarSQL) FindByID(ctx context.Context, Id string) (domain.ReceiptLunar, error)
func (ReceiptLunarSQL) FindPagination ¶
func (a ReceiptLunarSQL) FindPagination(ctx context.Context, currentPage int, perPage int, sort string, search string) (domain.ReceiptLunarPagination, error)
func (ReceiptLunarSQL) Update ¶
func (a ReceiptLunarSQL) Update(ctx context.Context, ReceiptLunar domain.ReceiptLunar, Id string) (domain.ReceiptLunar, error)
type SQL ¶
type SQL interface { ExecuteContext(context.Context, string, ...interface{}) error InsertPG(context.Context, string, ...interface{}) error UpdatePG(context.Context, interface{}, string) error ExecuteContextPG(context.Context, interface{}, string, ...interface{}) error GetDBPG(context.Context) *pg.DB GetDBGorm(context.Context) *gorm.DB QueryContext(context.Context, string, ...interface{}) (Rows, error) QueryContextPG(context.Context, interface{}, string, ...interface{}) (pg.Result, error) QueryRowContext(context.Context, string, ...interface{}) Row QueryRowContextPG(context.Context, interface{}, string, ...interface{}) (pg.Result, error) BeginTx(ctx context.Context) (Tx, error) }
type TransferNoSQL ¶
type TransferNoSQL struct {
// contains filtered or unexported fields
}
func NewTransferNoSQL ¶
func NewTransferNoSQL(db NoSQL) TransferNoSQL
func (TransferNoSQL) WithTransaction ¶
type TransferSQL ¶
type TransferSQL struct {
// contains filtered or unexported fields
}
func NewTransferSQL ¶
func NewTransferSQL(db SQL) TransferSQL
func (TransferSQL) WithTransaction ¶
type Tx ¶
type Tx interface { ExecuteContext(context.Context, string, ...interface{}) error ExecuteContextPG(context.Context, interface{}, string, ...interface{}) error QueryContext(context.Context, string, ...interface{}) (Rows, error) QueryRowContext(context.Context, string, ...interface{}) Row QueryRowContextPG(context.Context, interface{}, string, ...interface{}) (pg.Result, error) Commit() error Rollback() error }
Click to show internal directories.
Click to hide internal directories.