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