skill

package
v0.0.0-...-1638109 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for skill fields.

View Source
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 And

func And(predicates ...predicate.Skill) predicate.Skill

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Skill

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Skill

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Skill

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Skill

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Skill

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Skill

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Skill

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

func CreateTimeNotIn

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

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

func HasCareerSkills

func HasCareerSkills() predicate.Skill

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

func HasSkillTag() predicate.Skill

HasSkillTag applies the HasEdge predicate on the "skillTag" edge.

func HasSkillTagWith

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

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

func ID

func ID(id int) predicate.Skill

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Skill

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Skill

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Skill

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Skill

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Skill

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Skill

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Skill

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

func NameContains

func NameContains(v string) predicate.Skill

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

func NameContainsFold

func NameContainsFold(v string) predicate.Skill

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

func NameEQ

func NameEQ(v string) predicate.Skill

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

func NameEqualFold

func NameEqualFold(v string) predicate.Skill

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

func NameGT

func NameGT(v string) predicate.Skill

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

func NameGTE

func NameGTE(v string) predicate.Skill

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Skill

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Skill

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Skill

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

func NameLTE

func NameLTE(v string) predicate.Skill

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

func NameNEQ

func NameNEQ(v string) predicate.Skill

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func URL

func URL(v string) predicate.Skill

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Skill

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Skill

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Skill

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Skill

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Skill

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Skill

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Skill

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Skill

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Skill

URLIn applies the In predicate on the "url" field.

func URLIsNil

func URLIsNil() predicate.Skill

URLIsNil applies the IsNil predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Skill

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Skill

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Skill

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Skill

URLNotIn applies the NotIn predicate on the "url" field.

func URLNotNil

func URLNotNil() predicate.Skill

URLNotNil applies the NotNil predicate on the "url" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Skill

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Skill

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Skill

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Skill

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Skill

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Skill

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Skill

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Skill

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Skill

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 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.

Jump to

Keyboard shortcuts

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