blockwriter

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBatchNum

func WithBatchNum(batchNum int) option

func WithBatchSize

func WithBatchSize(batchSize int) option

func WithGenTableName

func WithGenTableName(genTableName func(nr int) string) option

func WithRecordNum

func WithRecordNum(recordNum int) option

func WithTableNum

func WithTableNum(tableNum int) option

Types

type BlockWriter

type BlockWriter interface {
	Write(ctx context.Context, dsn string) error
}

BlockWriter write test data to a database.

func New

func New(opts ...option) BlockWriter

Jump to

Keyboard shortcuts

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