enumwithconflictingvalue

package
v0.0.0-...-960bda7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the enumwithconflictingvalue type in the database.
	Label = "enum_with_conflicting_value"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEnum holds the string denoting the enum field in the database.
	FieldEnum = "enum"
	// Table holds the table name of the enumwithconflictingvalue in the database.
	Table = "enum_with_conflicting_values"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldEnum,
}

Columns holds all SQL columns for enumwithconflictingvalue fields.

Functions

func And

And groups predicates with the AND operator between them.

func EnumEQ

EnumEQ applies the EQ predicate on the "enum" field.

func EnumIn

EnumIn applies the In predicate on the "enum" field.

func EnumNEQ

EnumNEQ applies the NEQ predicate on the "enum" field.

func EnumNotIn

func EnumNotIn(vs ...Enum) predicate.EnumWithConflictingValue

EnumNotIn applies the NotIn predicate on the "enum" field.

func EnumValidator

func EnumValidator(e Enum) error

EnumValidator is a validator for the "enum" field enum values. It is called by the builders before save.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.EnumWithConflictingValue

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Enum

type Enum string

Enum defines the type for the "enum" enum field.

const (
	EnumJpeg    Enum = "image/jpeg"
	EnumJpegAlt Enum = "IMAGE_JPEG"
)

Enum values.

func (Enum) String

func (e Enum) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the EnumWithConflictingValue queries.

func ByEnum

func ByEnum(opts ...sql.OrderTermOption) OrderOption

ByEnum orders the results by the enum field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

Jump to

Keyboard shortcuts

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