Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dialog) predicate.Dialog
- func CreateTime(v time.Time) predicate.Dialog
- func CreateTimeEQ(v time.Time) predicate.Dialog
- func CreateTimeGT(v time.Time) predicate.Dialog
- func CreateTimeGTE(v time.Time) predicate.Dialog
- func CreateTimeIn(vs ...time.Time) predicate.Dialog
- func CreateTimeLT(v time.Time) predicate.Dialog
- func CreateTimeLTE(v time.Time) predicate.Dialog
- func CreateTimeNEQ(v time.Time) predicate.Dialog
- func CreateTimeNotIn(vs ...time.Time) predicate.Dialog
- func HasMessage() predicate.Dialog
- func HasMessageWith(preds ...predicate.Message) predicate.Dialog
- func HasUser() predicate.Dialog
- func HasUserWith(preds ...predicate.User) predicate.Dialog
- func ID(id int) predicate.Dialog
- func IDEQ(id int) predicate.Dialog
- func IDGT(id int) predicate.Dialog
- func IDGTE(id int) predicate.Dialog
- func IDIn(ids ...int) predicate.Dialog
- func IDLT(id int) predicate.Dialog
- func IDLTE(id int) predicate.Dialog
- func IDNEQ(id int) predicate.Dialog
- func IDNotIn(ids ...int) predicate.Dialog
- func MetaIsNil() predicate.Dialog
- func MetaNotNil() predicate.Dialog
- func Not(p predicate.Dialog) predicate.Dialog
- func Or(predicates ...predicate.Dialog) predicate.Dialog
- func UpdateTime(v time.Time) predicate.Dialog
- func UpdateTimeEQ(v time.Time) predicate.Dialog
- func UpdateTimeGT(v time.Time) predicate.Dialog
- func UpdateTimeGTE(v time.Time) predicate.Dialog
- func UpdateTimeIn(vs ...time.Time) predicate.Dialog
- func UpdateTimeLT(v time.Time) predicate.Dialog
- func UpdateTimeLTE(v time.Time) predicate.Dialog
- func UpdateTimeNEQ(v time.Time) predicate.Dialog
- func UpdateTimeNotIn(vs ...time.Time) predicate.Dialog
Constants ¶
const ( // Label holds the string label denoting the dialog type in the database. Label = "dialog" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeMessage holds the string denoting the message edge name in mutations. EdgeMessage = "message" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the dialog in the database. Table = "dialogs" // MessageTable is the table the holds the message relation/edge. MessageTable = "messages" // MessageInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessageInverseTable = "messages" // MessageColumn is the table column denoting the message relation/edge. MessageColumn = "dialog_message" // UserTable is the table the holds the user relation/edge. UserTable = "dialogs" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_dialog" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the create_time field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the update_time field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the update_time field. UpdateDefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldMeta, }
Columns holds all SQL columns for dialog fields.
var ForeignKeys = []string{
"user_dialog",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Dialog type.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasMessage ¶
HasMessage applies the HasEdge predicate on the "message" edge.
func HasMessageWith ¶
HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
Types ¶
This section is empty.