jointype

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package jointype enumerates the various SQL JOIN types.

Index

Constants

View Source
const (
	Inner           Type   = "inner_join"
	JoinAlias       string = "join"
	Left            Type   = "left_join"
	LeftAlias       string = "ljoin"
	LeftOuter       Type   = "left_outer_join"
	LeftOuterAlias  string = "lojoin"
	Right           Type   = "right_join"
	RightAlias      string = "rjoin"
	RightOuter      Type   = "right_outer_join"
	RightOuterAlias string = "rojoin"
	FullOuter       Type   = "full_outer_join"
	FullOuterAlias  string = "fojoin"
	Cross           Type   = "cross_join"
	CrossAlias      string = "xjoin"
)

Variables

This section is empty.

Functions

func AllValues

func AllValues() []string

AllValues returns all possible join type values, including both canonical names ("cross_join") and aliases ("xjoin").

Types

type Type

type Type string

Type indicates the type of join, e.g. "INNER JOIN" or "RIGHT OUTER JOIN", etc.

func All

func All() []Type

All returns the set of join.Type values.

func (Type) HasPredicate

func (jt Type) HasPredicate() bool

HasPredicate returns true if the join type accepts a join predicate. Only jointype.Cross returns false.

func (Type) String

func (jt Type) String() string

String returns the string value.

func (*Type) UnmarshalText

func (jt *Type) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

Jump to

Keyboard shortcuts

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