Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Comment) predicate.Comment
- func HasEpics() predicate.Comment
- func HasEpicsWith(preds ...predicate.Epic) predicate.Comment
- func HasProjects() predicate.Comment
- func HasProjectsWith(preds ...predicate.Project) predicate.Comment
- func HasUsers() predicate.Comment
- func HasUsersWith(preds ...predicate.User) predicate.Comment
- func ID(id int) predicate.Comment
- func IDEQ(id int) predicate.Comment
- func IDGT(id int) predicate.Comment
- func IDGTE(id int) predicate.Comment
- func IDIn(ids ...int) predicate.Comment
- func IDLT(id int) predicate.Comment
- func IDLTE(id int) predicate.Comment
- func IDNEQ(id int) predicate.Comment
- func IDNotIn(ids ...int) predicate.Comment
- func Not(p predicate.Comment) predicate.Comment
- func Or(predicates ...predicate.Comment) predicate.Comment
- func Text(v string) predicate.Comment
- func TextContains(v string) predicate.Comment
- func TextContainsFold(v string) predicate.Comment
- func TextEQ(v string) predicate.Comment
- func TextEqualFold(v string) predicate.Comment
- func TextGT(v string) predicate.Comment
- func TextGTE(v string) predicate.Comment
- func TextHasPrefix(v string) predicate.Comment
- func TextHasSuffix(v string) predicate.Comment
- func TextIn(vs ...string) predicate.Comment
- func TextLT(v string) predicate.Comment
- func TextLTE(v string) predicate.Comment
- func TextNEQ(v string) predicate.Comment
- func TextNotIn(vs ...string) predicate.Comment
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the comment type in the database. Label = "comment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldText holds the string denoting the text field in the database. FieldText = "text" // EdgeEpics holds the string denoting the epics edge name in mutations. EdgeEpics = "epics" // EdgeProjects holds the string denoting the projects edge name in mutations. EdgeProjects = "projects" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // Table holds the table name of the comment in the database. Table = "comments" // EpicsTable is the table that holds the epics relation/edge. The primary key declared below. EpicsTable = "epic_comments" // EpicsInverseTable is the table name for the Epic entity. // It exists in this package in order to avoid circular dependency with the "epic" package. EpicsInverseTable = "epics" // ProjectsTable is the table that holds the projects relation/edge. The primary key declared below. ProjectsTable = "project_comments" // ProjectsInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectsInverseTable = "projects" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_comments" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" )
Variables ¶
var ( // EpicsPrimaryKey and EpicsColumn2 are the table columns denoting the // primary key for the epics relation (M2M). EpicsPrimaryKey = []string{"epic_id", "comment_id"} // ProjectsPrimaryKey and ProjectsColumn2 are the table columns denoting the // primary key for the projects relation (M2M). ProjectsPrimaryKey = []string{"project_id", "comment_id"} // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "comment_id"} )
var Columns = []string{ FieldID, FieldText, }
Columns holds all SQL columns for comment fields.
var ( // TextValidator is a validator for the "text" field. It is called by the builders before save. TextValidator func(string) error )
Functions ¶
func HasEpicsWith ¶
HasEpicsWith applies the HasEdge predicate on the "epics" edge with a given conditions (other predicates).
func HasProjects ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.