Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Event) predicate.Event
- func EndTime(v time.Time) predicate.Event
- func EndTimeEQ(v time.Time) predicate.Event
- func EndTimeGT(v time.Time) predicate.Event
- func EndTimeGTE(v time.Time) predicate.Event
- func EndTimeIn(vs ...time.Time) predicate.Event
- func EndTimeIsNil() predicate.Event
- func EndTimeLT(v time.Time) predicate.Event
- func EndTimeLTE(v time.Time) predicate.Event
- func EndTimeNEQ(v time.Time) predicate.Event
- func EndTimeNotIn(vs ...time.Time) predicate.Event
- func EndTimeNotNil() predicate.Event
- func HasGroup() predicate.Event
- func HasGroupWith(preds ...predicate.Group) predicate.Event
- func ID(id int) predicate.Event
- func IDEQ(id int) predicate.Event
- func IDGT(id int) predicate.Event
- func IDGTE(id int) predicate.Event
- func IDIn(ids ...int) predicate.Event
- func IDLT(id int) predicate.Event
- func IDLTE(id int) predicate.Event
- func IDNEQ(id int) predicate.Event
- func IDNotIn(ids ...int) predicate.Event
- func Location(v string) predicate.Event
- func LocationContains(v string) predicate.Event
- func LocationContainsFold(v string) predicate.Event
- func LocationEQ(v string) predicate.Event
- func LocationEqualFold(v string) predicate.Event
- func LocationGT(v string) predicate.Event
- func LocationGTE(v string) predicate.Event
- func LocationHasPrefix(v string) predicate.Event
- func LocationHasSuffix(v string) predicate.Event
- func LocationIn(vs ...string) predicate.Event
- func LocationIsNil() predicate.Event
- func LocationLT(v string) predicate.Event
- func LocationLTE(v string) predicate.Event
- func LocationNEQ(v string) predicate.Event
- func LocationNotIn(vs ...string) predicate.Event
- func LocationNotNil() predicate.Event
- func Name(v string) predicate.Event
- func NameContains(v string) predicate.Event
- func NameContainsFold(v string) predicate.Event
- func NameEQ(v string) predicate.Event
- func NameEqualFold(v string) predicate.Event
- func NameGT(v string) predicate.Event
- func NameGTE(v string) predicate.Event
- func NameHasPrefix(v string) predicate.Event
- func NameHasSuffix(v string) predicate.Event
- func NameIn(vs ...string) predicate.Event
- func NameLT(v string) predicate.Event
- func NameLTE(v string) predicate.Event
- func NameNEQ(v string) predicate.Event
- func NameNotIn(vs ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func RepeatPattern(v string) predicate.Event
- func RepeatPatternContains(v string) predicate.Event
- func RepeatPatternContainsFold(v string) predicate.Event
- func RepeatPatternEQ(v string) predicate.Event
- func RepeatPatternEqualFold(v string) predicate.Event
- func RepeatPatternGT(v string) predicate.Event
- func RepeatPatternGTE(v string) predicate.Event
- func RepeatPatternHasPrefix(v string) predicate.Event
- func RepeatPatternHasSuffix(v string) predicate.Event
- func RepeatPatternIn(vs ...string) predicate.Event
- func RepeatPatternIsNil() predicate.Event
- func RepeatPatternLT(v string) predicate.Event
- func RepeatPatternLTE(v string) predicate.Event
- func RepeatPatternNEQ(v string) predicate.Event
- func RepeatPatternNotIn(vs ...string) predicate.Event
- func RepeatPatternNotNil() predicate.Event
- func StartTime(v time.Time) predicate.Event
- func StartTimeEQ(v time.Time) predicate.Event
- func StartTimeGT(v time.Time) predicate.Event
- func StartTimeGTE(v time.Time) predicate.Event
- func StartTimeIn(vs ...time.Time) predicate.Event
- func StartTimeLT(v time.Time) predicate.Event
- func StartTimeLTE(v time.Time) predicate.Event
- func StartTimeNEQ(v time.Time) predicate.Event
- func StartTimeNotIn(vs ...time.Time) predicate.Event
- func ValidColumn(column string) bool
- type OrderOption
- func ByEndTime(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLocation(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRepeatPattern(opts ...sql.OrderTermOption) OrderOption
- func ByStartTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the event type in the database. Label = "event" // 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" // FieldStartTime holds the string denoting the start_time field in the database. FieldStartTime = "start_time" // FieldEndTime holds the string denoting the end_time field in the database. FieldEndTime = "end_time" // FieldLocation holds the string denoting the location field in the database. FieldLocation = "location" // FieldRepeatPattern holds the string denoting the repeat_pattern field in the database. FieldRepeatPattern = "repeat_pattern" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // Table holds the table name of the event in the database. Table = "events" // GroupTable is the table that holds the group relation/edge. GroupTable = "events" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "entgroup" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_events" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldStartTime, FieldEndTime, FieldLocation, FieldRepeatPattern, }
Columns holds all SQL columns for event fields.
var ForeignKeys = []string{
"group_events",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "events" table and are not defined as standalone fields in the schema.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func EndTime ¶
EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.
func EndTimeGTE ¶
EndTimeGTE applies the GTE predicate on the "end_time" field.
func EndTimeIsNil ¶
EndTimeIsNil applies the IsNil predicate on the "end_time" field.
func EndTimeLTE ¶
EndTimeLTE applies the LTE predicate on the "end_time" field.
func EndTimeNEQ ¶
EndTimeNEQ applies the NEQ predicate on the "end_time" field.
func EndTimeNotIn ¶
EndTimeNotIn applies the NotIn predicate on the "end_time" field.
func EndTimeNotNil ¶
EndTimeNotNil applies the NotNil predicate on the "end_time" field.
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func Location ¶
Location applies equality check predicate on the "location" field. It's identical to LocationEQ.
func LocationContains ¶
LocationContains applies the Contains predicate on the "location" field.
func LocationContainsFold ¶
LocationContainsFold applies the ContainsFold predicate on the "location" field.
func LocationEQ ¶
LocationEQ applies the EQ predicate on the "location" field.
func LocationEqualFold ¶
LocationEqualFold applies the EqualFold predicate on the "location" field.
func LocationGT ¶
LocationGT applies the GT predicate on the "location" field.
func LocationGTE ¶
LocationGTE applies the GTE predicate on the "location" field.
func LocationHasPrefix ¶
LocationHasPrefix applies the HasPrefix predicate on the "location" field.
func LocationHasSuffix ¶
LocationHasSuffix applies the HasSuffix predicate on the "location" field.
func LocationIn ¶
LocationIn applies the In predicate on the "location" field.
func LocationIsNil ¶
LocationIsNil applies the IsNil predicate on the "location" field.
func LocationLT ¶
LocationLT applies the LT predicate on the "location" field.
func LocationLTE ¶
LocationLTE applies the LTE predicate on the "location" field.
func LocationNEQ ¶
LocationNEQ applies the NEQ predicate on the "location" field.
func LocationNotIn ¶
LocationNotIn applies the NotIn predicate on the "location" field.
func LocationNotNil ¶
LocationNotNil applies the NotNil predicate on the "location" field.
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 RepeatPattern ¶
RepeatPattern applies equality check predicate on the "repeat_pattern" field. It's identical to RepeatPatternEQ.
func RepeatPatternContains ¶
RepeatPatternContains applies the Contains predicate on the "repeat_pattern" field.
func RepeatPatternContainsFold ¶
RepeatPatternContainsFold applies the ContainsFold predicate on the "repeat_pattern" field.
func RepeatPatternEQ ¶
RepeatPatternEQ applies the EQ predicate on the "repeat_pattern" field.
func RepeatPatternEqualFold ¶
RepeatPatternEqualFold applies the EqualFold predicate on the "repeat_pattern" field.
func RepeatPatternGT ¶
RepeatPatternGT applies the GT predicate on the "repeat_pattern" field.
func RepeatPatternGTE ¶
RepeatPatternGTE applies the GTE predicate on the "repeat_pattern" field.
func RepeatPatternHasPrefix ¶
RepeatPatternHasPrefix applies the HasPrefix predicate on the "repeat_pattern" field.
func RepeatPatternHasSuffix ¶
RepeatPatternHasSuffix applies the HasSuffix predicate on the "repeat_pattern" field.
func RepeatPatternIn ¶
RepeatPatternIn applies the In predicate on the "repeat_pattern" field.
func RepeatPatternIsNil ¶
RepeatPatternIsNil applies the IsNil predicate on the "repeat_pattern" field.
func RepeatPatternLT ¶
RepeatPatternLT applies the LT predicate on the "repeat_pattern" field.
func RepeatPatternLTE ¶
RepeatPatternLTE applies the LTE predicate on the "repeat_pattern" field.
func RepeatPatternNEQ ¶
RepeatPatternNEQ applies the NEQ predicate on the "repeat_pattern" field.
func RepeatPatternNotIn ¶
RepeatPatternNotIn applies the NotIn predicate on the "repeat_pattern" field.
func RepeatPatternNotNil ¶
RepeatPatternNotNil applies the NotNil predicate on the "repeat_pattern" field.
func StartTime ¶
StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
func StartTimeEQ ¶
StartTimeEQ applies the EQ predicate on the "start_time" field.
func StartTimeGT ¶
StartTimeGT applies the GT predicate on the "start_time" field.
func StartTimeGTE ¶
StartTimeGTE applies the GTE predicate on the "start_time" field.
func StartTimeIn ¶
StartTimeIn applies the In predicate on the "start_time" field.
func StartTimeLT ¶
StartTimeLT applies the LT predicate on the "start_time" field.
func StartTimeLTE ¶
StartTimeLTE applies the LTE predicate on the "start_time" field.
func StartTimeNEQ ¶
StartTimeNEQ applies the NEQ predicate on the "start_time" field.
func StartTimeNotIn ¶
StartTimeNotIn applies the NotIn predicate on the "start_time" 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 Event queries.
func ByEndTime ¶
func ByEndTime(opts ...sql.OrderTermOption) OrderOption
ByEndTime orders the results by the end_time field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLocation ¶
func ByLocation(opts ...sql.OrderTermOption) OrderOption
ByLocation orders the results by the location field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRepeatPattern ¶
func ByRepeatPattern(opts ...sql.OrderTermOption) OrderOption
ByRepeatPattern orders the results by the repeat_pattern field.
func ByStartTime ¶
func ByStartTime(opts ...sql.OrderTermOption) OrderOption
ByStartTime orders the results by the start_time field.