im

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.4.2

func Apply(f func(a sqlite.InsertModApply)) sqlite.InsertMod

func Into

func Into(name string, columns ...string) sqlite.InsertMod

func OverridingSystem

func OverridingSystem() sqlite.InsertMod

func OverridingUser

func OverridingUser() sqlite.InsertMod

func Query

Insert from a query

func Returning

func Returning(clauses ...string) sqlite.InsertMod

func Values

func Values(values ...any) sqlite.InsertMod

func ValuesExpr added in v0.8.0

func ValuesExpr(clauses ...litsql.Expression) sqlite.InsertMod

func ValuesString added in v0.8.0

func ValuesString(clauses ...string) sqlite.InsertMod

Types

type InsertConflictChain

func OnConflict

func OnConflict(columns ...string) InsertConflictChain

func OnConflictOnConstraint

func OnConflictOnConstraint(constraint string) InsertConflictChain

type InsertConflictUpdateMod

func ConflictSet

func ConflictSet(column string, arg any) InsertConflictUpdateMod

func ConflictSetArgNamed added in v0.8.0

func ConflictSetArgNamed(column string, argumentName string) InsertConflictUpdateMod

func ConflictSetClause added in v0.8.0

func ConflictSetClause(query string, args ...any) InsertConflictUpdateMod

func ConflictSetExpr added in v0.8.0

func ConflictSetExpr(column string, value litsql.Expression) InsertConflictUpdateMod

func ConflictSetExprClause added in v0.8.0

func ConflictSetExprClause(assignment litsql.Expression) InsertConflictUpdateMod

func ConflictSetQuery added in v0.8.0

func ConflictSetQuery(column string, q sqlite.SelectQuery) InsertConflictUpdateMod

func ConflictSetString added in v0.8.0

func ConflictSetString(column string, right string) InsertConflictUpdateMod

func ConflictWhere

func ConflictWhere(condition string) InsertConflictUpdateMod

func ConflictWhereClause added in v0.8.0

func ConflictWhereClause(query string, args ...any) InsertConflictUpdateMod

func ConflictWhereExpr added in v0.8.0

func ConflictWhereExpr(condition litsql.Expression) InsertConflictUpdateMod

type WithChain

type WithChain = chain.With[tag.InsertTag]

func With

func With(name string, columns ...string) WithChain

func WithExpr added in v0.8.0

func WithExpr(name string, columns ...litsql.Expression) WithChain

Jump to

Keyboard shortcuts

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