dialect

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 0 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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