message

package
v0.1.1-0...-0783f25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for message fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

func And(predicates ...predicate.Message) predicate.Message

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Message

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Message

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Message

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Message

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Message

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Message

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Message

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Message

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Message

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Message

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Message

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Message

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Message

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Message

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Message

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Message

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Message

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Message

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Message

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Message

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Message

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Message

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Message

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func FromUserID

func FromUserID(v string) predicate.Message

FromUserID applies equality check predicate on the "from_user_id" field. It's identical to FromUserIDEQ.

func FromUserIDContains

func FromUserIDContains(v string) predicate.Message

FromUserIDContains applies the Contains predicate on the "from_user_id" field.

func FromUserIDContainsFold

func FromUserIDContainsFold(v string) predicate.Message

FromUserIDContainsFold applies the ContainsFold predicate on the "from_user_id" field.

func FromUserIDEQ

func FromUserIDEQ(v string) predicate.Message

FromUserIDEQ applies the EQ predicate on the "from_user_id" field.

func FromUserIDEqualFold

func FromUserIDEqualFold(v string) predicate.Message

FromUserIDEqualFold applies the EqualFold predicate on the "from_user_id" field.

func FromUserIDGT

func FromUserIDGT(v string) predicate.Message

FromUserIDGT applies the GT predicate on the "from_user_id" field.

func FromUserIDGTE

func FromUserIDGTE(v string) predicate.Message

FromUserIDGTE applies the GTE predicate on the "from_user_id" field.

func FromUserIDHasPrefix

func FromUserIDHasPrefix(v string) predicate.Message

FromUserIDHasPrefix applies the HasPrefix predicate on the "from_user_id" field.

func FromUserIDHasSuffix

func FromUserIDHasSuffix(v string) predicate.Message

FromUserIDHasSuffix applies the HasSuffix predicate on the "from_user_id" field.

func FromUserIDIn

func FromUserIDIn(vs ...string) predicate.Message

FromUserIDIn applies the In predicate on the "from_user_id" field.

func FromUserIDLT

func FromUserIDLT(v string) predicate.Message

FromUserIDLT applies the LT predicate on the "from_user_id" field.

func FromUserIDLTE

func FromUserIDLTE(v string) predicate.Message

FromUserIDLTE applies the LTE predicate on the "from_user_id" field.

func FromUserIDNEQ

func FromUserIDNEQ(v string) predicate.Message

FromUserIDNEQ applies the NEQ predicate on the "from_user_id" field.

func FromUserIDNotIn

func FromUserIDNotIn(vs ...string) predicate.Message

FromUserIDNotIn applies the NotIn predicate on the "from_user_id" field.

func HasSession

func HasSession() predicate.Message

HasSession applies the HasEdge predicate on the "session" edge.

func HasSessionWith

func HasSessionWith(preds ...predicate.Session) predicate.Message

HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).

func HasSpouse

func HasSpouse() predicate.Message

HasSpouse applies the HasEdge predicate on the "spouse" edge.

func HasSpouseWith

func HasSpouseWith(preds ...predicate.Message) predicate.Message

HasSpouseWith applies the HasEdge predicate on the "spouse" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Message

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Message

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Message) predicate.Message

Or groups predicates with the OR operator between them.

func SessionID

func SessionID(v int) predicate.Message

SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.

func SessionIDEQ

func SessionIDEQ(v int) predicate.Message

SessionIDEQ applies the EQ predicate on the "session_id" field.

func SessionIDIn

func SessionIDIn(vs ...int) predicate.Message

SessionIDIn applies the In predicate on the "session_id" field.

func SessionIDIsNil

func SessionIDIsNil() predicate.Message

SessionIDIsNil applies the IsNil predicate on the "session_id" field.

func SessionIDNEQ

func SessionIDNEQ(v int) predicate.Message

SessionIDNEQ applies the NEQ predicate on the "session_id" field.

func SessionIDNotIn

func SessionIDNotIn(vs ...int) predicate.Message

SessionIDNotIn applies the NotIn predicate on the "session_id" field.

func SessionIDNotNil

func SessionIDNotNil() predicate.Message

SessionIDNotNil applies the NotNil predicate on the "session_id" field.

func SpouseID

func SpouseID(v int) predicate.Message

SpouseID applies equality check predicate on the "spouse_id" field. It's identical to SpouseIDEQ.

func SpouseIDEQ

func SpouseIDEQ(v int) predicate.Message

SpouseIDEQ applies the EQ predicate on the "spouse_id" field.

func SpouseIDIn

func SpouseIDIn(vs ...int) predicate.Message

SpouseIDIn applies the In predicate on the "spouse_id" field.

func SpouseIDIsNil

func SpouseIDIsNil() predicate.Message

SpouseIDIsNil applies the IsNil predicate on the "spouse_id" field.

func SpouseIDNEQ

func SpouseIDNEQ(v int) predicate.Message

SpouseIDNEQ applies the NEQ predicate on the "spouse_id" field.

func SpouseIDNotIn

func SpouseIDNotIn(vs ...int) predicate.Message

SpouseIDNotIn applies the NotIn predicate on the "spouse_id" field.

func SpouseIDNotNil

func SpouseIDNotNil() predicate.Message

SpouseIDNotNil applies the NotNil predicate on the "spouse_id" field.

func ToUserID

func ToUserID(v string) predicate.Message

ToUserID applies equality check predicate on the "to_user_id" field. It's identical to ToUserIDEQ.

func ToUserIDContains

func ToUserIDContains(v string) predicate.Message

ToUserIDContains applies the Contains predicate on the "to_user_id" field.

func ToUserIDContainsFold

func ToUserIDContainsFold(v string) predicate.Message

ToUserIDContainsFold applies the ContainsFold predicate on the "to_user_id" field.

func ToUserIDEQ

func ToUserIDEQ(v string) predicate.Message

ToUserIDEQ applies the EQ predicate on the "to_user_id" field.

func ToUserIDEqualFold

func ToUserIDEqualFold(v string) predicate.Message

ToUserIDEqualFold applies the EqualFold predicate on the "to_user_id" field.

func ToUserIDGT

func ToUserIDGT(v string) predicate.Message

ToUserIDGT applies the GT predicate on the "to_user_id" field.

func ToUserIDGTE

func ToUserIDGTE(v string) predicate.Message

ToUserIDGTE applies the GTE predicate on the "to_user_id" field.

func ToUserIDHasPrefix

func ToUserIDHasPrefix(v string) predicate.Message

ToUserIDHasPrefix applies the HasPrefix predicate on the "to_user_id" field.

func ToUserIDHasSuffix

func ToUserIDHasSuffix(v string) predicate.Message

ToUserIDHasSuffix applies the HasSuffix predicate on the "to_user_id" field.

func ToUserIDIn

func ToUserIDIn(vs ...string) predicate.Message

ToUserIDIn applies the In predicate on the "to_user_id" field.

func ToUserIDLT

func ToUserIDLT(v string) predicate.Message

ToUserIDLT applies the LT predicate on the "to_user_id" field.

func ToUserIDLTE

func ToUserIDLTE(v string) predicate.Message

ToUserIDLTE applies the LTE predicate on the "to_user_id" field.

func ToUserIDNEQ

func ToUserIDNEQ(v string) predicate.Message

ToUserIDNEQ applies the NEQ predicate on the "to_user_id" field.

func ToUserIDNotIn

func ToUserIDNotIn(vs ...string) predicate.Message

ToUserIDNotIn applies the NotIn predicate on the "to_user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL