Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserAppeal) predicate.UserAppeal
- func Content(v string) predicate.UserAppeal
- func ContentContains(v string) predicate.UserAppeal
- func ContentContainsFold(v string) predicate.UserAppeal
- func ContentEQ(v string) predicate.UserAppeal
- func ContentEqualFold(v string) predicate.UserAppeal
- func ContentGT(v string) predicate.UserAppeal
- func ContentGTE(v string) predicate.UserAppeal
- func ContentHasPrefix(v string) predicate.UserAppeal
- func ContentHasSuffix(v string) predicate.UserAppeal
- func ContentIn(vs ...string) predicate.UserAppeal
- func ContentLT(v string) predicate.UserAppeal
- func ContentLTE(v string) predicate.UserAppeal
- func ContentNEQ(v string) predicate.UserAppeal
- func ContentNotIn(vs ...string) predicate.UserAppeal
- func CreateTime(v time.Time) predicate.UserAppeal
- func CreateTimeEQ(v time.Time) predicate.UserAppeal
- func CreateTimeGT(v time.Time) predicate.UserAppeal
- func CreateTimeGTE(v time.Time) predicate.UserAppeal
- func CreateTimeIn(vs ...time.Time) predicate.UserAppeal
- func CreateTimeLT(v time.Time) predicate.UserAppeal
- func CreateTimeLTE(v time.Time) predicate.UserAppeal
- func CreateTimeNEQ(v time.Time) predicate.UserAppeal
- func CreateTimeNotIn(vs ...time.Time) predicate.UserAppeal
- func HasUser() predicate.UserAppeal
- func HasUserWith(preds ...predicate.User) predicate.UserAppeal
- func ID(id int) predicate.UserAppeal
- func IDEQ(id int) predicate.UserAppeal
- func IDGT(id int) predicate.UserAppeal
- func IDGTE(id int) predicate.UserAppeal
- func IDIn(ids ...int) predicate.UserAppeal
- func IDLT(id int) predicate.UserAppeal
- func IDLTE(id int) predicate.UserAppeal
- func IDNEQ(id int) predicate.UserAppeal
- func IDNotIn(ids ...int) predicate.UserAppeal
- func Not(p predicate.UserAppeal) predicate.UserAppeal
- func Or(predicates ...predicate.UserAppeal) predicate.UserAppeal
- func UpdateTime(v time.Time) predicate.UserAppeal
- func UpdateTimeEQ(v time.Time) predicate.UserAppeal
- func UpdateTimeGT(v time.Time) predicate.UserAppeal
- func UpdateTimeGTE(v time.Time) predicate.UserAppeal
- func UpdateTimeIn(vs ...time.Time) predicate.UserAppeal
- func UpdateTimeLT(v time.Time) predicate.UserAppeal
- func UpdateTimeLTE(v time.Time) predicate.UserAppeal
- func UpdateTimeNEQ(v time.Time) predicate.UserAppeal
- func UpdateTimeNotIn(vs ...time.Time) predicate.UserAppeal
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the userappeal type in the database. Label = "user_appeal" // 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" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the userappeal in the database. Table = "user_appeals" // UserTable is the table that holds the user relation/edge. UserTable = "user_appeals" // 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_id" )
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 // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldContent, }
Columns holds all SQL columns for userappeal fields.
var ForeignKeys = []string{
"user_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_appeals" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.UserAppeal) predicate.UserAppeal
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.UserAppeal
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.UserAppeal
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.UserAppeal
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.UserAppeal
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.UserAppeal
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.UserAppeal
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.UserAppeal
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.UserAppeal
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.UserAppeal
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.UserAppeal
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.UserAppeal
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.UserAppeal
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.UserAppeal
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.UserAppeal
ContentNotIn applies the NotIn predicate on the "content" field.
func CreateTime ¶
func CreateTime(v time.Time) predicate.UserAppeal
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.UserAppeal
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.UserAppeal
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.UserAppeal
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.UserAppeal
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.UserAppeal
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.UserAppeal
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.UserAppeal
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.UserAppeal
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasUser ¶
func HasUser() predicate.UserAppeal
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserAppeal
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserAppeal
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserAppeal
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserAppeal
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserAppeal
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserAppeal
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserAppeal) predicate.UserAppeal
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserAppeal) predicate.UserAppeal
Or groups predicates with the OR operator between them.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.UserAppeal
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.UserAppeal
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.UserAppeal
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.UserAppeal
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.UserAppeal
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.UserAppeal
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.UserAppeal
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.UserAppeal
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.UserAppeal
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 UserAppeal queries.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.