using

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag added in v0.3.0

type Tag struct {
	Name  string
	Value interface{}
}

Tag associates a supertable tag column with its value.

type Using

type Using struct {
	// contains filtered or unexported fields
}

func SetUsing

func SetUsing(sTable string, tags map[string]interface{}) Using

SetUsing creates a USING clause. Map keys are sorted to make the generated SQL deterministic while preserving the association between names and values.

func SetUsingTags added in v0.3.0

func SetUsingTags(sTable string, tags ...Tag) Using

SetUsingTags creates a USING clause with an explicit tag order.

func (Using) ADDTagPair

func (i Using) ADDTagPair(tagName string, tagValue interface{}) Using

ADDTagPair is kept for backward compatibility. Deprecated: use AddTag.

func (Using) AddTag added in v0.3.0

func (i Using) AddTag(tagName string, tagValue interface{}) Using

AddTag adds or replaces a tag without mutating the original clause value.

func (Using) Build

func (i Using) Build(builder clause.Builder)

func (Using) MergeClause

func (i Using) MergeClause(c *clause.Clause)

func (Using) Name

func (i Using) Name() string

Jump to

Keyboard shortcuts

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