Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Skill) predicate.Skill
- func CreateTime(v time.Time) predicate.Skill
- func CreateTimeEQ(v time.Time) predicate.Skill
- func CreateTimeGT(v time.Time) predicate.Skill
- func CreateTimeGTE(v time.Time) predicate.Skill
- func CreateTimeIn(vs ...time.Time) predicate.Skill
- func CreateTimeLT(v time.Time) predicate.Skill
- func CreateTimeLTE(v time.Time) predicate.Skill
- func CreateTimeNEQ(v time.Time) predicate.Skill
- func CreateTimeNotIn(vs ...time.Time) predicate.Skill
- func HasCareerSkills() predicate.Skill
- func HasCareerSkillsWith(preds ...predicate.CareerSkill) predicate.Skill
- func HasSkillTag() predicate.Skill
- func HasSkillTagWith(preds ...predicate.SkillTag) predicate.Skill
- func ID(id int) predicate.Skill
- func IDEQ(id int) predicate.Skill
- func IDGT(id int) predicate.Skill
- func IDGTE(id int) predicate.Skill
- func IDIn(ids ...int) predicate.Skill
- func IDLT(id int) predicate.Skill
- func IDLTE(id int) predicate.Skill
- func IDNEQ(id int) predicate.Skill
- func IDNotIn(ids ...int) predicate.Skill
- func Name(v string) predicate.Skill
- func NameContains(v string) predicate.Skill
- func NameContainsFold(v string) predicate.Skill
- func NameEQ(v string) predicate.Skill
- func NameEqualFold(v string) predicate.Skill
- func NameGT(v string) predicate.Skill
- func NameGTE(v string) predicate.Skill
- func NameHasPrefix(v string) predicate.Skill
- func NameHasSuffix(v string) predicate.Skill
- func NameIn(vs ...string) predicate.Skill
- func NameLT(v string) predicate.Skill
- func NameLTE(v string) predicate.Skill
- func NameNEQ(v string) predicate.Skill
- func NameNotIn(vs ...string) predicate.Skill
- func Not(p predicate.Skill) predicate.Skill
- func Or(predicates ...predicate.Skill) predicate.Skill
- func URL(v string) predicate.Skill
- func URLContains(v string) predicate.Skill
- func URLContainsFold(v string) predicate.Skill
- func URLEQ(v string) predicate.Skill
- func URLEqualFold(v string) predicate.Skill
- func URLGT(v string) predicate.Skill
- func URLGTE(v string) predicate.Skill
- func URLHasPrefix(v string) predicate.Skill
- func URLHasSuffix(v string) predicate.Skill
- func URLIn(vs ...string) predicate.Skill
- func URLIsNil() predicate.Skill
- func URLLT(v string) predicate.Skill
- func URLLTE(v string) predicate.Skill
- func URLNEQ(v string) predicate.Skill
- func URLNotIn(vs ...string) predicate.Skill
- func URLNotNil() predicate.Skill
- func UpdateTime(v time.Time) predicate.Skill
- func UpdateTimeEQ(v time.Time) predicate.Skill
- func UpdateTimeGT(v time.Time) predicate.Skill
- func UpdateTimeGTE(v time.Time) predicate.Skill
- func UpdateTimeIn(vs ...time.Time) predicate.Skill
- func UpdateTimeLT(v time.Time) predicate.Skill
- func UpdateTimeLTE(v time.Time) predicate.Skill
- func UpdateTimeNEQ(v time.Time) predicate.Skill
- func UpdateTimeNotIn(vs ...time.Time) predicate.Skill
- func ValidColumn(column string) bool
- type OrderOption
- func ByCareerSkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCareerSkillsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySkillTagField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the skill type in the database. Label = "skill" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // EdgeSkillTag holds the string denoting the skilltag edge name in mutations. EdgeSkillTag = "skillTag" // EdgeCareerSkills holds the string denoting the careerskills edge name in mutations. EdgeCareerSkills = "careerSkills" // Table holds the table name of the skill in the database. Table = "skills" // SkillTagTable is the table that holds the skillTag relation/edge. SkillTagTable = "skills" // SkillTagInverseTable is the table name for the SkillTag entity. // It exists in this package in order to avoid circular dependency with the "skilltag" package. SkillTagInverseTable = "skill_tags" // SkillTagColumn is the table column denoting the skillTag relation/edge. SkillTagColumn = "tag_id" // CareerSkillsTable is the table that holds the careerSkills relation/edge. CareerSkillsTable = "career_skills" // CareerSkillsInverseTable is the table name for the CareerSkill entity. // It exists in this package in order to avoid circular dependency with the "careerskill" package. CareerSkillsInverseTable = "career_skills" // CareerSkillsColumn is the table column denoting the careerSkills relation/edge. CareerSkillsColumn = "skill_id" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldURL, }
Columns holds all SQL columns for skill fields.
var ForeignKeys = []string{
"tag_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "skills" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasCareerSkills ¶
HasCareerSkills applies the HasEdge predicate on the "careerSkills" edge.
func HasCareerSkillsWith ¶
func HasCareerSkillsWith(preds ...predicate.CareerSkill) predicate.Skill
HasCareerSkillsWith applies the HasEdge predicate on the "careerSkills" edge with a given conditions (other predicates).
func HasSkillTag ¶
HasSkillTag applies the HasEdge predicate on the "skillTag" edge.
func HasSkillTagWith ¶
HasSkillTagWith applies the HasEdge predicate on the "skillTag" 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 URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Skill queries.
func ByCareerSkills ¶
func ByCareerSkills(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCareerSkills orders the results by careerSkills terms.
func ByCareerSkillsCount ¶
func ByCareerSkillsCount(opts ...sql.OrderTermOption) OrderOption
ByCareerSkillsCount orders the results by careerSkills count.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
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 BySkillTagField ¶
func BySkillTagField(field string, opts ...sql.OrderTermOption) OrderOption
BySkillTagField orders the results by skillTag field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.