Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Employee) predicate.Employee
- func BirthDate(v time.Time) predicate.Employee
- func BirthDateEQ(v time.Time) predicate.Employee
- func BirthDateGT(v time.Time) predicate.Employee
- func BirthDateGTE(v time.Time) predicate.Employee
- func BirthDateIn(vs ...time.Time) predicate.Employee
- func BirthDateLT(v time.Time) predicate.Employee
- func BirthDateLTE(v time.Time) predicate.Employee
- func BirthDateNEQ(v time.Time) predicate.Employee
- func BirthDateNotIn(vs ...time.Time) 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 DeletedAt(v time.Time) predicate.Employee
- func DeletedAtEQ(v time.Time) predicate.Employee
- func DeletedAtGT(v time.Time) predicate.Employee
- func DeletedAtGTE(v time.Time) predicate.Employee
- func DeletedAtIn(vs ...time.Time) predicate.Employee
- func DeletedAtIsNil() predicate.Employee
- func DeletedAtLT(v time.Time) predicate.Employee
- func DeletedAtLTE(v time.Time) predicate.Employee
- func DeletedAtNEQ(v time.Time) predicate.Employee
- func DeletedAtNotIn(vs ...time.Time) predicate.Employee
- func DeletedAtNotNil() predicate.Employee
- func FirstName(v string) predicate.Employee
- func FirstNameContains(v string) predicate.Employee
- func FirstNameContainsFold(v string) predicate.Employee
- func FirstNameEQ(v string) predicate.Employee
- func FirstNameEqualFold(v string) predicate.Employee
- func FirstNameGT(v string) predicate.Employee
- func FirstNameGTE(v string) predicate.Employee
- func FirstNameHasPrefix(v string) predicate.Employee
- func FirstNameHasSuffix(v string) predicate.Employee
- func FirstNameIn(vs ...string) predicate.Employee
- func FirstNameLT(v string) predicate.Employee
- func FirstNameLTE(v string) predicate.Employee
- func FirstNameNEQ(v string) predicate.Employee
- func FirstNameNotIn(vs ...string) predicate.Employee
- func GenderEQ(v Gender) predicate.Employee
- func GenderIn(vs ...Gender) predicate.Employee
- func GenderNEQ(v Gender) predicate.Employee
- func GenderNotIn(vs ...Gender) predicate.Employee
- func GenderValidator(ge Gender) error
- func HasDeptManager() predicate.Employee
- func HasDeptManagerWith(preds ...predicate.DeptManager) predicate.Employee
- func HireDate(v time.Time) predicate.Employee
- func HireDateEQ(v time.Time) predicate.Employee
- func HireDateGT(v time.Time) predicate.Employee
- func HireDateGTE(v time.Time) predicate.Employee
- func HireDateIn(vs ...time.Time) predicate.Employee
- func HireDateLT(v time.Time) predicate.Employee
- func HireDateLTE(v time.Time) predicate.Employee
- func HireDateNEQ(v time.Time) predicate.Employee
- func HireDateNotIn(vs ...time.Time) 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 LastName(v string) predicate.Employee
- func LastNameContains(v string) predicate.Employee
- func LastNameContainsFold(v string) predicate.Employee
- func LastNameEQ(v string) predicate.Employee
- func LastNameEqualFold(v string) predicate.Employee
- func LastNameGT(v string) predicate.Employee
- func LastNameGTE(v string) predicate.Employee
- func LastNameHasPrefix(v string) predicate.Employee
- func LastNameHasSuffix(v string) predicate.Employee
- func LastNameIn(vs ...string) predicate.Employee
- func LastNameLT(v string) predicate.Employee
- func LastNameLTE(v string) predicate.Employee
- func LastNameNEQ(v string) predicate.Employee
- func LastNameNotIn(vs ...string) predicate.Employee
- func Not(p predicate.Employee) predicate.Employee
- func Or(predicates ...predicate.Employee) predicate.Employee
- func UpdatedAt(v time.Time) predicate.Employee
- func UpdatedAtEQ(v time.Time) predicate.Employee
- func UpdatedAtGT(v time.Time) predicate.Employee
- func UpdatedAtGTE(v time.Time) predicate.Employee
- func UpdatedAtIn(vs ...time.Time) predicate.Employee
- func UpdatedAtLT(v time.Time) predicate.Employee
- func UpdatedAtLTE(v time.Time) predicate.Employee
- func UpdatedAtNEQ(v time.Time) predicate.Employee
- func UpdatedAtNotIn(vs ...time.Time) predicate.Employee
- func ValidColumn(column string) bool
- type Gender
- type OrderOption
- func ByBirthDate(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeptManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDeptManagerCount(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByGender(opts ...sql.OrderTermOption) OrderOption
- func ByHireDate(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldBirthDate holds the string denoting the birth_date field in the database. FieldBirthDate = "birth_date" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldGender holds the string denoting the gender field in the database. FieldGender = "gender" // FieldHireDate holds the string denoting the hire_date field in the database. FieldHireDate = "hire_date" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgeDeptManager holds the string denoting the dept_manager edge name in mutations. EdgeDeptManager = "dept_manager" // Table holds the table name of the employee in the database. Table = "employees" // DeptManagerTable is the table that holds the dept_manager relation/edge. DeptManagerTable = "dept_managers" // DeptManagerInverseTable is the table name for the DeptManager entity. // It exists in this package in order to avoid circular dependency with the "deptmanager" package. DeptManagerInverseTable = "dept_managers" // DeptManagerColumn is the table column denoting the dept_manager relation/edge. DeptManagerColumn = "employee_dept_manager" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldBirthDate, FieldFirstName, FieldLastName, FieldGender, FieldHireDate, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for employee fields.
Functions ¶
func BirthDate ¶
BirthDate applies equality check predicate on the "birth_date" field. It's identical to BirthDateEQ.
func BirthDateEQ ¶
BirthDateEQ applies the EQ predicate on the "birth_date" field.
func BirthDateGT ¶
BirthDateGT applies the GT predicate on the "birth_date" field.
func BirthDateGTE ¶
BirthDateGTE applies the GTE predicate on the "birth_date" field.
func BirthDateIn ¶
BirthDateIn applies the In predicate on the "birth_date" field.
func BirthDateLT ¶
BirthDateLT applies the LT predicate on the "birth_date" field.
func BirthDateLTE ¶
BirthDateLTE applies the LTE predicate on the "birth_date" field.
func BirthDateNEQ ¶
BirthDateNEQ applies the NEQ predicate on the "birth_date" field.
func BirthDateNotIn ¶
BirthDateNotIn applies the NotIn predicate on the "birth_date" field.
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func GenderNotIn ¶
GenderNotIn applies the NotIn predicate on the "gender" field.
func GenderValidator ¶
GenderValidator is a validator for the "gender" field enum values. It is called by the builders before save.
func HasDeptManager ¶
HasDeptManager applies the HasEdge predicate on the "dept_manager" edge.
func HasDeptManagerWith ¶
func HasDeptManagerWith(preds ...predicate.DeptManager) predicate.Employee
HasDeptManagerWith applies the HasEdge predicate on the "dept_manager" edge with a given conditions (other predicates).
func HireDate ¶
HireDate applies equality check predicate on the "hire_date" field. It's identical to HireDateEQ.
func HireDateEQ ¶
HireDateEQ applies the EQ predicate on the "hire_date" field.
func HireDateGT ¶
HireDateGT applies the GT predicate on the "hire_date" field.
func HireDateGTE ¶
HireDateGTE applies the GTE predicate on the "hire_date" field.
func HireDateIn ¶
HireDateIn applies the In predicate on the "hire_date" field.
func HireDateLT ¶
HireDateLT applies the LT predicate on the "hire_date" field.
func HireDateLTE ¶
HireDateLTE applies the LTE predicate on the "hire_date" field.
func HireDateNEQ ¶
HireDateNEQ applies the NEQ predicate on the "hire_date" field.
func HireDateNotIn ¶
HireDateNotIn applies the NotIn predicate on the "hire_date" field.
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ByBirthDate ¶
func ByBirthDate(opts ...sql.OrderTermOption) OrderOption
ByBirthDate orders the results by the birth_date field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeptManager ¶
func ByDeptManager(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDeptManager orders the results by dept_manager terms.
func ByDeptManagerCount ¶
func ByDeptManagerCount(opts ...sql.OrderTermOption) OrderOption
ByDeptManagerCount orders the results by dept_manager count.
func ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name field.
func ByGender ¶
func ByGender(opts ...sql.OrderTermOption) OrderOption
ByGender orders the results by the gender field.
func ByHireDate ¶
func ByHireDate(opts ...sql.OrderTermOption) OrderOption
ByHireDate orders the results by the hire_date field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.