Documentation ¶
Index ¶
- func Read(tx *sqlx.Tx) database.Read
- func Update(tx *sqlx.Tx) database.Update
- type CountFactory
- type Factory
- type Runner
- func (r *Runner) Run(t *testing.T, name string, cb func(t *testing.T, tx *sqlx.Tx)) bool
- func (r *Runner) RunBenchmark(t *testing.B, name string, cb func(t *testing.B, tx *sqlx.Tx)) bool
- func (r *Runner) RunBenchmarkNoTx(t *testing.B, name string, cb func(t *testing.B, tx *sqlx.DB)) bool
- func (r *Runner) RunNoTx(t *testing.T, name string, cb func(t *testing.T, tx *sqlx.DB)) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CountFactory ¶
func (*CountFactory[T]) Create ¶
func (f *CountFactory[T]) Create(tx database.DB) []T
type Factory ¶
func NewFactory ¶
func (Factory[T]) Count ¶
func (f Factory[T]) Count(count int) *CountFactory[T]
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) RunBenchmark ¶
func (*Runner) RunBenchmarkNoTx ¶ added in v0.11.3
Click to show internal directories.
Click to hide internal directories.