Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SkillTag) predicate.SkillTag
- func HasSkills() predicate.SkillTag
- func HasSkillsWith(preds ...predicate.Skill) predicate.SkillTag
- func ID(id int) predicate.SkillTag
- func IDEQ(id int) predicate.SkillTag
- func IDGT(id int) predicate.SkillTag
- func IDGTE(id int) predicate.SkillTag
- func IDIn(ids ...int) predicate.SkillTag
- func IDLT(id int) predicate.SkillTag
- func IDLTE(id int) predicate.SkillTag
- func IDNEQ(id int) predicate.SkillTag
- func IDNotIn(ids ...int) predicate.SkillTag
- func Name(v string) predicate.SkillTag
- func NameContains(v string) predicate.SkillTag
- func NameContainsFold(v string) predicate.SkillTag
- func NameEQ(v string) predicate.SkillTag
- func NameEqualFold(v string) predicate.SkillTag
- func NameGT(v string) predicate.SkillTag
- func NameGTE(v string) predicate.SkillTag
- func NameHasPrefix(v string) predicate.SkillTag
- func NameHasSuffix(v string) predicate.SkillTag
- func NameIn(vs ...string) predicate.SkillTag
- func NameLT(v string) predicate.SkillTag
- func NameLTE(v string) predicate.SkillTag
- func NameNEQ(v string) predicate.SkillTag
- func NameNotIn(vs ...string) predicate.SkillTag
- func Not(p predicate.SkillTag) predicate.SkillTag
- func Or(predicates ...predicate.SkillTag) predicate.SkillTag
- func Order(v int) predicate.SkillTag
- func OrderEQ(v int) predicate.SkillTag
- func OrderGT(v int) predicate.SkillTag
- func OrderGTE(v int) predicate.SkillTag
- func OrderIn(vs ...int) predicate.SkillTag
- func OrderLT(v int) predicate.SkillTag
- func OrderLTE(v int) predicate.SkillTag
- func OrderNEQ(v int) predicate.SkillTag
- func OrderNotIn(vs ...int) predicate.SkillTag
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldOrder, }
Columns holds all SQL columns for skilltag fields.
Functions ¶
func HasSkillsWith ¶
HasSkillsWith applies the HasEdge predicate on the "skills" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Order ¶
Order applies equality check predicate on the "order" field. It's identical to OrderEQ.
func OrderNotIn ¶
OrderNotIn applies the NotIn predicate on the "order" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.