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
Click to show internal directories.
Click to hide internal directories.