Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) predicate.Message
- func Content(v string) predicate.Message
- func ContentContains(v string) predicate.Message
- func ContentContainsFold(v string) predicate.Message
- func ContentEQ(v string) predicate.Message
- func ContentEqualFold(v string) predicate.Message
- func ContentGT(v string) predicate.Message
- func ContentGTE(v string) predicate.Message
- func ContentHasPrefix(v string) predicate.Message
- func ContentHasSuffix(v string) predicate.Message
- func ContentIn(vs ...string) predicate.Message
- func ContentLT(v string) predicate.Message
- func ContentLTE(v string) predicate.Message
- func ContentNEQ(v string) predicate.Message
- func ContentNotIn(vs ...string) predicate.Message
- func CreatedAt(v time.Time) predicate.Message
- func CreatedAtEQ(v time.Time) predicate.Message
- func CreatedAtGT(v time.Time) predicate.Message
- func CreatedAtGTE(v time.Time) predicate.Message
- func CreatedAtIn(vs ...time.Time) predicate.Message
- func CreatedAtLT(v time.Time) predicate.Message
- func CreatedAtLTE(v time.Time) predicate.Message
- func CreatedAtNEQ(v time.Time) predicate.Message
- func CreatedAtNotIn(vs ...time.Time) predicate.Message
- func HasUser() predicate.Message
- func HasUserWith(preds ...predicate.User) predicate.Message
- func ID(id uuid.UUID) predicate.Message
- func IDEQ(id uuid.UUID) predicate.Message
- func IDGT(id uuid.UUID) predicate.Message
- func IDGTE(id uuid.UUID) predicate.Message
- func IDIn(ids ...uuid.UUID) predicate.Message
- func IDLT(id uuid.UUID) predicate.Message
- func IDLTE(id uuid.UUID) predicate.Message
- func IDNEQ(id uuid.UUID) predicate.Message
- func IDNotIn(ids ...uuid.UUID) predicate.Message
- func Long(v string) predicate.Message
- func LongContains(v string) predicate.Message
- func LongContainsFold(v string) predicate.Message
- func LongEQ(v string) predicate.Message
- func LongEqualFold(v string) predicate.Message
- func LongGT(v string) predicate.Message
- func LongGTE(v string) predicate.Message
- func LongHasPrefix(v string) predicate.Message
- func LongHasSuffix(v string) predicate.Message
- func LongIn(vs ...string) predicate.Message
- func LongLT(v string) predicate.Message
- func LongLTE(v string) predicate.Message
- func LongNEQ(v string) predicate.Message
- func LongNotIn(vs ...string) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func Priority(v enum.Priority) predicate.Message
- func PriorityContains(v enum.Priority) predicate.Message
- func PriorityContainsFold(v enum.Priority) predicate.Message
- func PriorityEQ(v enum.Priority) predicate.Message
- func PriorityEqualFold(v enum.Priority) predicate.Message
- func PriorityGT(v enum.Priority) predicate.Message
- func PriorityGTE(v enum.Priority) predicate.Message
- func PriorityHasPrefix(v enum.Priority) predicate.Message
- func PriorityHasSuffix(v enum.Priority) predicate.Message
- func PriorityIn(vs ...enum.Priority) predicate.Message
- func PriorityLT(v enum.Priority) predicate.Message
- func PriorityLTE(v enum.Priority) predicate.Message
- func PriorityNEQ(v enum.Priority) predicate.Message
- func PriorityNotIn(vs ...enum.Priority) predicate.Message
- func SequenceID(v int) predicate.Message
- func SequenceIDEQ(v int) predicate.Message
- func SequenceIDGT(v int) predicate.Message
- func SequenceIDGTE(v int) predicate.Message
- func SequenceIDIn(vs ...int) predicate.Message
- func SequenceIDLT(v int) predicate.Message
- func SequenceIDLTE(v int) predicate.Message
- func SequenceIDNEQ(v int) predicate.Message
- func SequenceIDNotIn(vs ...int) predicate.Message
- func Title(v string) predicate.Message
- func TitleContains(v string) predicate.Message
- func TitleContainsFold(v string) predicate.Message
- func TitleEQ(v string) predicate.Message
- func TitleEqualFold(v string) predicate.Message
- func TitleGT(v string) predicate.Message
- func TitleGTE(v string) predicate.Message
- func TitleHasPrefix(v string) predicate.Message
- func TitleHasSuffix(v string) predicate.Message
- func TitleIn(vs ...string) predicate.Message
- func TitleLT(v string) predicate.Message
- func TitleLTE(v string) predicate.Message
- func TitleNEQ(v string) predicate.Message
- func TitleNotIn(vs ...string) predicate.Message
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the message type in the database. Label = "message" // 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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldLong holds the string denoting the long field in the database. FieldLong = "long" // FieldPriority holds the string denoting the priority field in the database. FieldPriority = "priority" // FieldSequenceID holds the string denoting the sequenceid field in the database. FieldSequenceID = "sequence_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the message in the database. Table = "messages" // UserTable is the table that holds the user relation/edge. UserTable = "messages" // 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" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_messages" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // PriorityValidator is a validator for the "priority" field. It is called by the builders before save. PriorityValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldTitle, FieldContent, FieldLong, FieldPriority, FieldSequenceID, }
Columns holds all SQL columns for message fields.
var ForeignKeys = []string{
"user_messages",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "messages" table and are not defined as standalone fields in the schema.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
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 HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LongContains ¶
LongContains applies the Contains predicate on the "long" field.
func LongContainsFold ¶
LongContainsFold applies the ContainsFold predicate on the "long" field.
func LongEqualFold ¶
LongEqualFold applies the EqualFold predicate on the "long" field.
func LongHasPrefix ¶
LongHasPrefix applies the HasPrefix predicate on the "long" field.
func LongHasSuffix ¶
LongHasSuffix applies the HasSuffix predicate on the "long" field.
func Priority ¶
Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
func PriorityContains ¶
PriorityContains applies the Contains predicate on the "priority" field.
func PriorityContainsFold ¶
PriorityContainsFold applies the ContainsFold predicate on the "priority" field.
func PriorityEQ ¶
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityEqualFold ¶
PriorityEqualFold applies the EqualFold predicate on the "priority" field.
func PriorityGT ¶
PriorityGT applies the GT predicate on the "priority" field.
func PriorityGTE ¶
PriorityGTE applies the GTE predicate on the "priority" field.
func PriorityHasPrefix ¶
PriorityHasPrefix applies the HasPrefix predicate on the "priority" field.
func PriorityHasSuffix ¶
PriorityHasSuffix applies the HasSuffix predicate on the "priority" field.
func PriorityIn ¶
PriorityIn applies the In predicate on the "priority" field.
func PriorityLT ¶
PriorityLT applies the LT predicate on the "priority" field.
func PriorityLTE ¶
PriorityLTE applies the LTE predicate on the "priority" field.
func PriorityNEQ ¶
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
PriorityNotIn applies the NotIn predicate on the "priority" field.
func SequenceID ¶
SequenceID applies equality check predicate on the "sequenceID" field. It's identical to SequenceIDEQ.
func SequenceIDEQ ¶
SequenceIDEQ applies the EQ predicate on the "sequenceID" field.
func SequenceIDGT ¶
SequenceIDGT applies the GT predicate on the "sequenceID" field.
func SequenceIDGTE ¶
SequenceIDGTE applies the GTE predicate on the "sequenceID" field.
func SequenceIDIn ¶
SequenceIDIn applies the In predicate on the "sequenceID" field.
func SequenceIDLT ¶
SequenceIDLT applies the LT predicate on the "sequenceID" field.
func SequenceIDLTE ¶
SequenceIDLTE applies the LTE predicate on the "sequenceID" field.
func SequenceIDNEQ ¶
SequenceIDNEQ applies the NEQ predicate on the "sequenceID" field.
func SequenceIDNotIn ¶
SequenceIDNotIn applies the NotIn predicate on the "sequenceID" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.