event

package
v0.0.0-...-20f649f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for event fields.

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

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func EndTime

func EndTime(v time.Time) predicate.Event

EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.

func EndTimeEQ

func EndTimeEQ(v time.Time) predicate.Event

EndTimeEQ applies the EQ predicate on the "end_time" field.

func EndTimeGT

func EndTimeGT(v time.Time) predicate.Event

EndTimeGT applies the GT predicate on the "end_time" field.

func EndTimeGTE

func EndTimeGTE(v time.Time) predicate.Event

EndTimeGTE applies the GTE predicate on the "end_time" field.

func EndTimeIn

func EndTimeIn(vs ...time.Time) predicate.Event

EndTimeIn applies the In predicate on the "end_time" field.

func EndTimeIsNil

func EndTimeIsNil() predicate.Event

EndTimeIsNil applies the IsNil predicate on the "end_time" field.

func EndTimeLT

func EndTimeLT(v time.Time) predicate.Event

EndTimeLT applies the LT predicate on the "end_time" field.

func EndTimeLTE

func EndTimeLTE(v time.Time) predicate.Event

EndTimeLTE applies the LTE predicate on the "end_time" field.

func EndTimeNEQ

func EndTimeNEQ(v time.Time) predicate.Event

EndTimeNEQ applies the NEQ predicate on the "end_time" field.

func EndTimeNotIn

func EndTimeNotIn(vs ...time.Time) predicate.Event

EndTimeNotIn applies the NotIn predicate on the "end_time" field.

func EndTimeNotNil

func EndTimeNotNil() predicate.Event

EndTimeNotNil applies the NotNil predicate on the "end_time" field.

func HasGroup

func HasGroup() predicate.Event

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.Event

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

func ID

func ID(id int) predicate.Event

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Location

func Location(v string) predicate.Event

Location applies equality check predicate on the "location" field. It's identical to LocationEQ.

func LocationContains

func LocationContains(v string) predicate.Event

LocationContains applies the Contains predicate on the "location" field.

func LocationContainsFold

func LocationContainsFold(v string) predicate.Event

LocationContainsFold applies the ContainsFold predicate on the "location" field.

func LocationEQ

func LocationEQ(v string) predicate.Event

LocationEQ applies the EQ predicate on the "location" field.

func LocationEqualFold

func LocationEqualFold(v string) predicate.Event

LocationEqualFold applies the EqualFold predicate on the "location" field.

func LocationGT

func LocationGT(v string) predicate.Event

LocationGT applies the GT predicate on the "location" field.

func LocationGTE

func LocationGTE(v string) predicate.Event

LocationGTE applies the GTE predicate on the "location" field.

func LocationHasPrefix

func LocationHasPrefix(v string) predicate.Event

LocationHasPrefix applies the HasPrefix predicate on the "location" field.

func LocationHasSuffix

func LocationHasSuffix(v string) predicate.Event

LocationHasSuffix applies the HasSuffix predicate on the "location" field.

func LocationIn

func LocationIn(vs ...string) predicate.Event

LocationIn applies the In predicate on the "location" field.

func LocationIsNil

func LocationIsNil() predicate.Event

LocationIsNil applies the IsNil predicate on the "location" field.

func LocationLT

func LocationLT(v string) predicate.Event

LocationLT applies the LT predicate on the "location" field.

func LocationLTE

func LocationLTE(v string) predicate.Event

LocationLTE applies the LTE predicate on the "location" field.

func LocationNEQ

func LocationNEQ(v string) predicate.Event

LocationNEQ applies the NEQ predicate on the "location" field.

func LocationNotIn

func LocationNotIn(vs ...string) predicate.Event

LocationNotIn applies the NotIn predicate on the "location" field.

func LocationNotNil

func LocationNotNil() predicate.Event

LocationNotNil applies the NotNil predicate on the "location" field.

func Name

func Name(v string) predicate.Event

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

func NameContains

func NameContains(v string) predicate.Event

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

func NameContainsFold

func NameContainsFold(v string) predicate.Event

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

func NameEQ

func NameEQ(v string) predicate.Event

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

func NameEqualFold

func NameEqualFold(v string) predicate.Event

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

func NameGT

func NameGT(v string) predicate.Event

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

func NameGTE

func NameGTE(v string) predicate.Event

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Event

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Event

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Event

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

