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 HasServer() predicate.Event
- func HasServerWith(preds ...predicate.Server) predicate.Event
- func HasUser() predicate.Event
- func HasUserWith(preds ...predicate.User) 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 Message(v string) predicate.Event
- func MessageContains(v string) predicate.Event
- func MessageContainsFold(v string) predicate.Event
- func MessageEQ(v string) predicate.Event
- func MessageEqualFold(v string) predicate.Event
- func MessageGT(v string) predicate.Event
- func MessageGTE(v string) predicate.Event
- func MessageHasPrefix(v string) predicate.Event
- func MessageHasSuffix(v string) predicate.Event
- func MessageIn(vs ...string) predicate.Event
- func MessageLT(v string) predicate.Event
- func MessageLTE(v string) predicate.Event
- func MessageNEQ(v string) predicate.Event
- func MessageNotIn(vs ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) 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" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeServer holds the string denoting the server edge name in mutations. EdgeServer = "server" // Table holds the table name of the event in the database. Table = "events" // UserTable is the table the holds the user relation/edge. The primary key declared below. UserTable = "event_user" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // ServerTable is the table the holds the server relation/edge. The primary key declared below. ServerTable = "event_server" // ServerInverseTable is the table name for the Server entity. // It exists in this package in order to avoid circular dependency with the "server" package. ServerInverseTable = "servers" )
Variables ¶
var ( // UserPrimaryKey and UserColumn2 are the table columns denoting the // primary key for the user relation (M2M). UserPrimaryKey = []string{"event_id", "user_id"} // ServerPrimaryKey and ServerColumn2 are the table columns denoting the // primary key for the server relation (M2M). ServerPrimaryKey = []string{"event_id", "server_id"} )
var Columns = []string{ FieldID, FieldMessage, FieldCreatedAt, }
Columns holds all SQL columns for event fields.
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time )
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 HasServerWith ¶
HasServerWith applies the HasEdge predicate on the "server" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.