v2_10_0

package
v2.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CopyJobsTable = `
  CREATE TABLE collections.pre_2_10_jobs AS TABLE collections.jobs;
`
View Source
var CopyPipelinesTable = `
  CREATE TABLE collections.pre_2_10_pipelines AS TABLE collections.pipelines;
`
View Source
var CreateUniqueIndex = `
  CREATE UNIQUE INDEX pip_version_idx ON collections.pipelines(idx_version);
`
View Source
var UpdatesBatchSize = 100

Functions

func DeduplicatePipelineVersions

func DeduplicatePipelineVersions(ctx context.Context, env migrations.Env) error

func Migrate

func Migrate(state migrations.State) migrations.State

func Migrate_v2_10_BeforeDuplicates

func Migrate_v2_10_BeforeDuplicates(state migrations.State) migrations.State

func UpdateJobPipelineVersions

func UpdateJobPipelineVersions(ctx context.Context, tx *pachsql.Tx, pipVersionChanges map[string]map[uint64]uint64) error

func UpdatePipelineRows

func UpdatePipelineRows(ctx context.Context, tx *pachsql.Tx, pipUpdates []*PipUpdateRow) error

func VersionKey

func VersionKey(project, pipeline string, version uint64) string

COPIED from src/internal/ppsdb/ppsdb.go

Types

type PipUpdateRow

type PipUpdateRow struct {
	Key        string
	Proto      []byte
	IdxVersion string
}

Jump to

Keyboard shortcuts

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