Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DiscordMessage) predicate.DiscordMessage
- func CreateTime(v time.Time) predicate.DiscordMessage
- func CreateTimeEQ(v time.Time) predicate.DiscordMessage
- func CreateTimeGT(v time.Time) predicate.DiscordMessage
- func CreateTimeGTE(v time.Time) predicate.DiscordMessage
- func CreateTimeIn(vs ...time.Time) predicate.DiscordMessage
- func CreateTimeLT(v time.Time) predicate.DiscordMessage
- func CreateTimeLTE(v time.Time) predicate.DiscordMessage
- func CreateTimeNEQ(v time.Time) predicate.DiscordMessage
- func CreateTimeNotIn(vs ...time.Time) predicate.DiscordMessage
- func HasAuthor() predicate.DiscordMessage
- func HasAuthorWith(preds ...predicate.DiscordUser) predicate.DiscordMessage
- func ID(id string) predicate.DiscordMessage
- func IDContainsFold(id string) predicate.DiscordMessage
- func IDEQ(id string) predicate.DiscordMessage
- func IDEqualFold(id string) predicate.DiscordMessage
- func IDGT(id string) predicate.DiscordMessage
- func IDGTE(id string) predicate.DiscordMessage
- func IDIn(ids ...string) predicate.DiscordMessage
- func IDLT(id string) predicate.DiscordMessage
- func IDLTE(id string) predicate.DiscordMessage
- func IDNEQ(id string) predicate.DiscordMessage
- func IDNotIn(ids ...string) predicate.DiscordMessage
- func Not(p predicate.DiscordMessage) predicate.DiscordMessage
- func Or(predicates ...predicate.DiscordMessage) predicate.DiscordMessage
- func UpdateTime(v time.Time) predicate.DiscordMessage
- func UpdateTimeEQ(v time.Time) predicate.DiscordMessage
- func UpdateTimeGT(v time.Time) predicate.DiscordMessage
- func UpdateTimeGTE(v time.Time) predicate.DiscordMessage
- func UpdateTimeIn(vs ...time.Time) predicate.DiscordMessage
- func UpdateTimeLT(v time.Time) predicate.DiscordMessage
- func UpdateTimeLTE(v time.Time) predicate.DiscordMessage
- func UpdateTimeNEQ(v time.Time) predicate.DiscordMessage
- func UpdateTimeNotIn(vs ...time.Time) predicate.DiscordMessage
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the discordmessage type in the database. Label = "discord_message" // 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" // FieldRaw holds the string denoting the raw field in the database. FieldRaw = "raw" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // Table holds the table name of the discordmessage in the database. Table = "discord_messages" // AuthorTable is the table that holds the author relation/edge. The primary key declared below. AuthorTable = "discord_user_discord_messages" // AuthorInverseTable is the table name for the DiscordUser entity. // It exists in this package in order to avoid circular dependency with the "discorduser" package. AuthorInverseTable = "discord_users" )
Variables ¶
var ( // 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 )
var ( // AuthorPrimaryKey and AuthorColumn2 are the table columns denoting the // primary key for the author relation (M2M). AuthorPrimaryKey = []string{"discord_user_id", "discord_message_id"} )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldRaw, }
Columns holds all SQL columns for discordmessage fields.
Functions ¶
func And ¶
func And(predicates ...predicate.DiscordMessage) predicate.DiscordMessage
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.DiscordMessage
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.DiscordMessage
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.DiscordMessage
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.DiscordMessage
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.DiscordMessage
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.DiscordMessage
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.DiscordMessage
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.DiscordMessage
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.DiscordMessage
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasAuthor ¶
func HasAuthor() predicate.DiscordMessage
HasAuthor applies the HasEdge predicate on the "author" edge.
func HasAuthorWith ¶
func HasAuthorWith(preds ...predicate.DiscordUser) predicate.DiscordMessage
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.DiscordMessage
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.DiscordMessage
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.DiscordMessage
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.DiscordMessage
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.DiscordMessage
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.DiscordMessage
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.DiscordMessage
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.DiscordMessage
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.DiscordMessage
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.DiscordMessage
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.DiscordMessage) predicate.DiscordMessage
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DiscordMessage) predicate.DiscordMessage
Or groups predicates with the OR operator between them.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.DiscordMessage
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.DiscordMessage
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.DiscordMessage
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.DiscordMessage
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.DiscordMessage
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.DiscordMessage
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.DiscordMessage
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.DiscordMessage
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.DiscordMessage
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 DiscordMessage queries.
func ByAuthor ¶
func ByAuthor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAuthor orders the results by author terms.
func ByAuthorCount ¶
func ByAuthorCount(opts ...sql.OrderTermOption) OrderOption
ByAuthorCount orders the results by author count.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.