Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GuildEvent) predicate.GuildEvent
- func CreateTime(v time.Time) predicate.GuildEvent
- func CreateTimeEQ(v time.Time) predicate.GuildEvent
- func CreateTimeGT(v time.Time) predicate.GuildEvent
- func CreateTimeGTE(v time.Time) predicate.GuildEvent
- func CreateTimeIn(vs ...time.Time) predicate.GuildEvent
- func CreateTimeLT(v time.Time) predicate.GuildEvent
- func CreateTimeLTE(v time.Time) predicate.GuildEvent
- func CreateTimeNEQ(v time.Time) predicate.GuildEvent
- func CreateTimeNotIn(vs ...time.Time) predicate.GuildEvent
- func HasGuild() predicate.GuildEvent
- func HasGuildWith(preds ...predicate.Guild) predicate.GuildEvent
- func ID(id int) predicate.GuildEvent
- func IDEQ(id int) predicate.GuildEvent
- func IDGT(id int) predicate.GuildEvent
- func IDGTE(id int) predicate.GuildEvent
- func IDIn(ids ...int) predicate.GuildEvent
- func IDLT(id int) predicate.GuildEvent
- func IDLTE(id int) predicate.GuildEvent
- func IDNEQ(id int) predicate.GuildEvent
- func IDNotIn(ids ...int) predicate.GuildEvent
- func Message(v string) predicate.GuildEvent
- func MessageContains(v string) predicate.GuildEvent
- func MessageContainsFold(v string) predicate.GuildEvent
- func MessageEQ(v string) predicate.GuildEvent
- func MessageEqualFold(v string) predicate.GuildEvent
- func MessageGT(v string) predicate.GuildEvent
- func MessageGTE(v string) predicate.GuildEvent
- func MessageHasPrefix(v string) predicate.GuildEvent
- func MessageHasSuffix(v string) predicate.GuildEvent
- func MessageIn(vs ...string) predicate.GuildEvent
- func MessageLT(v string) predicate.GuildEvent
- func MessageLTE(v string) predicate.GuildEvent
- func MessageNEQ(v string) predicate.GuildEvent
- func MessageNotIn(vs ...string) predicate.GuildEvent
- func MetadataIsNil() predicate.GuildEvent
- func MetadataNotNil() predicate.GuildEvent
- func Not(p predicate.GuildEvent) predicate.GuildEvent
- func Or(predicates ...predicate.GuildEvent) predicate.GuildEvent
- func TypeEQ(v Type) predicate.GuildEvent
- func TypeIn(vs ...Type) predicate.GuildEvent
- func TypeNEQ(v Type) predicate.GuildEvent
- func TypeNotIn(vs ...Type) predicate.GuildEvent
- func TypeValidator(_type Type) error
- func UpdateTime(v time.Time) predicate.GuildEvent
- func UpdateTimeEQ(v time.Time) predicate.GuildEvent
- func UpdateTimeGT(v time.Time) predicate.GuildEvent
- func UpdateTimeGTE(v time.Time) predicate.GuildEvent
- func UpdateTimeIn(vs ...time.Time) predicate.GuildEvent
- func UpdateTimeLT(v time.Time) predicate.GuildEvent
- func UpdateTimeLTE(v time.Time) predicate.GuildEvent
- func UpdateTimeNEQ(v time.Time) predicate.GuildEvent
- func UpdateTimeNotIn(vs ...time.Time) predicate.GuildEvent
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the guildevent type in the database. Label = "guild_event" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeGuild holds the string denoting the guild edge name in mutations. EdgeGuild = "guild" // Table holds the table name of the guildevent in the database. Table = "guild_events" // GuildTable is the table that holds the guild relation/edge. GuildTable = "guild_events" // GuildInverseTable is the table name for the Guild entity. // It exists in this package in order to avoid circular dependency with the "guild" package. GuildInverseTable = "guilds" // GuildColumn is the table column denoting the guild relation/edge. GuildColumn = "guild_guild_events" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time )
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/lrstanley/spectrograph/internal/database/ent/runtime"
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldType, FieldMessage, FieldMetadata, }
Columns holds all SQL columns for guildevent fields.
var ForeignKeys = []string{
"guild_guild_events",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "guild_events" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.GuildEvent) predicate.GuildEvent
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.GuildEvent
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.GuildEvent
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.GuildEvent
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.GuildEvent
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.GuildEvent
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.GuildEvent
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.GuildEvent
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.GuildEvent
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.GuildEvent
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasGuild ¶
func HasGuild() predicate.GuildEvent
HasGuild applies the HasEdge predicate on the "guild" edge.
func HasGuildWith ¶
func HasGuildWith(preds ...predicate.Guild) predicate.GuildEvent
HasGuildWith applies the HasEdge predicate on the "guild" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.GuildEvent
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.GuildEvent
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.GuildEvent
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.GuildEvent
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.GuildEvent
IDNotIn applies the NotIn predicate on the ID field.
func Message ¶
func Message(v string) predicate.GuildEvent
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
func MessageContains(v string) predicate.GuildEvent
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
func MessageContainsFold(v string) predicate.GuildEvent
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEQ ¶
func MessageEQ(v string) predicate.GuildEvent
MessageEQ applies the EQ predicate on the "message" field.
func MessageEqualFold ¶
func MessageEqualFold(v string) predicate.GuildEvent
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGT ¶
func MessageGT(v string) predicate.GuildEvent
MessageGT applies the GT predicate on the "message" field.
func MessageGTE ¶
func MessageGTE(v string) predicate.GuildEvent
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
func MessageHasPrefix(v string) predicate.GuildEvent
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
func MessageHasSuffix(v string) predicate.GuildEvent
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageIn ¶
func MessageIn(vs ...string) predicate.GuildEvent
MessageIn applies the In predicate on the "message" field.
func MessageLT ¶
func MessageLT(v string) predicate.GuildEvent
MessageLT applies the LT predicate on the "message" field.
func MessageLTE ¶
func MessageLTE(v string) predicate.GuildEvent
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
func MessageNEQ(v string) predicate.GuildEvent
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
func MessageNotIn(vs ...string) predicate.GuildEvent
MessageNotIn applies the NotIn predicate on the "message" field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.GuildEvent
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.GuildEvent
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Not ¶
func Not(p predicate.GuildEvent) predicate.GuildEvent
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.GuildEvent) predicate.GuildEvent
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.GuildEvent
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.GuildEvent
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.GuildEvent
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.GuildEvent
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.GuildEvent
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.GuildEvent
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.GuildEvent
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.GuildEvent
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.GuildEvent
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.GuildEvent
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.GuildEvent
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.GuildEvent
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.GuildEvent
UpdateTimeNotIn applies the NotIn predicate on the "update_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 GuildEvent queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByGuildField ¶
func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
ByGuildField orders the results by guild field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMessage ¶
func ByMessage(opts ...sql.OrderTermOption) OrderOption
ByMessage orders the results by the message field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeINFO Type = "INFO" TypeWARNING Type = "WARNING" TypeERROR Type = "ERROR" TypeDEBUG Type = "DEBUG" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.