Documentation ¶
Overview ¶
Package testutil contains test supporting functionality for 'impl/sql/...'.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeFactory ¶
type FakeFactory struct {
// contains filtered or unexported fields
}
FakeFactory is a fake transaction factory
func NewFakeFactory ¶
func NewFakeFactory(db *sql.DB) *FakeFactory
NewFakeFactory creates a new FakeFactory instance.
func (*FakeFactory) NewTxn ¶
func (f *FakeFactory) NewTxn(ctx context.Context) (transaction.Txn, error)
NewTxn creates a new database transaction.
Click to show internal directories.
Click to hide internal directories.