sqltest

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sqltest supplies large command-queue fixtures for SQL tests and benchmarks.

Design

Seed inserts pending command rows in multi-row batches sized for the backend's parameter limits. This keeps fixture construction from dominating Clear performance measurements. The helpers bypass ordinary storage API behavior and are only for tests; they do not define a backend contract.

References

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Seed

func Seed(ctx context.Context, tb testing.TB, db *sql.DB, d sqlcommon.Dialect, id string, n int)

Seed inserts n pending ProfileList commands for the enrollment id using multi-row INSERTs. The enrollment row must already exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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