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 FromUserID(v string) predicate.Message
- func FromUserIDContains(v string) predicate.Message
- func FromUserIDContainsFold(v string) predicate.Message
- func FromUserIDEQ(v string) predicate.Message
- func FromUserIDEqualFold(v string) predicate.Message
- func FromUserIDGT(v string) predicate.Message
- func FromUserIDGTE(v string) predicate.Message
- func FromUserIDHasPrefix(v string) predicate.Message
- func FromUserIDHasSuffix(v string) predicate.Message
- func FromUserIDIn(vs ...string) predicate.Message
- func FromUserIDLT(v string) predicate.Message
- func FromUserIDLTE(v string) predicate.Message
- func FromUserIDNEQ(v string) predicate.Message
- func FromUserIDNotIn(vs ...string) predicate.Message
- func HasSession() predicate.Message
- func HasSessionWith(preds ...predicate.Session) predicate.Message
- func HasSpouse() predicate.Message
- func HasSpouseWith(preds ...predicate.Message) predicate.Message
- func ID(id int) predicate.Message
- func IDEQ(id int) predicate.Message
- func IDGT(id int) predicate.Message
- func IDGTE(id int) predicate.Message
- func IDIn(ids ...int) predicate.Message
- func IDLT(id int) predicate.Message
- func IDLTE(id int) predicate.Message
- func IDNEQ(id int) predicate.Message
- func IDNotIn(ids ...int) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func SessionID(v int) predicate.Message
- func SessionIDEQ(v int) predicate.Message
- func SessionIDIn(vs ...int) predicate.Message
- func SessionIDIsNil() predicate.Message
- func SessionIDNEQ(v int) predicate.Message
- func SessionIDNotIn(vs ...int) predicate.Message
- func SessionIDNotNil() predicate.Message
- func SpouseID(v int) predicate.Message
- func SpouseIDEQ(v int) predicate.Message
- func SpouseIDIn(vs ...int) predicate.Message
- func SpouseIDIsNil() predicate.Message
- func SpouseIDNEQ(v int) predicate.Message
- func SpouseIDNotIn(vs ...int) predicate.Message
- func SpouseIDNotNil() predicate.Message
- func ToUserID(v string) predicate.Message
- func ToUserIDContains(v string) predicate.Message
- func ToUserIDContainsFold(v string) predicate.Message
- func ToUserIDEQ(v string) predicate.Message
- func ToUserIDEqualFold(v string) predicate.Message
- func ToUserIDGT(v string) predicate.Message
- func ToUserIDGTE(v string) predicate.Message
- func ToUserIDHasPrefix(v string) predicate.Message
- func ToUserIDHasSuffix(v string) predicate.Message
- func ToUserIDIn(vs ...string) predicate.Message
- func ToUserIDLT(v string) predicate.Message
- func ToUserIDLTE(v string) predicate.Message
- func ToUserIDNEQ(v string) predicate.Message
- func ToUserIDNotIn(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" // FieldSessionID holds the string denoting the session_id field in the database. FieldSessionID = "session_id" // FieldFromUserID holds the string denoting the from_user_id field in the database. FieldFromUserID = "from_user_id" // FieldToUserID holds the string denoting the to_user_id field in the database. FieldToUserID = "to_user_id" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldSpouseID holds the string denoting the spouse_id field in the database. FieldSpouseID = "spouse_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeSpouse holds the string denoting the spouse edge name in mutations. EdgeSpouse = "spouse" // EdgeSession holds the string denoting the session edge name in mutations. EdgeSession = "session" // Table holds the table name of the message in the database. Table = "messages" // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "messages" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "spouse_id" // SessionTable is the table that holds the session relation/edge. SessionTable = "messages" // SessionInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionInverseTable = "sessions" // SessionColumn is the table column denoting the session relation/edge. SessionColumn = "session_id" )
Variables ¶
var Columns = []string{ FieldID, FieldSessionID, FieldFromUserID, FieldToUserID, FieldContent, FieldSpouseID, FieldCreatedAt, }
Columns holds all SQL columns for message fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
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 FromUserID ¶
FromUserID applies equality check predicate on the "from_user_id" field. It's identical to FromUserIDEQ.
func FromUserIDContains ¶
FromUserIDContains applies the Contains predicate on the "from_user_id" field.
func FromUserIDContainsFold ¶
FromUserIDContainsFold applies the ContainsFold predicate on the "from_user_id" field.
func FromUserIDEQ ¶
FromUserIDEQ applies the EQ predicate on the "from_user_id" field.
func FromUserIDEqualFold ¶
FromUserIDEqualFold applies the EqualFold predicate on the "from_user_id" field.
func FromUserIDGT ¶
FromUserIDGT applies the GT predicate on the "from_user_id" field.
func FromUserIDGTE ¶
FromUserIDGTE applies the GTE predicate on the "from_user_id" field.
func FromUserIDHasPrefix ¶
FromUserIDHasPrefix applies the HasPrefix predicate on the "from_user_id" field.
func FromUserIDHasSuffix ¶
FromUserIDHasSuffix applies the HasSuffix predicate on the "from_user_id" field.
func FromUserIDIn ¶
FromUserIDIn applies the In predicate on the "from_user_id" field.
func FromUserIDLT ¶
FromUserIDLT applies the LT predicate on the "from_user_id" field.
func FromUserIDLTE ¶
FromUserIDLTE applies the LTE predicate on the "from_user_id" field.
func FromUserIDNEQ ¶
FromUserIDNEQ applies the NEQ predicate on the "from_user_id" field.
func FromUserIDNotIn ¶
FromUserIDNotIn applies the NotIn predicate on the "from_user_id" field.
func HasSession ¶
HasSession applies the HasEdge predicate on the "session" edge.
func HasSessionWith ¶
HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).
func HasSpouseWith ¶
HasSpouseWith applies the HasEdge predicate on the "spouse" edge with a given conditions (other predicates).
func SessionID ¶
SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.
func SessionIDEQ ¶
SessionIDEQ applies the EQ predicate on the "session_id" field.
func SessionIDIn ¶
SessionIDIn applies the In predicate on the "session_id" field.
func SessionIDIsNil ¶
SessionIDIsNil applies the IsNil predicate on the "session_id" field.
func SessionIDNEQ ¶
SessionIDNEQ applies the NEQ predicate on the "session_id" field.
func SessionIDNotIn ¶
SessionIDNotIn applies the NotIn predicate on the "session_id" field.
func SessionIDNotNil ¶
SessionIDNotNil applies the NotNil predicate on the "session_id" field.
func SpouseID ¶
SpouseID applies equality check predicate on the "spouse_id" field. It's identical to SpouseIDEQ.
func SpouseIDEQ ¶
SpouseIDEQ applies the EQ predicate on the "spouse_id" field.
func SpouseIDIn ¶
SpouseIDIn applies the In predicate on the "spouse_id" field.
func SpouseIDIsNil ¶
SpouseIDIsNil applies the IsNil predicate on the "spouse_id" field.
func SpouseIDNEQ ¶
SpouseIDNEQ applies the NEQ predicate on the "spouse_id" field.
func SpouseIDNotIn ¶
SpouseIDNotIn applies the NotIn predicate on the "spouse_id" field.
func SpouseIDNotNil ¶
SpouseIDNotNil applies the NotNil predicate on the "spouse_id" field.
func ToUserID ¶
ToUserID applies equality check predicate on the "to_user_id" field. It's identical to ToUserIDEQ.
func ToUserIDContains ¶
ToUserIDContains applies the Contains predicate on the "to_user_id" field.
func ToUserIDContainsFold ¶
ToUserIDContainsFold applies the ContainsFold predicate on the "to_user_id" field.
func ToUserIDEQ ¶
ToUserIDEQ applies the EQ predicate on the "to_user_id" field.
func ToUserIDEqualFold ¶
ToUserIDEqualFold applies the EqualFold predicate on the "to_user_id" field.
func ToUserIDGT ¶
ToUserIDGT applies the GT predicate on the "to_user_id" field.
func ToUserIDGTE ¶
ToUserIDGTE applies the GTE predicate on the "to_user_id" field.
func ToUserIDHasPrefix ¶
ToUserIDHasPrefix applies the HasPrefix predicate on the "to_user_id" field.
func ToUserIDHasSuffix ¶
ToUserIDHasSuffix applies the HasSuffix predicate on the "to_user_id" field.
func ToUserIDIn ¶
ToUserIDIn applies the In predicate on the "to_user_id" field.
func ToUserIDLT ¶
ToUserIDLT applies the LT predicate on the "to_user_id" field.
func ToUserIDLTE ¶
ToUserIDLTE applies the LTE predicate on the "to_user_id" field.
func ToUserIDNEQ ¶
ToUserIDNEQ applies the NEQ predicate on the "to_user_id" field.
func ToUserIDNotIn ¶
ToUserIDNotIn applies the NotIn predicate on the "to_user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.