Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Employee) predicate.Employee
- func CSP(v bool) predicate.Employee
- func CSPEQ(v bool) predicate.Employee
- func CSPNEQ(v bool) predicate.Employee
- func CreatedAt(v time.Time) predicate.Employee
- func CreatedAtEQ(v time.Time) predicate.Employee
- func CreatedAtGT(v time.Time) predicate.Employee
- func CreatedAtGTE(v time.Time) predicate.Employee
- func CreatedAtIn(vs ...time.Time) predicate.Employee
- func CreatedAtLT(v time.Time) predicate.Employee
- func CreatedAtLTE(v time.Time) predicate.Employee
- func CreatedAtNEQ(v time.Time) predicate.Employee
- func CreatedAtNotIn(vs ...time.Time) predicate.Employee
- func HasMission() predicate.Employee
- func HasMissionWith(preds ...predicate.Mission) predicate.Employee
- func ID(id int) predicate.Employee
- func IDEQ(id int) predicate.Employee
- func IDGT(id int) predicate.Employee
- func IDGTE(id int) predicate.Employee
- func IDIn(ids ...int) predicate.Employee
- func IDLT(id int) predicate.Employee
- func IDLTE(id int) predicate.Employee
- func IDNEQ(id int) predicate.Employee
- func IDNotIn(ids ...int) predicate.Employee
- func Name(v string) predicate.Employee
- func NameContains(v string) predicate.Employee
- func NameContainsFold(v string) predicate.Employee
- func NameEQ(v string) predicate.Employee
- func NameEqualFold(v string) predicate.Employee
- func NameGT(v string) predicate.Employee
- func NameGTE(v string) predicate.Employee
- func NameHasPrefix(v string) predicate.Employee
- func NameHasSuffix(v string) predicate.Employee
- func NameIn(vs ...string) predicate.Employee
- func NameLT(v string) predicate.Employee
- func NameLTE(v string) predicate.Employee
- func NameNEQ(v string) predicate.Employee
- func NameNotIn(vs ...string) predicate.Employee
- func Not(p predicate.Employee) predicate.Employee
- func Occupation(v string) predicate.Employee
- func OccupationContains(v string) predicate.Employee
- func OccupationContainsFold(v string) predicate.Employee
- func OccupationEQ(v string) predicate.Employee
- func OccupationEqualFold(v string) predicate.Employee
- func OccupationGT(v string) predicate.Employee
- func OccupationGTE(v string) predicate.Employee
- func OccupationHasPrefix(v string) predicate.Employee
- func OccupationHasSuffix(v string) predicate.Employee
- func OccupationIn(vs ...string) predicate.Employee
- func OccupationIsNil() predicate.Employee
- func OccupationLT(v string) predicate.Employee
- func OccupationLTE(v string) predicate.Employee
- func OccupationNEQ(v string) predicate.Employee
- func OccupationNotIn(vs ...string) predicate.Employee
- func OccupationNotNil() predicate.Employee
- func Or(predicates ...predicate.Employee) predicate.Employee
- func Phone(v int) predicate.Employee
- func PhoneEQ(v int) predicate.Employee
- func PhoneGT(v int) predicate.Employee
- func PhoneGTE(v int) predicate.Employee
- func PhoneIn(vs ...int) predicate.Employee
- func PhoneLT(v int) predicate.Employee
- func PhoneLTE(v int) predicate.Employee
- func PhoneNEQ(v int) predicate.Employee
- func PhoneNotIn(vs ...int) predicate.Employee
- func ValidColumn(column string) bool
- type OrderOption
- func ByCSP(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMission(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMissionCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOccupation(opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the employee type in the database. Label = "employee" // 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" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldCSP holds the string denoting the csp field in the database. FieldCSP = "csp" // FieldOccupation holds the string denoting the occupation field in the database. FieldOccupation = "occupation" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeMission holds the string denoting the mission edge name in mutations. EdgeMission = "mission" // Table holds the table name of the employee in the database. Table = "employees" // MissionTable is the table that holds the mission relation/edge. MissionTable = "missions" // MissionInverseTable is the table name for the Mission entity. // It exists in this package in order to avoid circular dependency with the "mission" package. MissionInverseTable = "missions" // MissionColumn is the table column denoting the mission relation/edge. MissionColumn = "mission_employee" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCSP holds the default value on creation for the "CSP" field. DefaultCSP bool // OccupationValidator is a validator for the "occupation" field. It is called by the builders before save. OccupationValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldPhone, FieldCSP, FieldOccupation, FieldCreatedAt, }
Columns holds all SQL columns for employee fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasMission ¶
HasMission applies the HasEdge predicate on the "mission" edge.
func HasMissionWith ¶
HasMissionWith applies the HasEdge predicate on the "mission" 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 Occupation ¶
Occupation applies equality check predicate on the "occupation" field. It's identical to OccupationEQ.
func OccupationContains ¶
OccupationContains applies the Contains predicate on the "occupation" field.
func OccupationContainsFold ¶
OccupationContainsFold applies the ContainsFold predicate on the "occupation" field.
func OccupationEQ ¶
OccupationEQ applies the EQ predicate on the "occupation" field.
func OccupationEqualFold ¶
OccupationEqualFold applies the EqualFold predicate on the "occupation" field.
func OccupationGT ¶
OccupationGT applies the GT predicate on the "occupation" field.
func OccupationGTE ¶
OccupationGTE applies the GTE predicate on the "occupation" field.
func OccupationHasPrefix ¶
OccupationHasPrefix applies the HasPrefix predicate on the "occupation" field.
func OccupationHasSuffix ¶
OccupationHasSuffix applies the HasSuffix predicate on the "occupation" field.
func OccupationIn ¶
OccupationIn applies the In predicate on the "occupation" field.
func OccupationIsNil ¶
OccupationIsNil applies the IsNil predicate on the "occupation" field.
func OccupationLT ¶
OccupationLT applies the LT predicate on the "occupation" field.
func OccupationLTE ¶
OccupationLTE applies the LTE predicate on the "occupation" field.
func OccupationNEQ ¶
OccupationNEQ applies the NEQ predicate on the "occupation" field.
func OccupationNotIn ¶
OccupationNotIn applies the NotIn predicate on the "occupation" field.
func OccupationNotNil ¶
OccupationNotNil applies the NotNil predicate on the "occupation" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" 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 Employee queries.
func ByCSP ¶
func ByCSP(opts ...sql.OrderTermOption) OrderOption
ByCSP orders the results by the CSP field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMission ¶
func ByMission(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMission orders the results by mission terms.
func ByMissionCount ¶
func ByMissionCount(opts ...sql.OrderTermOption) OrderOption
ByMissionCount orders the results by mission count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOccupation ¶
func ByOccupation(opts ...sql.OrderTermOption) OrderOption
ByOccupation orders the results by the occupation field.
func ByPhone ¶
func ByPhone(opts ...sql.OrderTermOption) OrderOption
ByPhone orders the results by the phone field.