batch

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 17 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) (err error)

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

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