Documentation ¶
Index ¶
- type DBTX
- func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
- func (_m *DBTX) PrepareContext(_a0 context.Context, _a1 string) (*sql.Stmt, error)
- func (_m *DBTX) QueryContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (*sql.Rows, error)
- func (_m *DBTX) QueryRowContext(_a0 context.Context, _a1 string, _a2 ...interface{}) *sql.Row
- type Querier
- func (_m *Querier) AddAccountBalance(ctx context.Context, arg db.AddAccountBalanceParams) (db.Account, error)
- func (_m *Querier) CreateAccount(ctx context.Context, arg db.CreateAccountParams) (db.Account, error)
- func (_m *Querier) CreateEntry(ctx context.Context, arg db.CreateEntryParams) (db.Entry, error)
- func (_m *Querier) CreateTransfer(ctx context.Context, arg db.CreateTransferParams) (db.Transfer, error)
- func (_m *Querier) DeleteAccount(ctx context.Context, id int64) error
- func (_m *Querier) GetAccount(ctx context.Context, id int64) (db.Account, error)
- func (_m *Querier) GetAccountForUpdate(ctx context.Context, id int64) (db.Account, error)
- func (_m *Querier) GetEntry(ctx context.Context, id int64) (db.Entry, error)
- func (_m *Querier) GetTransfer(ctx context.Context, id int64) (db.Transfer, error)
- func (_m *Querier) ListAccounts(ctx context.Context, arg db.ListAccountsParams) ([]db.Account, error)
- func (_m *Querier) ListEntries(ctx context.Context, arg db.ListEntriesParams) ([]db.Entry, error)
- func (_m *Querier) ListTransfers(ctx context.Context, arg db.ListTransfersParams) ([]db.Transfer, error)
- func (_m *Querier) UpdateAccount(ctx context.Context, arg db.UpdateAccountParams) (db.Account, error)
- type Store
- func (_m *Store) AddAccountBalance(ctx context.Context, arg db.AddAccountBalanceParams) (db.Account, error)
- func (_m *Store) CreateAccount(ctx context.Context, arg db.CreateAccountParams) (db.Account, error)
- func (_m *Store) CreateEntry(ctx context.Context, arg db.CreateEntryParams) (db.Entry, error)
- func (_m *Store) CreateTransfer(ctx context.Context, arg db.CreateTransferParams) (db.Transfer, error)
- func (_m *Store) DeleteAccount(ctx context.Context, id int64) error
- func (_m *Store) GetAccount(ctx context.Context, id int64) (db.Account, error)
- func (_m *Store) GetAccountForUpdate(ctx context.Context, id int64) (db.Account, error)
- func (_m *Store) GetEntry(ctx context.Context, id int64) (db.Entry, error)
- func (_m *Store) GetTransfer(ctx context.Context, id int64) (db.Transfer, error)
- func (_m *Store) ListAccounts(ctx context.Context, arg db.ListAccountsParams) ([]db.Account, error)
- func (_m *Store) ListEntries(ctx context.Context, arg db.ListEntriesParams) ([]db.Entry, error)
- func (_m *Store) ListTransfers(ctx context.Context, arg db.ListTransfersParams) ([]db.Transfer, error)
- func (_m *Store) TransferTx(ctx context.Context, arg db.TransferTxParams) (db.TransferTxResult, error)
- func (_m *Store) UpdateAccount(ctx context.Context, arg db.UpdateAccountParams) (db.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBTX ¶
DBTX is an autogenerated mock type for the DBTX type
func NewDBTX ¶
NewDBTX creates a new instance of DBTX. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DBTX) ExecContext ¶
func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: _a0, _a1, _a2
func (*DBTX) PrepareContext ¶
PrepareContext provides a mock function with given fields: _a0, _a1
type Querier ¶
Querier is an autogenerated mock type for the Querier type
func NewQuerier ¶
NewQuerier creates a new instance of Querier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Querier) AddAccountBalance ¶
func (_m *Querier) AddAccountBalance(ctx context.Context, arg db.AddAccountBalanceParams) (db.Account, error)
AddAccountBalance provides a mock function with given fields: ctx, arg
func (*Querier) CreateAccount ¶
func (_m *Querier) CreateAccount(ctx context.Context, arg db.CreateAccountParams) (db.Account, error)
CreateAccount provides a mock function with given fields: ctx, arg
func (*Querier) CreateEntry ¶
CreateEntry provides a mock function with given fields: ctx, arg
func (*Querier) CreateTransfer ¶
func (_m *Querier) CreateTransfer(ctx context.Context, arg db.CreateTransferParams) (db.Transfer, error)
CreateTransfer provides a mock function with given fields: ctx, arg
func (*Querier) DeleteAccount ¶
DeleteAccount provides a mock function with given fields: ctx, id
func (*Querier) GetAccount ¶
GetAccount provides a mock function with given fields: ctx, id
func (*Querier) GetAccountForUpdate ¶
GetAccountForUpdate provides a mock function with given fields: ctx, id
func (*Querier) GetTransfer ¶
GetTransfer provides a mock function with given fields: ctx, id
func (*Querier) ListAccounts ¶
func (_m *Querier) ListAccounts(ctx context.Context, arg db.ListAccountsParams) ([]db.Account, error)
ListAccounts provides a mock function with given fields: ctx, arg
func (*Querier) ListEntries ¶
ListEntries provides a mock function with given fields: ctx, arg
func (*Querier) ListTransfers ¶
func (_m *Querier) ListTransfers(ctx context.Context, arg db.ListTransfersParams) ([]db.Transfer, error)
ListTransfers provides a mock function with given fields: ctx, arg
func (*Querier) UpdateAccount ¶
func (_m *Querier) UpdateAccount(ctx context.Context, arg db.UpdateAccountParams) (db.Account, error)
UpdateAccount provides a mock function with given fields: ctx, arg
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Store) AddAccountBalance ¶
func (_m *Store) AddAccountBalance(ctx context.Context, arg db.AddAccountBalanceParams) (db.Account, error)
AddAccountBalance provides a mock function with given fields: ctx, arg
func (*Store) CreateAccount ¶
CreateAccount provides a mock function with given fields: ctx, arg
func (*Store) CreateEntry ¶
CreateEntry provides a mock function with given fields: ctx, arg
func (*Store) CreateTransfer ¶
func (_m *Store) CreateTransfer(ctx context.Context, arg db.CreateTransferParams) (db.Transfer, error)
CreateTransfer provides a mock function with given fields: ctx, arg
func (*Store) DeleteAccount ¶
DeleteAccount provides a mock function with given fields: ctx, id
func (*Store) GetAccount ¶
GetAccount provides a mock function with given fields: ctx, id
func (*Store) GetAccountForUpdate ¶
GetAccountForUpdate provides a mock function with given fields: ctx, id
func (*Store) GetTransfer ¶
GetTransfer provides a mock function with given fields: ctx, id
func (*Store) ListAccounts ¶
ListAccounts provides a mock function with given fields: ctx, arg
func (*Store) ListEntries ¶
ListEntries provides a mock function with given fields: ctx, arg
func (*Store) ListTransfers ¶
func (_m *Store) ListTransfers(ctx context.Context, arg db.ListTransfersParams) ([]db.Transfer, error)
ListTransfers provides a mock function with given fields: ctx, arg
func (*Store) TransferTx ¶
func (_m *Store) TransferTx(ctx context.Context, arg db.TransferTxParams) (db.TransferTxResult, error)
TransferTx provides a mock function with given fields: ctx, arg
func (*Store) UpdateAccount ¶
UpdateAccount provides a mock function with given fields: ctx, arg