Documentation
¶
Overview ¶
Package noop provides a no-op database driver that discards all operations without performing any I/O. It is intended for benchmarking stroppy's own framework overhead in isolation from actual database latency.
Index ¶
- type Driver
- func (d *Driver) Begin(ctx context.Context, isolation config.TxIsolationLevel) (driver.Tx, error)
- func (*Driver) ClassifyError(err error) driver.ErrorFacts
- func (d *Driver) Insert(ctx context.Context, req *driver.InsertRequest) (*stats.Query, error)
- func (d *Driver) RunQuery(ctx context.Context, sqlStr string, args map[string]any) (*driver.QueryResult, error)
- func (d *Driver) Teardown(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a no-op implementation of driver.Driver. Every method runs the full stroppy framework stack (data generation, argument processing, transaction bookkeeping) but discards the final I/O.
func (*Driver) ClassifyError ¶
func (*Driver) ClassifyError(err error) driver.ErrorFacts
func (*Driver) Insert ¶
Insert runs a typed driver.InsertRequest through the noop driver. It exercises generation, batch filling, and row materialization before discarding rows without I/O, exposing framework overhead. Every method is accepted because there is no I/O to gate on; the point is to scale row generation alone.