store

package
v0.0.0-...-10b8bc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	// contains filtered or unexported fields
}

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) CreateAccount

func (m *MockStore) CreateAccount(ctx context.Context, arg db.CreateAccountParams) (db.Account, error)

CreateAccount mocks base method.

func (*MockStore) CreateAccountStatementEntry

func (m *MockStore) CreateAccountStatementEntry(ctx context.Context, arg db.CreateAccountStatementEntryParams) (db.AccountTransactionsEntry, error)

CreateAccountStatementEntry mocks base method.

func (*MockStore) CreateTransferRecord

func (m *MockStore) CreateTransferRecord(ctx context.Context, arg db.CreateTransferRecordParams) (db.Transaction, error)

CreateTransferRecord mocks base method.

func (*MockStore) CreateUser

func (m *MockStore) CreateUser(ctx context.Context, arg db.CreateUserParams) (db.CreateUserRow, error)

CreateUser mocks base method.

func (*MockStore) DeleteAccount

func (m *MockStore) DeleteAccount(ctx context.Context, id int64) error

DeleteAccount mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStore) ExecTx

func (m *MockStore) ExecTx(ctx context.Context, fn func(*db.Queries) error) error

ExecTx mocks base method.

func (*MockStore) Execute

func (m *MockStore) Execute(statement string, args ...interface{}) error

Execute mocks base method.

func (*MockStore) GetAccountById

func (m *MockStore) GetAccountById(ctx context.Context, id int64) (db.Account, error)

GetAccountById mocks base method.

func (*MockStore) GetAccountByOwnerEmail

func (m *MockStore) GetAccountByOwnerEmail(ctx context.Context, ownerEmail string) (db.Account, error)

GetAccountByOwnerEmail mocks base method.

func (*MockStore) GetBalanceByAccountId

func (m *MockStore) GetBalanceByAccountId(ctx context.Context, id int64) (int64, error)

GetBalanceByAccountId mocks base method.

func (*MockStore) GetBalanceByOwnerEmail

func (m *MockStore) GetBalanceByOwnerEmail(ctx context.Context, ownerEmail string) (int64, error)

GetBalanceByOwnerEmail mocks base method.

func (*MockStore) GetTransaction

func (m *MockStore) GetTransaction(ctx context.Context, uid uuid.UUID) (db.Transaction, error)

GetTransaction mocks base method.

func (*MockStore) GetTransactionsList

func (m *MockStore) GetTransactionsList(ctx context.Context) ([]db.Transaction, error)

GetTransactionsList mocks base method.

func (*MockStore) GetUserDetails

func (m *MockStore) GetUserDetails(ctx context.Context, userEmail string) (db.GetUserDetailsRow, error)

GetUserDetails mocks base method.

func (*MockStore) ListAccounts

func (m *MockStore) ListAccounts(ctx context.Context, arg db.ListAccountsParams) ([]db.Account, error)

ListAccounts mocks base method.

func (*MockStore) Query

func (m *MockStore) Query(statement string, args ...interface{}) *sql.Rows

Query mocks base method.

func (*MockStore) UpdateAccountBalanceById

func (m *MockStore) UpdateAccountBalanceById(ctx context.Context, arg db.UpdateAccountBalanceByIdParams) (db.Account, error)

UpdateAccountBalanceById mocks base method.

type MockStoreMockRecorder

type MockStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) CreateAccount

func (mr *MockStoreMockRecorder) CreateAccount(ctx, arg interface{}) *gomock.Call

CreateAccount indicates an expected call of CreateAccount.

func (*MockStoreMockRecorder) CreateAccountStatementEntry

func (mr *MockStoreMockRecorder) CreateAccountStatementEntry(ctx, arg interface{}) *gomock.Call

CreateAccountStatementEntry indicates an expected call of CreateAccountStatementEntry.

func (*MockStoreMockRecorder) CreateTransferRecord

func (mr *MockStoreMockRecorder) CreateTransferRecord(ctx, arg interface{}) *gomock.Call

