Versions in this module Expand all Collapse all v1 v1.0.0 May 20, 2022 Changes in this version + type AddAkunBalanceParams struct + Amount int64 + ID int64 + type Akun struct + Balance int64 + CreatedAt time.Time + Currency string + ID int64 + Owner string + type CreateAuthorParams struct + Balance int64 + Currency string + Owner string + type CreateEntryParams struct + AkunID int64 + Amount int64 + type CreateTransfersParams struct + Amount int64 + FromAkun int64 + ToAkun int64 + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type Entry struct + AkunID int64 + Amount int64 + CreatedAt time.Time + ID int64 + type ListAuthorsParams struct + Limit int32 + Offset int32 + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) AddAkunBalance(ctx context.Context, arg AddAkunBalanceParams) (Akun, error) + func (q *Queries) CreateAuthor(ctx context.Context, arg CreateAuthorParams) (Akun, error) + func (q *Queries) CreateEntry(ctx context.Context, arg CreateEntryParams) (Entry, error) + func (q *Queries) CreateTransfers(ctx context.Context, arg CreateTransfersParams) (Transfer, error) + func (q *Queries) DeleteAkun(ctx context.Context, id int64) error + func (q *Queries) GetAkunForUpdate(ctx context.Context, id int64) (Akun, error) + func (q *Queries) GetAuthor(ctx context.Context, id int64) (Akun, error) + func (q *Queries) GetEntry(ctx context.Context, id int64) (Entry, error) + func (q *Queries) GetTransfer(ctx context.Context, id int64) (Transfer, error) + func (q *Queries) ListAuthors(ctx context.Context, arg ListAuthorsParams) ([]Akun, error) + func (q *Queries) UpdateAkun(ctx context.Context, arg UpdateAkunParams) (Akun, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Store struct + func NewStore(db *sql.DB) *Store + func (store *Store) TransferTx(ctx context.Context, arg TransferTxParams) (TransferTxResult, error) + type Transfer struct + Amount int64 + CreatedAt time.Time + FromAkun int64 + ID int64 + ToAkun int64 + type TransferTxParams struct + Amount int64 + FromAkun int64 + ToAkun int64 + type TransferTxResult struct + FromAkun Akun + FromEntry Entry + ToAkun Akun + ToEntry Entry + Transfer Transfer + type UpdateAkunParams struct + Balance int64 + ID int64