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 ID(id uuid.UUID) predicate.Chat
- func IDEQ(id uuid.UUID) predicate.Chat
- func IDGT(id uuid.UUID) predicate.Chat
- func IDGTE(id uuid.UUID) predicate.Chat
- func IDIn(ids ...uuid.UUID) predicate.Chat
- func IDLT(id uuid.UUID) predicate.Chat
- func IDLTE(id uuid.UUID) predicate.Chat
- func IDNEQ(id uuid.UUID) predicate.Chat
- func IDNotIn(ids ...uuid.UUID) predicate.Chat
- func Not(p predicate.Chat) predicate.Chat
- func Or(predicates ...predicate.Chat) predicate.Chat
- func Title(v string) predicate.Chat
- func TitleContains(v string) predicate.Chat
- func TitleContainsFold(v string) predicate.Chat
- func TitleEQ(v string) predicate.Chat
- func TitleEqualFold(v string) predicate.Chat
- func TitleGT(v string) predicate.Chat
- func TitleGTE(v string) predicate.Chat
- func TitleHasPrefix(v string) predicate.Chat
- func TitleHasSuffix(v string) predicate.Chat
- func TitleIn(vs ...string) predicate.Chat
- func TitleLT(v string) predicate.Chat
- func TitleLTE(v string) predicate.Chat
- func TitleNEQ(v string) predicate.Chat
- func TitleNotIn(vs ...string) predicate.Chat
- func UserId(v uuid.UUID) predicate.Chat
- func UserIdEQ(v uuid.UUID) predicate.Chat
- func UserIdGT(v uuid.UUID) predicate.Chat
- func UserIdGTE(v uuid.UUID) predicate.Chat
- func UserIdIn(vs ...uuid.UUID) predicate.Chat
- func UserIdLT(v uuid.UUID) predicate.Chat
- func UserIdLTE(v uuid.UUID) predicate.Chat
- func UserIdNEQ(v uuid.UUID) predicate.Chat
- func UserIdNotIn(vs ...uuid.UUID) 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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldUserId holds the string denoting the userid field in the database. FieldUserId = "user_id" // FieldModels holds the string denoting the models field in the database. FieldModels = "models" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldHistory holds the string denoting the history field in the database. FieldHistory = "history" // FieldMessages holds the string denoting the messages field in the database. FieldMessages = "messages" // FieldCreatedAt holds the string denoting the createdat field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the chat in the database. Table = "chats" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "createdAt" field. DefaultCreatedAt time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldUserId, FieldModels, FieldTags, FieldHistory, FieldMessages, FieldCreatedAt, }
Columns holds all SQL columns for chat fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "createdAt" 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 UserId ¶
UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.
func UserIdNotIn ¶
UserIdNotIn applies the NotIn predicate on the "userId" 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 createdAt field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByUserId ¶
func ByUserId(opts ...sql.OrderTermOption) OrderOption
ByUserId orders the results by the userId field.