employee

package
v0.0.0-...-3daddd1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for employee fields.

Functions

func And

func And(predicates ...predicate.Employee) predicate.Employee

And groups predicates with the AND operator between them.

func CSP

func CSP(v bool) predicate.Employee

CSP applies equality check predicate on the "CSP" field. It's identical to CSPEQ.

func CSPEQ

func CSPEQ(v bool) predicate.Employee

CSPEQ applies the EQ predicate on the "CSP" field.

func CSPNEQ

func CSPNEQ(v bool) predicate.Employee

CSPNEQ applies the NEQ predicate on the "CSP" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Employee

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Employee

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Employee

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Employee

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Employee

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Employee

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Employee

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Employee

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Employee

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasMission

func HasMission() predicate.Employee

HasMission applies the HasEdge predicate on the "mission" edge.

func HasMissionWith

func HasMissionWith(preds ...predicate.Mission) predicate.Employee

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

func ID

func ID(id int) predicate.Employee

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Employee

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Employee

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Employee

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Employee

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Employee

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Employee

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Employee

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

func NameContains

func NameContains(v string) predicate.Employee

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

func NameContainsFold

func NameContainsFold(v string) predicate.Employee

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

func NameEQ

func NameEQ(v string) predicate.Employee

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

func NameEqualFold

func NameEqualFold(v string) predicate.Employee

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

func NameGT

func NameGT(v string) predicate.Employee

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

func NameGTE

func NameGTE(v string) predicate.Employee

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Employee

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Employee

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Employee

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

func NameLTE

func NameLTE(v string) predicate.Employee

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

func NameNEQ

func NameNEQ(v string) predicate.Employee

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Occupation

func Occupation(v string) predicate.Employee

Occupation applies equality check predicate on the "occupation" field. It's identical to OccupationEQ.

func OccupationContains

func OccupationContains(v string) predicate.Employee

OccupationContains applies the Contains predicate on the "occupation" field.

func OccupationContainsFold

func OccupationContainsFold(v string) predicate.Employee

OccupationContainsFold applies the ContainsFold predicate on the "occupation" field.

func OccupationEQ

func OccupationEQ(v string) predicate.Employee

OccupationEQ applies the EQ predicate on the "occupation" field.

func OccupationEqualFold

func OccupationEqualFold(v string) predicate.Employee

OccupationEqualFold applies the EqualFold predicate on the "occupation" field.

func OccupationGT

func OccupationGT(v string) predicate.Employee

OccupationGT applies the GT predicate on the "occupation" field.

func OccupationGTE

func OccupationGTE(v string) predicate.Employee

OccupationGTE applies the GTE predicate on the "occupation" field.

func OccupationHasPrefix

func OccupationHasPrefix(v string) predicate.Employee

OccupationHasPrefix applies the HasPrefix predicate on the "occupation" field.

func OccupationHasSuffix

func OccupationHasSuffix(v string) predicate.Employee

OccupationHasSuffix applies the HasSuffix predicate on the "occupation" field.

func OccupationIn

func OccupationIn(vs ...string) predicate.Employee

OccupationIn applies the In predicate on the "occupation" field.

func OccupationIsNil

func OccupationIsNil() predicate.Employee

OccupationIsNil applies the IsNil predicate on the "occupation" field.

func OccupationLT

func OccupationLT(v string) predicate.Employee

OccupationLT applies the LT predicate on the "occupation" field.

func OccupationLTE

func OccupationLTE(v string) predicate.Employee

OccupationLTE applies the LTE predicate on the "occupation" field.

func OccupationNEQ

func OccupationNEQ(v string) predicate.Employee

OccupationNEQ applies the NEQ predicate on the "occupation" field.

func OccupationNotIn

func OccupationNotIn(vs ...string) predicate.Employee

OccupationNotIn applies the NotIn predicate on the "occupation" field.

func OccupationNotNil

func OccupationNotNil() predicate.Employee

OccupationNotNil applies the NotNil predicate on the "occupation" field.

func Or

func Or(predicates ...predicate.Employee) predicate.Employee

Or groups predicates with the OR operator between them.

func Phone

func Phone(v int) predicate.Employee

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneEQ

func PhoneEQ(v int) predicate.Employee

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneGT

func PhoneGT(v int) predicate.Employee

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v int) predicate.Employee

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...int) predicate.Employee

PhoneIn applies the In predicate on the "phone" field.

func PhoneLT

func PhoneLT(v int) predicate.Employee

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v int) predicate.Employee

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v int) predicate.Employee

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...int) predicate.Employee

PhoneNotIn applies the NotIn predicate on the "phone" 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 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.

Jump to

Keyboard shortcuts

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