converter

package
v0.0.0-...-c68951b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxNumberPerInsert = 64

MaxNumberPerInsert is the maximum number of records that can be inserted in a batch. See comment below. There's no scientific reason why this number is 64 it worked well for our instance of GoCrack that had close to 7m records

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertFunc

type ConvertFunc func(ctx context.Context, from *storm.DB, to *ent.Tx) error

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func NewConverter

func NewConverter(from *storm.DB, to *ent.Client) *Converter

func (*Converter) Convert

func (s *Converter) Convert(ctx context.Context) error

Jump to

Keyboard shortcuts

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