_insert

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Excluded

func Excluded(field common.FieldName) common.Serializable

Excluded references the proposed insertion row in an ON CONFLICT DO UPDATE clause.

func NewQuery

func NewQuery() *query

Types

type OnConflict

type OnConflict common.Serializable

OnConflict specifies what to do when there is a conflict during insertion

func Overwrite

func Overwrite(field common.FieldName) OnConflict

func Set

func Set(field common.FieldName, value common.Param) OnConflict

type Query

type Query interface {
	// Fields specifies the fields to insert
	Fields(...common.FieldName) fieldsQuery
}

Query is the query state after INSERT INTO

Jump to

Keyboard shortcuts

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