func NameLTE

func NameLTE(v string) predicate.Event

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

func NameNEQ

func NameNEQ(v string) predicate.Event

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func RepeatPattern

func RepeatPattern(v string) predicate.Event

RepeatPattern applies equality check predicate on the "repeat_pattern" field. It's identical to RepeatPatternEQ.

func RepeatPatternContains

func RepeatPatternContains(v string) predicate.Event

RepeatPatternContains applies the Contains predicate on the "repeat_pattern" field.

func RepeatPatternContainsFold

func RepeatPatternContainsFold(v string) predicate.Event

RepeatPatternContainsFold applies the ContainsFold predicate on the "repeat_pattern" field.

func RepeatPatternEQ

func RepeatPatternEQ(v string) predicate.Event

RepeatPatternEQ applies the EQ predicate on the "repeat_pattern" field.

func RepeatPatternEqualFold

func RepeatPatternEqualFold(v string) predicate.Event

RepeatPatternEqualFold applies the EqualFold predicate on the "repeat_pattern" field.

func RepeatPatternGT

func RepeatPatternGT(v string) predicate.Event

RepeatPatternGT applies the GT predicate on the "repeat_pattern" field.

func RepeatPatternGTE

func RepeatPatternGTE(v string) predicate.Event

RepeatPatternGTE applies the GTE predicate on the "repeat_pattern" field.

func RepeatPatternHasPrefix

func RepeatPatternHasPrefix(v string) predicate.Event

RepeatPatternHasPrefix applies the HasPrefix predicate on the "repeat_pattern" field.

func RepeatPatternHasSuffix

func RepeatPatternHasSuffix(v string) predicate.Event

RepeatPatternHasSuffix applies the HasSuffix predicate on the "repeat_pattern" field.

func RepeatPatternIn

func RepeatPatternIn(vs ...string) predicate.Event

RepeatPatternIn applies the In predicate on the "repeat_pattern" field.

func RepeatPatternIsNil

func RepeatPatternIsNil() predicate.Event

RepeatPatternIsNil applies the IsNil predicate on the "repeat_pattern" field.

func RepeatPatternLT

func RepeatPatternLT(v string) predicate.Event

RepeatPatternLT applies the LT predicate on the "repeat_pattern" field.

func RepeatPatternLTE

func RepeatPatternLTE(v string) predicate.Event

RepeatPatternLTE applies the LTE predicate on the "repeat_pattern" field.

func RepeatPatternNEQ

func RepeatPatternNEQ(v string) predicate.Event

RepeatPatternNEQ applies the NEQ predicate on the "repeat_pattern" field.

func RepeatPatternNotIn

func RepeatPatternNotIn(vs ...string) predicate.Event

RepeatPatternNotIn applies the NotIn predicate on the "repeat_pattern" field.

func RepeatPatternNotNil

func RepeatPatternNotNil() predicate.Event

RepeatPatternNotNil applies the NotNil predicate on the "repeat_pattern" field.

func StartTime

func StartTime(v time.Time) predicate.Event

StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.

func StartTimeEQ

func StartTimeEQ(v time.Time) predicate.Event

StartTimeEQ applies the EQ predicate on the "start_time" field.

func StartTimeGT

func StartTimeGT(v time.Time) predicate.Event

StartTimeGT applies the GT predicate on the "start_time" field.

func StartTimeGTE

func StartTimeGTE(v time.Time) predicate.Event

StartTimeGTE applies the GTE predicate on the "start_time" field.

func StartTimeIn

func StartTimeIn(vs ...time.Time) predicate.Event

StartTimeIn applies the In predicate on the "start_time" field.

func StartTimeLT

func StartTimeLT(v time.Time) predicate.Event

StartTimeLT applies the LT predicate on the "start_time" field.

func StartTimeLTE

func StartTimeLTE(v time.Time) predicate.Event

StartTimeLTE applies the LTE predicate on the "start_time" field.

func StartTimeNEQ

func StartTimeNEQ(v time.Time) predicate.Event

StartTimeNEQ applies the NEQ predicate on the "start_time" field.

func StartTimeNotIn

func StartTimeNotIn(vs ...time.Time) predicate.Event

StartTimeNotIn applies the NotIn predicate on the "start_time" 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 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.

Jump to

Keyboard shortcuts

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