Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Chat) predicate.Chat
- func AuthorID(v int64) predicate.Chat
- func AuthorIDEQ(v int64) predicate.Chat
- func AuthorIDIn(vs ...int64) predicate.Chat
- func AuthorIDIsNil() predicate.Chat
- func AuthorIDNEQ(v int64) predicate.Chat
- func AuthorIDNotIn(vs ...int64) predicate.Chat
- func AuthorIDNotNil() 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 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 IsServer(v bool) predicate.Chat
- func IsServerEQ(v bool) predicate.Chat
- func IsServerNEQ(v bool) 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
- func ByAuthorID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsServer(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(opts ...sql.OrderTermOption) OrderOption
- func ByOperatorField(field string, opts ...sql.OrderTermOption) 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" // FieldAuthorID holds the string denoting the author_id field in the database. FieldAuthorID = "author_id" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldIsServer holds the string denoting the is_server field in the database. FieldIsServer = "is_server" // 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 = "author_id" )
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 // DefaultIsServer holds the default value on creation for the "is_server" field. DefaultIsServer bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldAuthorID, FieldMessage, FieldIsServer, }
Columns holds all SQL columns for chat fields.
Functions ¶
func AuthorID ¶
AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.
func AuthorIDEQ ¶
AuthorIDEQ applies the EQ predicate on the "author_id" field.
func AuthorIDIn ¶
AuthorIDIn applies the In predicate on the "author_id" field.
func AuthorIDIsNil ¶
AuthorIDIsNil applies the IsNil predicate on the "author_id" field.
func AuthorIDNEQ ¶
AuthorIDNEQ applies the NEQ predicate on the "author_id" field.
func AuthorIDNotIn ¶
AuthorIDNotIn applies the NotIn predicate on the "author_id" field.
func AuthorIDNotNil ¶
AuthorIDNotNil applies the NotNil predicate on the "author_id" 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 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 IsServer ¶
IsServer applies equality check predicate on the "is_server" field. It's identical to IsServerEQ.
func IsServerEQ ¶
IsServerEQ applies the EQ predicate on the "is_server" field.
func IsServerNEQ ¶
IsServerNEQ applies the NEQ predicate on the "is_server" field.
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 ByAuthorID ¶
func ByAuthorID(opts ...sql.OrderTermOption) OrderOption
ByAuthorID orders the results by the author_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsServer ¶
func ByIsServer(opts ...sql.OrderTermOption) OrderOption
ByIsServer orders the results by the is_server 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.