skilltag

package
v0.0.0-...-f0d0762 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the skilltag type in the database.
	Label = "skill_tag"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldOrder holds the string denoting the order field in the database.
	FieldOrder = "order"
	// EdgeSkills holds the string denoting the skills edge name in mutations.
	EdgeSkills = "skills"
	// Table holds the table name of the skilltag in the database.
	Table = "skill_tags"
	// SkillsTable is the table that holds the skills relation/edge.
	SkillsTable = "skills"
	// SkillsInverseTable is the table name for the Skill entity.
	// It exists in this package in order to avoid circular dependency with the "skill" package.
	SkillsInverseTable = "skills"
	// SkillsColumn is the table column denoting the skills relation/edge.
	SkillsColumn = "tag_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultOrder holds the default value on creation for the "order" field.
	DefaultOrder int
	// OrderValidator is a validator for the "order" field. It is called by the builders before save.
	OrderValidator func(int) error
)

Columns holds all SQL columns for skilltag fields.

Functions

func And

func And(predicates ...predicate.SkillTag) predicate.SkillTag

And groups predicates with the AND operator between them.

func HasSkills

func HasSkills() predicate.SkillTag

HasSkills applies the HasEdge predicate on the "skills" edge.

func HasSkillsWith

func HasSkillsWith(preds ...predicate.Skill) predicate.SkillTag

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

func ID

func ID(id int) predicate.SkillTag

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SkillTag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SkillTag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SkillTag

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SkillTag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SkillTag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SkillTag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.SkillTag

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.SkillTag

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.SkillTag

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.SkillTag

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.SkillTag

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.SkillTag

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.SkillTag

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.SkillTag

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.SkillTag

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.SkillTag

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.SkillTag

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.SkillTag

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.SkillTag

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.SkillTag

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SkillTag) predicate.SkillTag

Or groups predicates with the OR operator between them.

func Order

func Order(v int) predicate.SkillTag

Order applies equality check predicate on the "order" field. It's identical to OrderEQ.

func OrderEQ

func OrderEQ(v int) predicate.SkillTag

OrderEQ applies the EQ predicate on the "order" field.

func OrderGT

func OrderGT(v int) predicate.SkillTag

OrderGT applies the GT predicate on the "order" field.

func OrderGTE

func OrderGTE(v int) predicate.SkillTag

OrderGTE applies the GTE predicate on the "order" field.

func OrderIn

func OrderIn(vs ...int) predicate.SkillTag

OrderIn applies the In predicate on the "order" field.

func OrderLT

func OrderLT(v int) predicate.SkillTag

OrderLT applies the LT predicate on the "order" field.

func OrderLTE

func OrderLTE(v int) predicate.SkillTag

OrderLTE applies the LTE predicate on the "order" field.

func OrderNEQ

func OrderNEQ(v int) predicate.SkillTag

OrderNEQ applies the NEQ predicate on the "order" field.

func OrderNotIn

func OrderNotIn(vs ...int) predicate.SkillTag

OrderNotIn applies the NotIn predicate on the "order" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the SkillTag queries.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByOrder

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

ByOrder orders the results by the order field.

func BySkills

func BySkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySkills orders the results by skills terms.

func BySkillsCount

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

BySkillsCount orders the results by skills count.

Jump to

Keyboard shortcuts

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