Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Chat) predicate.Chat
- func CreatedAt(v time.Time) predicate.Chat
- func CreatedAtEQ(v time.Time) predicate.Chat
- func CreatedAtGT(v time.Time) predicate.Chat
- func CreatedAtGTE(v time.Time) predicate.Chat
- func CreatedAtIn(vs ...time.Time) predicate.Chat
- func CreatedAtLT(v time.Time) predicate.Chat
- func CreatedAtLTE(v time.Time) predicate.Chat
- func CreatedAtNEQ(v time.Time) predicate.Chat
- func CreatedAtNotIn(vs ...time.Time) predicate.Chat
- func From(v int) predicate.Chat
- func FromEQ(v int) predicate.Chat
- func FromIn(vs ...int) predicate.Chat
- func FromIsNil() predicate.Chat
- func FromNEQ(v int) predicate.Chat
- func FromNotIn(vs ...int) predicate.Chat
- func FromNotNil() predicate.Chat
- func HasOperator() predicate.Chat
- func HasOperatorWith(preds ...predicate.Operator) predicate.Chat
- func ID(id int) predicate.Chat
- func IDEQ(id int) predicate.Chat
- func IDGT(id int) predicate.Chat
- func IDGTE(id int) predicate.Chat
- func IDIn(ids ...int) predicate.Chat
- func IDLT(id int) predicate.Chat
- func IDLTE(id int) predicate.Chat
- func IDNEQ(id int) predicate.Chat
- func IDNotIn(ids ...int) predicate.Chat
- func Message(v string) predicate.Chat
- func MessageContains(v string) predicate.Chat
- func MessageContainsFold(v string) predicate.Chat
- func MessageEQ(v string) predicate.Chat
- func MessageEqualFold(v string) predicate.Chat
- func MessageGT(v string) predicate.Chat
- func MessageGTE(v string) predicate.Chat
- func MessageHasPrefix(v string) predicate.Chat
- func MessageHasSuffix(v string) predicate.Chat
- func MessageIn(vs ...string) predicate.Chat
- func MessageLT(v string) predicate.Chat
- func MessageLTE(v string) predicate.Chat
- func MessageNEQ(v string) predicate.Chat
- func MessageNotIn(vs ...string) predicate.Chat
- func Not(p predicate.Chat) predicate.Chat
- func Or(predicates ...predicate.Chat) predicate.Chat
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the chat type in the database. Label = "chat" // 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" // FieldFrom holds the string denoting the from field in the database. FieldFrom = "from" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // EdgeOperator holds the string denoting the operator edge name in mutations. EdgeOperator = "operator" // Table holds the table name of the chat in the database. Table = "chat" // OperatorTable is the table that holds the operator relation/edge. OperatorTable = "chat" // OperatorInverseTable is the table name for the Operator entity. // It exists in this package in order to avoid circular dependency with the "operator" package. OperatorInverseTable = "operator" // OperatorColumn is the table column denoting the operator relation/edge. OperatorColumn = "from" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // MessageValidator is a validator for the "message" field. It is called by the builders before save. MessageValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldFrom, FieldMessage, }
Columns holds all SQL columns for chat fields.
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 FromNotNil ¶
FromNotNil applies the NotNil predicate on the "from" field.
func HasOperator ¶
HasOperator applies the HasEdge predicate on the "operator" edge.
func HasOperatorWith ¶
HasOperatorWith applies the HasEdge predicate on the "operator" 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Chat queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFrom ¶
func ByFrom(opts ...sql.OrderTermOption) OrderOption
ByFrom orders the results by the from field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMessage ¶
func ByMessage(opts ...sql.OrderTermOption) OrderOption
ByMessage orders the results by the message field.
func ByOperatorField ¶
func ByOperatorField(field string, opts ...sql.OrderTermOption) OrderOption
ByOperatorField orders the results by operator field.