Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Event) predicate.Event
- func CreatedAt(v time.Time) predicate.Event
- func CreatedAtEQ(v time.Time) predicate.Event
- func CreatedAtGT(v time.Time) predicate.Event
- func CreatedAtGTE(v time.Time) predicate.Event
- func CreatedAtIn(vs ...time.Time) predicate.Event
- func CreatedAtLT(v time.Time) predicate.Event
- func CreatedAtLTE(v time.Time) predicate.Event
- func CreatedAtNEQ(v time.Time) predicate.Event
- func CreatedAtNotIn(vs ...time.Time) predicate.Event
- func CreatedBy(v int) predicate.Event
- func CreatedByEQ(v int) predicate.Event
- func CreatedByGT(v int) predicate.Event
- func CreatedByGTE(v int) predicate.Event
- func CreatedByIn(vs ...int) predicate.Event
- func CreatedByIsNil() predicate.Event
- func CreatedByLT(v int) predicate.Event
- func CreatedByLTE(v int) predicate.Event
- func CreatedByNEQ(v int) predicate.Event
- func CreatedByNotIn(vs ...int) predicate.Event
- func CreatedByNotNil() predicate.Event
- func DisplayName(v string) predicate.Event
- func DisplayNameContains(v string) predicate.Event
- func DisplayNameContainsFold(v string) predicate.Event
- func DisplayNameEQ(v string) predicate.Event
- func DisplayNameEqualFold(v string) predicate.Event
- func DisplayNameGT(v string) predicate.Event
- func DisplayNameGTE(v string) predicate.Event
- func DisplayNameHasPrefix(v string) predicate.Event
- func DisplayNameHasSuffix(v string) predicate.Event
- func DisplayNameIn(vs ...string) predicate.Event
- func DisplayNameLT(v string) predicate.Event
- func DisplayNameLTE(v string) predicate.Event
- func DisplayNameNEQ(v string) predicate.Event
- func DisplayNameNotIn(vs ...string) predicate.Event
- func HasAttendees() predicate.Event
- func HasAttendeesWith(preds ...predicate.Actor) predicate.Event
- func HasOrganizer() predicate.Event
- func HasOrganizerWith(preds ...predicate.Actor) predicate.Event
- func ID(id uint64) predicate.Event
- func IDEQ(id uint64) predicate.Event
- func IDGT(id uint64) predicate.Event
- func IDGTE(id uint64) predicate.Event
- func IDIn(ids ...uint64) predicate.Event
- func IDLT(id uint64) predicate.Event
- func IDLTE(id uint64) predicate.Event
- func IDNEQ(id uint64) predicate.Event
- func IDNotIn(ids ...uint64) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func UpdatedAt(v time.Time) predicate.Event
- func UpdatedAtEQ(v time.Time) predicate.Event
- func UpdatedAtGT(v time.Time) predicate.Event
- func UpdatedAtGTE(v time.Time) predicate.Event
- func UpdatedAtIn(vs ...time.Time) predicate.Event
- func UpdatedAtLT(v time.Time) predicate.Event
- func UpdatedAtLTE(v time.Time) predicate.Event
- func UpdatedAtNEQ(v time.Time) predicate.Event
- func UpdatedAtNotIn(vs ...time.Time) predicate.Event
- func UpdatedBy(v int) predicate.Event
- func UpdatedByEQ(v int) predicate.Event
- func UpdatedByGT(v int) predicate.Event
- func UpdatedByGTE(v int) predicate.Event
- func UpdatedByIn(vs ...int) predicate.Event
- func UpdatedByIsNil() predicate.Event
- func UpdatedByLT(v int) predicate.Event
- func UpdatedByLTE(v int) predicate.Event
- func UpdatedByNEQ(v int) predicate.Event
- func UpdatedByNotIn(vs ...int) predicate.Event
- func UpdatedByNotNil() predicate.Event
- func ValidColumn(column string) bool
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" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // EdgeAttendees holds the string denoting the attendees edge name in mutations. EdgeAttendees = "attendees" // EdgeOrganizer holds the string denoting the organizer edge name in mutations. EdgeOrganizer = "organizer" // Table holds the table name of the event in the database. Table = "events" // AttendeesTable is the table that holds the attendees relation/edge. The primary key declared below. AttendeesTable = "event_attendees" // AttendeesInverseTable is the table name for the Actor entity. // It exists in this package in order to avoid circular dependency with the "actor" package. AttendeesInverseTable = "actors" // OrganizerTable is the table that holds the organizer relation/edge. OrganizerTable = "events" // OrganizerInverseTable is the table name for the Actor entity. // It exists in this package in order to avoid circular dependency with the "actor" package. OrganizerInverseTable = "actors" // OrganizerColumn is the table column denoting the organizer relation/edge. OrganizerColumn = "actor_organizer_of" )
Variables ¶
var ( Hooks [3]ent.Hook Policy ent.Policy // 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 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save. DisplayNameValidator func(string) error )
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/eriner/burr/internal/ent/runtime"
var ( // AttendeesPrimaryKey and AttendeesColumn2 are the table columns denoting the // primary key for the attendees relation (M2M). AttendeesPrimaryKey = []string{"event_id", "actor_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDisplayName, }
Columns holds all SQL columns for event fields.
var ForeignKeys = []string{
"actor_organizer_of",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "events" table and are not defined as standalone fields in the schema.
Functions ¶
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func HasAttendees ¶
HasAttendees applies the HasEdge predicate on the "attendees" edge.
func HasAttendeesWith ¶
HasAttendeesWith applies the HasEdge predicate on the "attendees" edge with a given conditions (other predicates).
func HasOrganizer ¶
HasOrganizer applies the HasEdge predicate on the "organizer" edge.
func HasOrganizerWith ¶
HasOrganizerWith applies the HasEdge predicate on the "organizer" edge with a given conditions (other predicates).
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 UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.