schemaconfig

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaStrategy

type SchemaStrategy int

SchemaStrategy is an enum representing what the ingestor should do regarding the schema in the target database

const (
	// Validate that the selected database matches the IDRF data set info
	ValidateOnly SchemaStrategy = iota + 1
	// Create the data set info if it's missing, fail if incompatible
	CreateIfMissing
	// Drop existing table and create a new one
	DropAndCreate
	// DROP CASCADE existing table and create a new one
	DropCascadeAndCreate
)

Enum values for SchemaStrategy

func ParseStrategyString

func ParseStrategyString(strategy string) (SchemaStrategy, error)

ParseStrategyString returns the enum value matching the string, or an error

func (SchemaStrategy) String

func (s SchemaStrategy) String() string

Jump to

Keyboard shortcuts

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