componenttag

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the componenttag type in the database.
	Label = "component_tag"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEn holds the string denoting the en field in the database.
	FieldEn = "en"
	// FieldZh holds the string denoting the zh field in the database.
	FieldZh = "zh"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// EdgeComponentTag holds the string denoting the component_tag edge name in mutations.
	EdgeComponentTag = "component_tag"
	// Table holds the table name of the componenttag in the database.
	Table = "component_tag"
	// ComponentTagTable is the table that holds the component_tag relation/edge. The primary key declared below.
	ComponentTagTable = "component_component_tags"
	// ComponentTagInverseTable is the table name for the Component entity.
	// It exists in this package in order to avoid circular dependency with the "component" package.
	ComponentTagInverseTable = "components"
)

Variables

View Source
var (
	// EnValidator is a validator for the "en" field. It is called by the builders before save.
	EnValidator func(string) error
	// ZhValidator is a validator for the "zh" field. It is called by the builders before save.
	ZhValidator func(string) error
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
)

Columns holds all SQL columns for componenttag fields.

View Source
var (
	// ComponentTagPrimaryKey and ComponentTagColumn2 are the table columns denoting the
	// primary key for the component_tag relation (M2M).
	ComponentTagPrimaryKey = []string{"component_id", "component_tag_id"}
)

Functions

func And

func And(predicates ...predicate.ComponentTag) predicate.ComponentTag

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.ComponentTag

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.ComponentTag

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.ComponentTag

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.ComponentTag

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.ComponentTag

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.ComponentTag

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.ComponentTag

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.ComponentTag

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.ComponentTag

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func En

En applies equality check predicate on the "en" field. It's identical to EnEQ.

func EnContains

func EnContains(v string) predicate.ComponentTag

EnContains applies the Contains predicate on the "en" field.

func EnContainsFold

func EnContainsFold(v string) predicate.ComponentTag

EnContainsFold applies the ContainsFold predicate on the "en" field.

func EnEQ

EnEQ applies the EQ predicate on the "en" field.

func EnEqualFold

func EnEqualFold(v string) predicate.ComponentTag

EnEqualFold applies the EqualFold predicate on the "en" field.

func EnGT

EnGT applies the GT predicate on the "en" field.

func EnGTE

func EnGTE(v string) predicate.ComponentTag

EnGTE applies the GTE predicate on the "en" field.

func EnHasPrefix

func EnHasPrefix(v string) predicate.ComponentTag

EnHasPrefix applies the HasPrefix predicate on the "en" field.

func EnHasSuffix

func EnHasSuffix(v string) predicate.ComponentTag

EnHasSuffix applies the HasSuffix predicate on the "en" field.

func EnIn

func EnIn(vs ...string) predicate.ComponentTag

EnIn applies the In predicate on the "en" field.

func EnLT

EnLT applies the LT predicate on the "en" field.

func EnLTE

func EnLTE(v string) predicate.ComponentTag

EnLTE applies the LTE predicate on the "en" field.

func EnNEQ

func EnNEQ(v string) predicate.ComponentTag

EnNEQ applies the NEQ predicate on the "en" field.

func EnNotIn

func EnNotIn(vs ...string) predicate.ComponentTag

EnNotIn applies the NotIn predicate on the "en" field.

func HasComponentTag

func HasComponentTag() predicate.ComponentTag

HasComponentTag applies the HasEdge predicate on the "component_tag" edge.

func HasComponentTagWith

func HasComponentTagWith(preds ...predicate.Component) predicate.ComponentTag

HasComponentTagWith applies the HasEdge predicate on the "component_tag" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.ComponentTag

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.ComponentTag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.ComponentTag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.ComponentTag

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.ComponentTag

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.ComponentTag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.ComponentTag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.ComponentTag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ComponentTag) predicate.ComponentTag

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).

func Zh

Zh applies equality check predicate on the "zh" field. It's identical to ZhEQ.

func ZhContains

func ZhContains(v string) predicate.ComponentTag

ZhContains applies the Contains predicate on the "zh" field.

func ZhContainsFold

func ZhContainsFold(v string) predicate.ComponentTag

ZhContainsFold applies the ContainsFold predicate on the "zh" field.

func ZhEQ

ZhEQ applies the EQ predicate on the "zh" field.

func ZhEqualFold

func ZhEqualFold(v string) predicate.ComponentTag

ZhEqualFold applies the EqualFold predicate on the "zh" field.

func ZhGT

ZhGT applies the GT predicate on the "zh" field.

func ZhGTE

func ZhGTE(v string) predicate.ComponentTag

ZhGTE applies the GTE predicate on the "zh" field.

func ZhHasPrefix

func ZhHasPrefix(v string) predicate.ComponentTag

ZhHasPrefix applies the HasPrefix predicate on the "zh" field.

func ZhHasSuffix

func ZhHasSuffix(v string) predicate.ComponentTag

ZhHasSuffix applies the HasSuffix predicate on the "zh" field.

func ZhIn

func ZhIn(vs ...string) predicate.ComponentTag

ZhIn applies the In predicate on the "zh" field.

func ZhLT

ZhLT applies the LT predicate on the "zh" field.

func ZhLTE

func ZhLTE(v string) predicate.ComponentTag

ZhLTE applies the LTE predicate on the "zh" field.

func ZhNEQ

func ZhNEQ(v string) predicate.ComponentTag

ZhNEQ applies the NEQ predicate on the "zh" field.

func ZhNotIn

func ZhNotIn(vs ...string) predicate.ComponentTag

ZhNotIn applies the NotIn predicate on the "zh" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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