CreateTransferRecord indicates an expected call of CreateTransferRecord.

func (*MockStoreMockRecorder) CreateUser

func (mr *MockStoreMockRecorder) CreateUser(ctx, arg interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockStoreMockRecorder) DeleteAccount

func (mr *MockStoreMockRecorder) DeleteAccount(ctx, id interface{}) *gomock.Call

DeleteAccount indicates an expected call of DeleteAccount.

func (*MockStoreMockRecorder) ExecTx

func (mr *MockStoreMockRecorder) ExecTx(ctx, fn interface{}) *gomock.Call

ExecTx indicates an expected call of ExecTx.

func (*MockStoreMockRecorder) Execute

func (mr *MockStoreMockRecorder) Execute(statement interface{}, args ...interface{}) *gomock.Call

Execute indicates an expected call of Execute.

func (*MockStoreMockRecorder) GetAccountById

func (mr *MockStoreMockRecorder) GetAccountById(ctx, id interface{}) *gomock.Call

GetAccountById indicates an expected call of GetAccountById.

func (*MockStoreMockRecorder) GetAccountByOwnerEmail

func (mr *MockStoreMockRecorder) GetAccountByOwnerEmail(ctx, ownerEmail interface{}) *gomock.Call

GetAccountByOwnerEmail indicates an expected call of GetAccountByOwnerEmail.

func (*MockStoreMockRecorder) GetBalanceByAccountId

func (mr *MockStoreMockRecorder) GetBalanceByAccountId(ctx, id interface{}) *gomock.Call

GetBalanceByAccountId indicates an expected call of GetBalanceByAccountId.

func (*MockStoreMockRecorder) GetBalanceByOwnerEmail

func (mr *MockStoreMockRecorder) GetBalanceByOwnerEmail(ctx, ownerEmail interface{}) *gomock.Call

GetBalanceByOwnerEmail indicates an expected call of GetBalanceByOwnerEmail.

func (*MockStoreMockRecorder) GetTransaction

func (mr *MockStoreMockRecorder) GetTransaction(ctx, uid interface{}) *gomock.Call

GetTransaction indicates an expected call of GetTransaction.

func (*MockStoreMockRecorder) GetTransactionsList

func (mr *MockStoreMockRecorder) GetTransactionsList(ctx interface{}) *gomock.Call

GetTransactionsList indicates an expected call of GetTransactionsList.

func (*MockStoreMockRecorder) GetUserDetails

func (mr *MockStoreMockRecorder) GetUserDetails(ctx, userEmail interface{}) *gomock.Call

GetUserDetails indicates an expected call of GetUserDetails.

func (*MockStoreMockRecorder) ListAccounts

func (mr *MockStoreMockRecorder) ListAccounts(ctx, arg interface{}) *gomock.Call

ListAccounts indicates an expected call of ListAccounts.

func (*MockStoreMockRecorder) Query

func (mr *MockStoreMockRecorder) Query(statement interface{}, args ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockStoreMockRecorder) UpdateAccountBalanceById

func (mr *MockStoreMockRecorder) UpdateAccountBalanceById(ctx, arg interface{}) *gomock.Call

UpdateAccountBalanceById indicates an expected call of UpdateAccountBalanceById.

type SQLStore

type SQLStore struct {
	*models.Queries
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *SQLStore

func (*SQLStore) ExecTx

func (store *SQLStore) ExecTx(ctx context.Context, fn func(*models.Queries) error) error

func (*SQLStore) Execute

func (store *SQLStore) Execute(statement string, args ...interface{}) error

func (*SQLStore) Query

func (store *SQLStore) Query(statement string, args ...interface{}) *sql.Rows

type Store

type Store interface {
	models.Querier
	Execute(statement string, args ...interface{}) error
	Query(statement string, args ...interface{}) *sql.Rows
	ExecTx(ctx context.Context, fn func(*models.Queries) error) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL