Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Problem) predicate.Problem
- func Content(v string) predicate.Problem
- func ContentContains(v string) predicate.Problem
- func ContentContainsFold(v string) predicate.Problem
- func ContentEQ(v string) predicate.Problem
- func ContentEqualFold(v string) predicate.Problem
- func ContentGT(v string) predicate.Problem
- func ContentGTE(v string) predicate.Problem
- func ContentHasPrefix(v string) predicate.Problem
- func ContentHasSuffix(v string) predicate.Problem
- func ContentIn(vs ...string) predicate.Problem
- func ContentLT(v string) predicate.Problem
- func ContentLTE(v string) predicate.Problem
- func ContentNEQ(v string) predicate.Problem
- func ContentNotIn(vs ...string) predicate.Problem
- func CreatedTime(v time.Time) predicate.Problem
- func CreatedTimeEQ(v time.Time) predicate.Problem
- func CreatedTimeGT(v time.Time) predicate.Problem
- func CreatedTimeGTE(v time.Time) predicate.Problem
- func CreatedTimeIn(vs ...time.Time) predicate.Problem
- func CreatedTimeLT(v time.Time) predicate.Problem
- func CreatedTimeLTE(v time.Time) predicate.Problem
- func CreatedTimeNEQ(v time.Time) predicate.Problem
- func CreatedTimeNotIn(vs ...time.Time) predicate.Problem
- func HasAuthor() predicate.Problem
- func HasAuthorWith(preds ...predicate.User) predicate.Problem
- func HasSolvedBy() predicate.Problem
- func HasSolvedByWith(preds ...predicate.User) predicate.Problem
- func HasTags() predicate.Problem
- func HasTagsWith(preds ...predicate.Tag) predicate.Problem
- func ID(id int64) predicate.Problem
- func IDEQ(id int64) predicate.Problem
- func IDGT(id int64) predicate.Problem
- func IDGTE(id int64) predicate.Problem
- func IDIn(ids ...int64) predicate.Problem
- func IDLT(id int64) predicate.Problem
- func IDLTE(id int64) predicate.Problem
- func IDNEQ(id int64) predicate.Problem
- func IDNotIn(ids ...int64) predicate.Problem
- func Not(p predicate.Problem) predicate.Problem
- func Or(predicates ...predicate.Problem) predicate.Problem
- func Title(v string) predicate.Problem
- func TitleContains(v string) predicate.Problem
- func TitleContainsFold(v string) predicate.Problem
- func TitleEQ(v string) predicate.Problem
- func TitleEqualFold(v string) predicate.Problem
- func TitleGT(v string) predicate.Problem
- func TitleGTE(v string) predicate.Problem
- func TitleHasPrefix(v string) predicate.Problem
- func TitleHasSuffix(v string) predicate.Problem
- func TitleIn(vs ...string) predicate.Problem
- func TitleLT(v string) predicate.Problem
- func TitleLTE(v string) predicate.Problem
- func TitleNEQ(v string) predicate.Problem
- func TitleNotIn(vs ...string) predicate.Problem
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the problem type in the database. Label = "problem" // 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" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldCreatedTime holds the string denoting the created_time field in the database. FieldCreatedTime = "created_time" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeSolvedBy holds the string denoting the solved_by edge name in mutations. EdgeSolvedBy = "solved_by" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // Table holds the table name of the problem in the database. Table = "problems" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "problems" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "user_created_problems" // SolvedByTable is the table that holds the solved_by relation/edge. The primary key declared below. SolvedByTable = "user_solved_problems" // SolvedByInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. SolvedByInverseTable = "users" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "problem_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" )
Variables ¶
var ( // SolvedByPrimaryKey and SolvedByColumn2 are the table columns denoting the // primary key for the solved_by relation (M2M). SolvedByPrimaryKey = []string{"user_id", "problem_id"} // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"problem_id", "tag_id"} )
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultCreatedTime holds the default value on creation for the "created_time" field. DefaultCreatedTime time.Time )
var Columns = []string{ FieldID, FieldTitle, FieldContent, FieldCreatedTime, }
Columns holds all SQL columns for problem fields.
var ForeignKeys = []string{
"user_created_problems",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "problems" table and are not defined as standalone fields in the schema.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func CreatedTime ¶
CreatedTime applies equality check predicate on the "created_time" field. It's identical to CreatedTimeEQ.
func CreatedTimeEQ ¶
CreatedTimeEQ applies the EQ predicate on the "created_time" field.
func CreatedTimeGT ¶
CreatedTimeGT applies the GT predicate on the "created_time" field.
func CreatedTimeGTE ¶
CreatedTimeGTE applies the GTE predicate on the "created_time" field.
func CreatedTimeIn ¶
CreatedTimeIn applies the In predicate on the "created_time" field.
func CreatedTimeLT ¶
CreatedTimeLT applies the LT predicate on the "created_time" field.
func CreatedTimeLTE ¶
CreatedTimeLTE applies the LTE predicate on the "created_time" field.
func CreatedTimeNEQ ¶
CreatedTimeNEQ applies the NEQ predicate on the "created_time" field.
func CreatedTimeNotIn ¶
CreatedTimeNotIn applies the NotIn predicate on the "created_time" field.
func HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasSolvedBy ¶
HasSolvedBy applies the HasEdge predicate on the "solved_by" edge.
func HasSolvedByWith ¶
HasSolvedByWith applies the HasEdge predicate on the "solved_by" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.