cmd

package
v0.0.0-...-0699f4c Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DELIMITER_OBJ = "\u001D" // Group separator (Information Separator Three)
	DELIMITER_REC = '\u001E' // Record separator (Information Separator Two)
	DELIMITER_VAL = "\u001F" //  Unit separator (Information Separator One)
)
View Source
const K10_ID_FELD string = "003@"
View Source
const K10_ID_FELD_UNTERFELD string = "003@0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Convert

type Convert struct {
	SourceDir   string `help:"Directory containing the pica files"`
	DSN         string `` /* 154-byte string literal not displayed */
	MaxParallel int    `help:"Number of concurrent workers to deploy. 0 uses the number of available CPUs." default:"1"`
	// Records     bool   `help:"If set, create k10_record table with colunns for each feld+unterfeld. This is not supported for --single-files mode." default:"true"`
	DryRun      bool   `help:"Only load payloads and output some timings."`
	SingleFiles string `help:"Directory to put single sqlite files. One for each import payload. Fastest way to concurrently load data."`
	// contains filtered or unexported fields
}

func (*Convert) Import

func (c *Convert) Import(ctx context.Context, db *sqlpro.DB, fp string) (err error)

func (*Convert) Run

func (c *Convert) Run(kctx *kong.Context) (err error)

type Merge

type Merge struct {
	SourceDir string `help:"Directory containing the k10 sqlite files"`
	Target    string `help:"Target sqlite where all files from source dir should me merged into."`
	// contains filtered or unexported fields
}

func (*Merge) Append

func (m *Merge) Append(ctx context.Context, path string) (err error)

func (*Merge) Run

func (m *Merge) Run(kctx *kong.Context) (err error)

Jump to

Keyboard shortcuts

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