Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Operator) predicate.Operator
- func Email(v string) predicate.Operator
- func EmailContains(v string) predicate.Operator
- func EmailContainsFold(v string) predicate.Operator
- func EmailEQ(v string) predicate.Operator
- func EmailEqualFold(v string) predicate.Operator
- func EmailGT(v string) predicate.Operator
- func EmailGTE(v string) predicate.Operator
- func EmailHasPrefix(v string) predicate.Operator
- func EmailHasSuffix(v string) predicate.Operator
- func EmailIn(vs ...string) predicate.Operator
- func EmailLT(v string) predicate.Operator
- func EmailLTE(v string) predicate.Operator
- func EmailNEQ(v string) predicate.Operator
- func EmailNotIn(vs ...string) predicate.Operator
- func Firstname(v string) predicate.Operator
- func FirstnameContains(v string) predicate.Operator
- func FirstnameContainsFold(v string) predicate.Operator
- func FirstnameEQ(v string) predicate.Operator
- func FirstnameEqualFold(v string) predicate.Operator
- func FirstnameGT(v string) predicate.Operator
- func FirstnameGTE(v string) predicate.Operator
- func FirstnameHasPrefix(v string) predicate.Operator
- func FirstnameHasSuffix(v string) predicate.Operator
- func FirstnameIn(vs ...string) predicate.Operator
- func FirstnameLT(v string) predicate.Operator
- func FirstnameLTE(v string) predicate.Operator
- func FirstnameNEQ(v string) predicate.Operator
- func FirstnameNotIn(vs ...string) predicate.Operator
- func HasBusinesses() predicate.Operator
- func HasBusinessesWith(preds ...predicate.Business) predicate.Operator
- func HasTimetable() predicate.Operator
- func HasTimetableWith(preds ...predicate.Timetable) predicate.Operator
- func ID(id uuid.UUID) predicate.Operator
- func IDEQ(id uuid.UUID) predicate.Operator
- func IDGT(id uuid.UUID) predicate.Operator
- func IDGTE(id uuid.UUID) predicate.Operator
- func IDIn(ids ...uuid.UUID) predicate.Operator
- func IDLT(id uuid.UUID) predicate.Operator
- func IDLTE(id uuid.UUID) predicate.Operator
- func IDNEQ(id uuid.UUID) predicate.Operator
- func IDNotIn(ids ...uuid.UUID) predicate.Operator
- func Not(p predicate.Operator) predicate.Operator
- func Or(predicates ...predicate.Operator) predicate.Operator
- func Surname(v string) predicate.Operator
- func SurnameContains(v string) predicate.Operator
- func SurnameContainsFold(v string) predicate.Operator
- func SurnameEQ(v string) predicate.Operator
- func SurnameEqualFold(v string) predicate.Operator
- func SurnameGT(v string) predicate.Operator
- func SurnameGTE(v string) predicate.Operator
- func SurnameHasPrefix(v string) predicate.Operator
- func SurnameHasSuffix(v string) predicate.Operator
- func SurnameIn(vs ...string) predicate.Operator
- func SurnameLT(v string) predicate.Operator
- func SurnameLTE(v string) predicate.Operator
- func SurnameNEQ(v string) predicate.Operator
- func SurnameNotIn(vs ...string) predicate.Operator
- func Title(v string) predicate.Operator
- func TitleContains(v string) predicate.Operator
- func TitleContainsFold(v string) predicate.Operator
- func TitleEQ(v string) predicate.Operator
- func TitleEqualFold(v string) predicate.Operator
- func TitleGT(v string) predicate.Operator
- func TitleGTE(v string) predicate.Operator
- func TitleHasPrefix(v string) predicate.Operator
- func TitleHasSuffix(v string) predicate.Operator
- func TitleIn(vs ...string) predicate.Operator
- func TitleIsNil() predicate.Operator
- func TitleLT(v string) predicate.Operator
- func TitleLTE(v string) predicate.Operator
- func TitleNEQ(v string) predicate.Operator
- func TitleNotIn(vs ...string) predicate.Operator
- func TitleNotNil() predicate.Operator
- func ValidColumn(column string) bool
- type OrderOption
- func ByBusinesses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBusinessesCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFirstname(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySurname(opts ...sql.OrderTermOption) OrderOption
- func ByTimetable(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTimetableCount(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the operator type in the database. Label = "operator" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSurname holds the string denoting the surname field in the database. FieldSurname = "surname" // FieldFirstname holds the string denoting the firstname field in the database. FieldFirstname = "firstname" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // EdgeBusinesses holds the string denoting the businesses edge name in mutations. EdgeBusinesses = "businesses" // EdgeTimetable holds the string denoting the timetable edge name in mutations. EdgeTimetable = "timetable" // Table holds the table name of the operator in the database. Table = "operators" // BusinessesTable is the table that holds the businesses relation/edge. The primary key declared below. BusinessesTable = "business_operators" // BusinessesInverseTable is the table name for the Business entity. // It exists in this package in order to avoid circular dependency with the "business" package. BusinessesInverseTable = "businesses" // TimetableTable is the table that holds the timetable relation/edge. The primary key declared below. TimetableTable = "timetable_operators_on_duty" // TimetableInverseTable is the table name for the Timetable entity. // It exists in this package in order to avoid circular dependency with the "timetable" package. TimetableInverseTable = "timetables" )
Variables ¶
var ( // BusinessesPrimaryKey and BusinessesColumn2 are the table columns denoting the // primary key for the businesses relation (M2M). BusinessesPrimaryKey = []string{"business_id", "operator_id"} // TimetablePrimaryKey and TimetableColumn2 are the table columns denoting the // primary key for the timetable relation (M2M). TimetablePrimaryKey = []string{"timetable_id", "operator_id"} )
var ( Hooks [1]ent.Hook Policy ent.Policy // SurnameValidator is a validator for the "surname" field. It is called by the builders before save. SurnameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/hkonitzer/ohmab/ent/runtime"
var Columns = []string{ FieldID, FieldSurname, FieldFirstname, FieldTitle, FieldEmail, }
Columns holds all SQL columns for operator fields.
Functions ¶
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func Firstname ¶
Firstname applies equality check predicate on the "firstname" field. It's identical to FirstnameEQ.
func FirstnameContains ¶
FirstnameContains applies the Contains predicate on the "firstname" field.
func FirstnameContainsFold ¶
FirstnameContainsFold applies the ContainsFold predicate on the "firstname" field.
func FirstnameEQ ¶
FirstnameEQ applies the EQ predicate on the "firstname" field.
func FirstnameEqualFold ¶
FirstnameEqualFold applies the EqualFold predicate on the "firstname" field.
func FirstnameGT ¶
FirstnameGT applies the GT predicate on the "firstname" field.
func FirstnameGTE ¶
FirstnameGTE applies the GTE predicate on the "firstname" field.
func FirstnameHasPrefix ¶
FirstnameHasPrefix applies the HasPrefix predicate on the "firstname" field.
func FirstnameHasSuffix ¶
FirstnameHasSuffix applies the HasSuffix predicate on the "firstname" field.
func FirstnameIn ¶
FirstnameIn applies the In predicate on the "firstname" field.
func FirstnameLT ¶
FirstnameLT applies the LT predicate on the "firstname" field.
func FirstnameLTE ¶
FirstnameLTE applies the LTE predicate on the "firstname" field.
func FirstnameNEQ ¶
FirstnameNEQ applies the NEQ predicate on the "firstname" field.
func FirstnameNotIn ¶
FirstnameNotIn applies the NotIn predicate on the "firstname" field.
func HasBusinesses ¶
HasBusinesses applies the HasEdge predicate on the "businesses" edge.
func HasBusinessesWith ¶
HasBusinessesWith applies the HasEdge predicate on the "businesses" edge with a given conditions (other predicates).
func HasTimetable ¶
HasTimetable applies the HasEdge predicate on the "timetable" edge.
func HasTimetableWith ¶
HasTimetableWith applies the HasEdge predicate on the "timetable" edge with a given conditions (other predicates).
func Surname ¶
Surname applies equality check predicate on the "surname" field. It's identical to SurnameEQ.
func SurnameContains ¶
SurnameContains applies the Contains predicate on the "surname" field.
func SurnameContainsFold ¶
SurnameContainsFold applies the ContainsFold predicate on the "surname" field.
func SurnameEqualFold ¶
SurnameEqualFold applies the EqualFold predicate on the "surname" field.
func SurnameGTE ¶
SurnameGTE applies the GTE predicate on the "surname" field.
func SurnameHasPrefix ¶
SurnameHasPrefix applies the HasPrefix predicate on the "surname" field.
func SurnameHasSuffix ¶
SurnameHasSuffix applies the HasSuffix predicate on the "surname" field.
func SurnameLTE ¶
SurnameLTE applies the LTE predicate on the "surname" field.
func SurnameNEQ ¶
SurnameNEQ applies the NEQ predicate on the "surname" field.
func SurnameNotIn ¶
SurnameNotIn applies the NotIn predicate on the "surname" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIsNil ¶
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
TitleNotNil applies the NotNil predicate on the "title" 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 Operator queries.
func ByBusinesses ¶
func ByBusinesses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBusinesses orders the results by businesses terms.
func ByBusinessesCount ¶
func ByBusinessesCount(opts ...sql.OrderTermOption) OrderOption
ByBusinessesCount orders the results by businesses count.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFirstname ¶
func ByFirstname(opts ...sql.OrderTermOption) OrderOption
ByFirstname orders the results by the firstname field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySurname ¶
func BySurname(opts ...sql.OrderTermOption) OrderOption
BySurname orders the results by the surname field.
func ByTimetable ¶
func ByTimetable(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTimetable orders the results by timetable terms.
func ByTimetableCount ¶
func ByTimetableCount(opts ...sql.OrderTermOption) OrderOption
ByTimetableCount orders the results by timetable count.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.