batch

package
v0.0.608 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create[T any](ctx context.Context, p *TracerConnection, models []*T, opts ...option) (err error)

Create batch-inserts the given models into the database using a single INSERT statement. The models are either all created or none.

func OnConflictDoNothing added in v0.0.600

func OnConflictDoNothing() func(*createOptions)

Types

type TracerConnection

type TracerConnection struct {
	Tracer     *otelx.Tracer
	Connection *pop.Connection
}

Jump to

Keyboard shortcuts

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