Documentation ¶
Index ¶
- type TransactorMock
- func (mmBeginTx *TransactorMock) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (t1 pgx.Tx, err error)
- func (mmBeginTx *TransactorMock) BeginTxAfterCounter() uint64
- func (mmBeginTx *TransactorMock) BeginTxBeforeCounter() uint64
- func (m *TransactorMock) MinimockBeginTxDone() bool
- func (m *TransactorMock) MinimockBeginTxInspect()
- func (m *TransactorMock) MinimockFinish()
- func (m *TransactorMock) MinimockWait(timeout mm_time.Duration)
- type TransactorMockBeginTxExpectation
- type TransactorMockBeginTxParams
- type TransactorMockBeginTxResults
- type TxMock
- func (mmBegin *TxMock) Begin(ctx context.Context) (t1 mm_pgx.Tx, err error)
- func (mmBegin *TxMock) BeginAfterCounter() uint64
- func (mmBegin *TxMock) BeginBeforeCounter() uint64
- func (mmBeginFunc *TxMock) BeginFunc(ctx context.Context, f func(mm_pgx.Tx) error) (err error)
- func (mmBeginFunc *TxMock) BeginFuncAfterCounter() uint64
- func (mmBeginFunc *TxMock) BeginFuncBeforeCounter() uint64
- func (mmCommit *TxMock) Commit(ctx context.Context) (err error)
- func (mmCommit *TxMock) CommitAfterCounter() uint64
- func (mmCommit *TxMock) CommitBeforeCounter() uint64
- func (mmConn *TxMock) Conn() (cp1 *mm_pgx.Conn)
- func (mmConn *TxMock) ConnAfterCounter() uint64
- func (mmConn *TxMock) ConnBeforeCounter() uint64
- func (mmCopyFrom *TxMock) CopyFrom(ctx context.Context, tableName mm_pgx.Identifier, columnNames []string, ...) (i1 int64, err error)
- func (mmCopyFrom *TxMock) CopyFromAfterCounter() uint64
- func (mmCopyFrom *TxMock) CopyFromBeforeCounter() uint64
- func (mmExec *TxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error)
- func (mmExec *TxMock) ExecAfterCounter() uint64
- func (mmExec *TxMock) ExecBeforeCounter() uint64
- func (mmLargeObjects *TxMock) LargeObjects() (l1 mm_pgx.LargeObjects)
- func (mmLargeObjects *TxMock) LargeObjectsAfterCounter() uint64
- func (mmLargeObjects *TxMock) LargeObjectsBeforeCounter() uint64
- func (m *TxMock) MinimockBeginDone() bool
- func (m *TxMock) MinimockBeginFuncDone() bool
- func (m *TxMock) MinimockBeginFuncInspect()
- func (m *TxMock) MinimockBeginInspect()
- func (m *TxMock) MinimockCommitDone() bool
- func (m *TxMock) MinimockCommitInspect()
- func (m *TxMock) MinimockConnDone() bool
- func (m *TxMock) MinimockConnInspect()
- func (m *TxMock) MinimockCopyFromDone() bool
- func (m *TxMock) MinimockCopyFromInspect()
- func (m *TxMock) MinimockExecDone() bool
- func (m *TxMock) MinimockExecInspect()
- func (m *TxMock) MinimockFinish()
- func (m *TxMock) MinimockLargeObjectsDone() bool
- func (m *TxMock) MinimockLargeObjectsInspect()
- func (m *TxMock) MinimockPrepareDone() bool
- func (m *TxMock) MinimockPrepareInspect()
- func (m *TxMock) MinimockQueryDone() bool
- func (m *TxMock) MinimockQueryFuncDone() bool
- func (m *TxMock) MinimockQueryFuncInspect()
- func (m *TxMock) MinimockQueryInspect()
- func (m *TxMock) MinimockQueryRowDone() bool
- func (m *TxMock) MinimockQueryRowInspect()
- func (m *TxMock) MinimockRollbackDone() bool
- func (m *TxMock) MinimockRollbackInspect()
- func (m *TxMock) MinimockSendBatchDone() bool
- func (m *TxMock) MinimockSendBatchInspect()
- func (m *TxMock) MinimockWait(timeout mm_time.Duration)
- func (mmPrepare *TxMock) Prepare(ctx context.Context, name string, sql string) (sp1 *pgconn.StatementDescription, err error)
- func (mmPrepare *TxMock) PrepareAfterCounter() uint64
- func (mmPrepare *TxMock) PrepareBeforeCounter() uint64
- func (mmQuery *TxMock) Query(ctx context.Context, sql string, args ...interface{}) (r1 mm_pgx.Rows, err error)
- func (mmQuery *TxMock) QueryAfterCounter() uint64
- func (mmQuery *TxMock) QueryBeforeCounter() uint64
- func (mmQueryFunc *TxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, ...) (c2 pgconn.CommandTag, err error)
- func (mmQueryFunc *TxMock) QueryFuncAfterCounter() uint64
- func (mmQueryFunc *TxMock) QueryFuncBeforeCounter() uint64
- func (mmQueryRow *TxMock) QueryRow(ctx context.Context, sql string, args ...interface{}) (r1 mm_pgx.Row)
- func (mmQueryRow *TxMock) QueryRowAfterCounter() uint64
- func (mmQueryRow *TxMock) QueryRowBeforeCounter() uint64
- func (mmRollback *TxMock) Rollback(ctx context.Context) (err error)
- func (mmRollback *TxMock) RollbackAfterCounter() uint64
- func (mmRollback *TxMock) RollbackBeforeCounter() uint64
- func (mmSendBatch *TxMock) SendBatch(ctx context.Context, b *mm_pgx.Batch) (b1 mm_pgx.BatchResults)
- func (mmSendBatch *TxMock) SendBatchAfterCounter() uint64
- func (mmSendBatch *TxMock) SendBatchBeforeCounter() uint64
- type TxMockBeginExpectation
- type TxMockBeginFuncExpectation
- type TxMockBeginFuncParams
- type TxMockBeginFuncResults
- type TxMockBeginParams
- type TxMockBeginResults
- type TxMockCommitExpectation
- type TxMockCommitParams
- type TxMockCommitResults
- type TxMockConnExpectation
- type TxMockConnResults
- type TxMockCopyFromExpectation
- type TxMockCopyFromParams
- type TxMockCopyFromResults
- type TxMockExecExpectation
- type TxMockExecParams
- type TxMockExecResults
- type TxMockLargeObjectsExpectation
- type TxMockLargeObjectsResults
- type TxMockPrepareExpectation
- type TxMockPrepareParams
- type TxMockPrepareResults
- type TxMockQueryExpectation
- type TxMockQueryFuncExpectation
- type TxMockQueryFuncParams
- type TxMockQueryFuncResults
- type TxMockQueryParams
- type TxMockQueryResults
- type TxMockQueryRowExpectation
- type TxMockQueryRowParams
- type TxMockQueryRowResults
- type TxMockRollbackExpectation
- type TxMockRollbackParams
- type TxMockRollbackResults
- type TxMockSendBatchExpectation
- type TxMockSendBatchParams
- type TxMockSendBatchResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactorMock ¶
type TransactorMock struct { BeginTxMock mTransactorMockBeginTx // contains filtered or unexported fields }
TransactorMock implements db.Transactor
func NewTransactorMock ¶
func NewTransactorMock(t minimock.Tester) *TransactorMock
NewTransactorMock returns a mock for db.Transactor
func (*TransactorMock) BeginTx ¶
func (mmBeginTx *TransactorMock) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (t1 pgx.Tx, err error)
BeginTx implements db.Transactor
func (*TransactorMock) BeginTxAfterCounter ¶
func (mmBeginTx *TransactorMock) BeginTxAfterCounter() uint64
BeginTxAfterCounter returns a count of finished TransactorMock.BeginTx invocations
func (*TransactorMock) BeginTxBeforeCounter ¶
func (mmBeginTx *TransactorMock) BeginTxBeforeCounter() uint64
BeginTxBeforeCounter returns a count of TransactorMock.BeginTx invocations
func (*TransactorMock) MinimockBeginTxDone ¶
func (m *TransactorMock) MinimockBeginTxDone() bool
MinimockBeginTxDone returns true if the count of the BeginTx invocations corresponds the number of defined expectations
func (*TransactorMock) MinimockBeginTxInspect ¶
func (m *TransactorMock) MinimockBeginTxInspect()
MinimockBeginTxInspect logs each unmet expectation
func (*TransactorMock) MinimockFinish ¶
func (m *TransactorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*TransactorMock) MinimockWait ¶
func (m *TransactorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type TransactorMockBeginTxExpectation ¶
type TransactorMockBeginTxExpectation struct { Counter uint64 // contains filtered or unexported fields }
TransactorMockBeginTxExpectation specifies expectation struct of the Transactor.BeginTx
func (*TransactorMockBeginTxExpectation) Then ¶
func (e *TransactorMockBeginTxExpectation) Then(t1 pgx.Tx, err error) *TransactorMock
Then sets up Transactor.BeginTx return parameters for the expectation previously defined by the When method
type TransactorMockBeginTxParams ¶
type TransactorMockBeginTxParams struct {
// contains filtered or unexported fields
}
TransactorMockBeginTxParams contains parameters of the Transactor.BeginTx
type TransactorMockBeginTxResults ¶
type TransactorMockBeginTxResults struct {
// contains filtered or unexported fields
}
TransactorMockBeginTxResults contains results of the Transactor.BeginTx
type TxMock ¶
type TxMock struct { BeginMock mTxMockBegin BeginFuncMock mTxMockBeginFunc CommitMock mTxMockCommit ConnMock mTxMockConn CopyFromMock mTxMockCopyFrom ExecMock mTxMockExec LargeObjectsMock mTxMockLargeObjects PrepareMock mTxMockPrepare QueryMock mTxMockQuery QueryFuncMock mTxMockQueryFunc QueryRowMock mTxMockQueryRow RollbackMock mTxMockRollback SendBatchMock mTxMockSendBatch // contains filtered or unexported fields }
TxMock implements pgx.Tx
func (*TxMock) BeginAfterCounter ¶
BeginAfterCounter returns a count of finished TxMock.Begin invocations
func (*TxMock) BeginBeforeCounter ¶
BeginBeforeCounter returns a count of TxMock.Begin invocations
func (*TxMock) BeginFuncAfterCounter ¶
BeginFuncAfterCounter returns a count of finished TxMock.BeginFunc invocations
func (*TxMock) BeginFuncBeforeCounter ¶
BeginFuncBeforeCounter returns a count of TxMock.BeginFunc invocations
func (*TxMock) CommitAfterCounter ¶
CommitAfterCounter returns a count of finished TxMock.Commit invocations
func (*TxMock) CommitBeforeCounter ¶
CommitBeforeCounter returns a count of TxMock.Commit invocations
func (*TxMock) ConnAfterCounter ¶
ConnAfterCounter returns a count of finished TxMock.Conn invocations
func (*TxMock) ConnBeforeCounter ¶
ConnBeforeCounter returns a count of TxMock.Conn invocations
func (*TxMock) CopyFrom ¶
func (mmCopyFrom *TxMock) CopyFrom(ctx context.Context, tableName mm_pgx.Identifier, columnNames []string, rowSrc mm_pgx.CopyFromSource) (i1 int64, err error)
CopyFrom implements pgx.Tx
func (*TxMock) CopyFromAfterCounter ¶
CopyFromAfterCounter returns a count of finished TxMock.CopyFrom invocations
func (*TxMock) CopyFromBeforeCounter ¶
CopyFromBeforeCounter returns a count of TxMock.CopyFrom invocations
func (*TxMock) Exec ¶
func (mmExec *TxMock) Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error)
Exec implements pgx.Tx
func (*TxMock) ExecAfterCounter ¶
ExecAfterCounter returns a count of finished TxMock.Exec invocations
func (*TxMock) ExecBeforeCounter ¶
ExecBeforeCounter returns a count of TxMock.Exec invocations
func (*TxMock) LargeObjects ¶
func (mmLargeObjects *TxMock) LargeObjects() (l1 mm_pgx.LargeObjects)
LargeObjects implements pgx.Tx
func (*TxMock) LargeObjectsAfterCounter ¶
LargeObjectsAfterCounter returns a count of finished TxMock.LargeObjects invocations
func (*TxMock) LargeObjectsBeforeCounter ¶
LargeObjectsBeforeCounter returns a count of TxMock.LargeObjects invocations
func (*TxMock) MinimockBeginDone ¶
MinimockBeginDone returns true if the count of the Begin invocations corresponds the number of defined expectations
func (*TxMock) MinimockBeginFuncDone ¶
MinimockBeginFuncDone returns true if the count of the BeginFunc invocations corresponds the number of defined expectations
func (*TxMock) MinimockBeginFuncInspect ¶
func (m *TxMock) MinimockBeginFuncInspect()
MinimockBeginFuncInspect logs each unmet expectation
func (*TxMock) MinimockBeginInspect ¶
func (m *TxMock) MinimockBeginInspect()
MinimockBeginInspect logs each unmet expectation
func (*TxMock) MinimockCommitDone ¶
MinimockCommitDone returns true if the count of the Commit invocations corresponds the number of defined expectations
func (*TxMock) MinimockCommitInspect ¶
func (m *TxMock) MinimockCommitInspect()
MinimockCommitInspect logs each unmet expectation
func (*TxMock) MinimockConnDone ¶
MinimockConnDone returns true if the count of the Conn invocations corresponds the number of defined expectations
func (*TxMock) MinimockConnInspect ¶
func (m *TxMock) MinimockConnInspect()
MinimockConnInspect logs each unmet expectation
func (*TxMock) MinimockCopyFromDone ¶
MinimockCopyFromDone returns true if the count of the CopyFrom invocations corresponds the number of defined expectations
func (*TxMock) MinimockCopyFromInspect ¶
func (m *TxMock) MinimockCopyFromInspect()
MinimockCopyFromInspect logs each unmet expectation
func (*TxMock) MinimockExecDone ¶
MinimockExecDone returns true if the count of the Exec invocations corresponds the number of defined expectations
func (*TxMock) MinimockExecInspect ¶
func (m *TxMock) MinimockExecInspect()
MinimockExecInspect logs each unmet expectation
func (*TxMock) MinimockFinish ¶
func (m *TxMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*TxMock) MinimockLargeObjectsDone ¶
MinimockLargeObjectsDone returns true if the count of the LargeObjects invocations corresponds the number of defined expectations
func (*TxMock) MinimockLargeObjectsInspect ¶
func (m *TxMock) MinimockLargeObjectsInspect()
MinimockLargeObjectsInspect logs each unmet expectation
func (*TxMock) MinimockPrepareDone ¶
MinimockPrepareDone returns true if the count of the Prepare invocations corresponds the number of defined expectations
func (*TxMock) MinimockPrepareInspect ¶
func (m *TxMock) MinimockPrepareInspect()
MinimockPrepareInspect logs each unmet expectation
func (*TxMock) MinimockQueryDone ¶
MinimockQueryDone returns true if the count of the Query invocations corresponds the number of defined expectations
func (*TxMock) MinimockQueryFuncDone ¶
MinimockQueryFuncDone returns true if the count of the QueryFunc invocations corresponds the number of defined expectations
func (*TxMock) MinimockQueryFuncInspect ¶
func (m *TxMock) MinimockQueryFuncInspect()
MinimockQueryFuncInspect logs each unmet expectation
func (*TxMock) MinimockQueryInspect ¶
func (m *TxMock) MinimockQueryInspect()
MinimockQueryInspect logs each unmet expectation
func (*TxMock) MinimockQueryRowDone ¶
MinimockQueryRowDone returns true if the count of the QueryRow invocations corresponds the number of defined expectations
func (*TxMock) MinimockQueryRowInspect ¶
func (m *TxMock) MinimockQueryRowInspect()
MinimockQueryRowInspect logs each unmet expectation
func (*TxMock) MinimockRollbackDone ¶
MinimockRollbackDone returns true if the count of the Rollback invocations corresponds the number of defined expectations
func (*TxMock) MinimockRollbackInspect ¶
func (m *TxMock) MinimockRollbackInspect()
MinimockRollbackInspect logs each unmet expectation
func (*TxMock) MinimockSendBatchDone ¶
MinimockSendBatchDone returns true if the count of the SendBatch invocations corresponds the number of defined expectations
func (*TxMock) MinimockSendBatchInspect ¶
func (m *TxMock) MinimockSendBatchInspect()
MinimockSendBatchInspect logs each unmet expectation
func (*TxMock) MinimockWait ¶
MinimockWait waits for all mocked methods to be called the expected number of times
func (*TxMock) Prepare ¶
func (mmPrepare *TxMock) Prepare(ctx context.Context, name string, sql string) (sp1 *pgconn.StatementDescription, err error)
Prepare implements pgx.Tx
func (*TxMock) PrepareAfterCounter ¶
PrepareAfterCounter returns a count of finished TxMock.Prepare invocations
func (*TxMock) PrepareBeforeCounter ¶
PrepareBeforeCounter returns a count of TxMock.Prepare invocations
func (*TxMock) Query ¶
func (mmQuery *TxMock) Query(ctx context.Context, sql string, args ...interface{}) (r1 mm_pgx.Rows, err error)
Query implements pgx.Tx
func (*TxMock) QueryAfterCounter ¶
QueryAfterCounter returns a count of finished TxMock.Query invocations
func (*TxMock) QueryBeforeCounter ¶
QueryBeforeCounter returns a count of TxMock.Query invocations
func (*TxMock) QueryFunc ¶
func (mmQueryFunc *TxMock) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, f func(mm_pgx.QueryFuncRow) error) (c2 pgconn.CommandTag, err error)
QueryFunc implements pgx.Tx
func (*TxMock) QueryFuncAfterCounter ¶
QueryFuncAfterCounter returns a count of finished TxMock.QueryFunc invocations
func (*TxMock) QueryFuncBeforeCounter ¶
QueryFuncBeforeCounter returns a count of TxMock.QueryFunc invocations
func (*TxMock) QueryRow ¶
func (mmQueryRow *TxMock) QueryRow(ctx context.Context, sql string, args ...interface{}) (r1 mm_pgx.Row)
QueryRow implements pgx.Tx
func (*TxMock) QueryRowAfterCounter ¶
QueryRowAfterCounter returns a count of finished TxMock.QueryRow invocations
func (*TxMock) QueryRowBeforeCounter ¶
QueryRowBeforeCounter returns a count of TxMock.QueryRow invocations
func (*TxMock) RollbackAfterCounter ¶
RollbackAfterCounter returns a count of finished TxMock.Rollback invocations
func (*TxMock) RollbackBeforeCounter ¶
RollbackBeforeCounter returns a count of TxMock.Rollback invocations
func (*TxMock) SendBatchAfterCounter ¶
SendBatchAfterCounter returns a count of finished TxMock.SendBatch invocations
func (*TxMock) SendBatchBeforeCounter ¶
SendBatchBeforeCounter returns a count of TxMock.SendBatch invocations
type TxMockBeginExpectation ¶
type TxMockBeginExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockBeginExpectation specifies expectation struct of the Tx.Begin
type TxMockBeginFuncExpectation ¶
type TxMockBeginFuncExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockBeginFuncExpectation specifies expectation struct of the Tx.BeginFunc
func (*TxMockBeginFuncExpectation) Then ¶
func (e *TxMockBeginFuncExpectation) Then(err error) *TxMock
Then sets up Tx.BeginFunc return parameters for the expectation previously defined by the When method
type TxMockBeginFuncParams ¶
type TxMockBeginFuncParams struct {
// contains filtered or unexported fields
}
TxMockBeginFuncParams contains parameters of the Tx.BeginFunc
type TxMockBeginFuncResults ¶
type TxMockBeginFuncResults struct {
// contains filtered or unexported fields
}
TxMockBeginFuncResults contains results of the Tx.BeginFunc
type TxMockBeginParams ¶
type TxMockBeginParams struct {
// contains filtered or unexported fields
}
TxMockBeginParams contains parameters of the Tx.Begin
type TxMockBeginResults ¶
type TxMockBeginResults struct {
// contains filtered or unexported fields
}
TxMockBeginResults contains results of the Tx.Begin
type TxMockCommitExpectation ¶
type TxMockCommitExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockCommitExpectation specifies expectation struct of the Tx.Commit
func (*TxMockCommitExpectation) Then ¶
func (e *TxMockCommitExpectation) Then(err error) *TxMock
Then sets up Tx.Commit return parameters for the expectation previously defined by the When method
type TxMockCommitParams ¶
type TxMockCommitParams struct {
// contains filtered or unexported fields
}
TxMockCommitParams contains parameters of the Tx.Commit
type TxMockCommitResults ¶
type TxMockCommitResults struct {
// contains filtered or unexported fields
}
TxMockCommitResults contains results of the Tx.Commit
type TxMockConnExpectation ¶
type TxMockConnExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockConnExpectation specifies expectation struct of the Tx.Conn
type TxMockConnResults ¶
type TxMockConnResults struct {
// contains filtered or unexported fields
}
TxMockConnResults contains results of the Tx.Conn
type TxMockCopyFromExpectation ¶
type TxMockCopyFromExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockCopyFromExpectation specifies expectation struct of the Tx.CopyFrom
type TxMockCopyFromParams ¶
type TxMockCopyFromParams struct {
// contains filtered or unexported fields
}
TxMockCopyFromParams contains parameters of the Tx.CopyFrom
type TxMockCopyFromResults ¶
type TxMockCopyFromResults struct {
// contains filtered or unexported fields
}
TxMockCopyFromResults contains results of the Tx.CopyFrom
type TxMockExecExpectation ¶
type TxMockExecExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockExecExpectation specifies expectation struct of the Tx.Exec
func (*TxMockExecExpectation) Then ¶
func (e *TxMockExecExpectation) Then(commandTag pgconn.CommandTag, err error) *TxMock
Then sets up Tx.Exec return parameters for the expectation previously defined by the When method
type TxMockExecParams ¶
type TxMockExecParams struct {
// contains filtered or unexported fields
}
TxMockExecParams contains parameters of the Tx.Exec
type TxMockExecResults ¶
type TxMockExecResults struct {
// contains filtered or unexported fields
}
TxMockExecResults contains results of the Tx.Exec
type TxMockLargeObjectsExpectation ¶
type TxMockLargeObjectsExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockLargeObjectsExpectation specifies expectation struct of the Tx.LargeObjects
type TxMockLargeObjectsResults ¶
type TxMockLargeObjectsResults struct {
// contains filtered or unexported fields
}
TxMockLargeObjectsResults contains results of the Tx.LargeObjects
type TxMockPrepareExpectation ¶
type TxMockPrepareExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockPrepareExpectation specifies expectation struct of the Tx.Prepare
func (*TxMockPrepareExpectation) Then ¶
func (e *TxMockPrepareExpectation) Then(sp1 *pgconn.StatementDescription, err error) *TxMock
Then sets up Tx.Prepare return parameters for the expectation previously defined by the When method
type TxMockPrepareParams ¶
type TxMockPrepareParams struct {
// contains filtered or unexported fields
}
TxMockPrepareParams contains parameters of the Tx.Prepare
type TxMockPrepareResults ¶
type TxMockPrepareResults struct {
// contains filtered or unexported fields
}
TxMockPrepareResults contains results of the Tx.Prepare
type TxMockQueryExpectation ¶
type TxMockQueryExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockQueryExpectation specifies expectation struct of the Tx.Query
type TxMockQueryFuncExpectation ¶
type TxMockQueryFuncExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockQueryFuncExpectation specifies expectation struct of the Tx.QueryFunc
func (*TxMockQueryFuncExpectation) Then ¶
func (e *TxMockQueryFuncExpectation) Then(c2 pgconn.CommandTag, err error) *TxMock
Then sets up Tx.QueryFunc return parameters for the expectation previously defined by the When method
type TxMockQueryFuncParams ¶
type TxMockQueryFuncParams struct {
// contains filtered or unexported fields
}
TxMockQueryFuncParams contains parameters of the Tx.QueryFunc
type TxMockQueryFuncResults ¶
type TxMockQueryFuncResults struct {
// contains filtered or unexported fields
}
TxMockQueryFuncResults contains results of the Tx.QueryFunc
type TxMockQueryParams ¶
type TxMockQueryParams struct {
// contains filtered or unexported fields
}
TxMockQueryParams contains parameters of the Tx.Query
type TxMockQueryResults ¶
type TxMockQueryResults struct {
// contains filtered or unexported fields
}
TxMockQueryResults contains results of the Tx.Query
type TxMockQueryRowExpectation ¶
type TxMockQueryRowExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockQueryRowExpectation specifies expectation struct of the Tx.QueryRow
type TxMockQueryRowParams ¶
type TxMockQueryRowParams struct {
// contains filtered or unexported fields
}
TxMockQueryRowParams contains parameters of the Tx.QueryRow
type TxMockQueryRowResults ¶
type TxMockQueryRowResults struct {
// contains filtered or unexported fields
}
TxMockQueryRowResults contains results of the Tx.QueryRow
type TxMockRollbackExpectation ¶
type TxMockRollbackExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockRollbackExpectation specifies expectation struct of the Tx.Rollback
func (*TxMockRollbackExpectation) Then ¶
func (e *TxMockRollbackExpectation) Then(err error) *TxMock
Then sets up Tx.Rollback return parameters for the expectation previously defined by the When method
type TxMockRollbackParams ¶
type TxMockRollbackParams struct {
// contains filtered or unexported fields
}
TxMockRollbackParams contains parameters of the Tx.Rollback
type TxMockRollbackResults ¶
type TxMockRollbackResults struct {
// contains filtered or unexported fields
}
TxMockRollbackResults contains results of the Tx.Rollback
type TxMockSendBatchExpectation ¶
type TxMockSendBatchExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxMockSendBatchExpectation specifies expectation struct of the Tx.SendBatch
func (*TxMockSendBatchExpectation) Then ¶
func (e *TxMockSendBatchExpectation) Then(b1 mm_pgx.BatchResults) *TxMock
Then sets up Tx.SendBatch return parameters for the expectation previously defined by the When method
type TxMockSendBatchParams ¶
type TxMockSendBatchParams struct {
// contains filtered or unexported fields
}
TxMockSendBatchParams contains parameters of the Tx.SendBatch
type TxMockSendBatchResults ¶
type TxMockSendBatchResults struct {
// contains filtered or unexported fields
}
TxMockSendBatchResults contains results of the Tx.SendBatch