dialect

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	//InsertWithSingleValues single values insert
	InsertWithSingleValues = InsertFeatures(iota)
	//InsertWithMultiValues multi values insert
	InsertWithMultiValues
)
View Source
const (
	//LoadTypeUnsupported defines unsupported type
	LoadTypeUnsupported = LoadFeature(iota)
	//LoadTypeLocalData defined local data load support
	LoadTypeLocalData
)
View Source
const (
	PresetIDStrategyUndefined        = PresetIDStrategy("undefined")
	PresetIDStrategyIgnore           = PresetIDStrategy("ignore")
	PresetIDWithTransientTransaction = PresetIDStrategy("transient")
	PresetIDWithUDFSequence          = PresetIDStrategy("udf")
	PresetIDWithMax                  = PresetIDStrategy("maxid")
)

PresetIDStrategyUndefined and others, represent presetting identities strategies

View Source
const (
	//UpsertTypeUnsupported defines uppsert types
	UpsertTypeUnsupported = UpsertFeatures(iota)
	//UpsertTypeMerge defines merge upsert type
	UpsertTypeMerge //i.e PostgreSQL, BigQuery
	//UpsertTypeMergeInto //defined merge into upsert
	UpsertTypeMergeInto //i.e Oracle, Vertica, MS SQL, PostgreSQL dialect
	//UpsertTypeInsertOrReplace defined insert or replace upsert
	UpsertTypeInsertOrReplace //i.e. SQLLite
	//UpsertTypeInsertOrUpdate defined insert or update upsert
	UpsertTypeInsertOrUpdate //i.e MySQL
	//UpsertTypeUpdateOrInsert defined update or insert upsert
	UpsertTypeUpdateOrInsert //i.e Firebird
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InsertFeatures

type InsertFeatures int

InsertFeatures represents dialect supported insert type bitset

func (InsertFeatures) MultiValues

func (t InsertFeatures) MultiValues() bool

MultiValues returns true if dialect support multi values insert batch DML

type LoadFeature

type LoadFeature int

LoadFeature represents dialect supported load type type bitset

type PresetIDStrategy added in v0.3.0

type PresetIDStrategy string

PresetIDStrategy represents strategy of presetting identities

type UpsertFeatures

type UpsertFeatures int

UpsertFeatures represents dialect supported merge type bitset

Jump to

Keyboard shortcuts

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