Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasAssignee() predicate.User
- func HasAssigneeWith(preds ...predicate.Epic) predicate.User
- func HasComments() predicate.User
- func HasCommentsWith(preds ...predicate.Comment) predicate.User
- func HasOwns() predicate.User
- func HasOwnsWith(preds ...predicate.Project) predicate.User
- func HasReporter() predicate.User
- func HasReporterWith(preds ...predicate.Epic) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Surname(v string) predicate.User
- func SurnameContains(v string) predicate.User
- func SurnameContainsFold(v string) predicate.User
- func SurnameEQ(v string) predicate.User
- func SurnameEqualFold(v string) predicate.User
- func SurnameGT(v string) predicate.User
- func SurnameGTE(v string) predicate.User
- func SurnameHasPrefix(v string) predicate.User
- func SurnameHasSuffix(v string) predicate.User
- func SurnameIn(vs ...string) predicate.User
- func SurnameLT(v string) predicate.User
- func SurnameLTE(v string) predicate.User
- func SurnameNEQ(v string) predicate.User
- func SurnameNotIn(vs ...string) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSurname holds the string denoting the surname field in the database. FieldSurname = "surname" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // EdgeOwns holds the string denoting the owns edge name in mutations. EdgeOwns = "owns" // EdgeReporter holds the string denoting the reporter edge name in mutations. EdgeReporter = "reporter" // EdgeAssignee holds the string denoting the assignee edge name in mutations. EdgeAssignee = "assignee" // EdgeComments holds the string denoting the comments edge name in mutations. EdgeComments = "comments" // Table holds the table name of the user in the database. Table = "users" // OwnsTable is the table that holds the owns relation/edge. OwnsTable = "projects" // OwnsInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. OwnsInverseTable = "projects" // OwnsColumn is the table column denoting the owns relation/edge. OwnsColumn = "user_owns" // ReporterTable is the table that holds the reporter relation/edge. ReporterTable = "epics" // ReporterInverseTable is the table name for the Epic entity. // It exists in this package in order to avoid circular dependency with the "epic" package. ReporterInverseTable = "epics" // ReporterColumn is the table column denoting the reporter relation/edge. ReporterColumn = "user_reporter" // AssigneeTable is the table that holds the assignee relation/edge. AssigneeTable = "epics" // AssigneeInverseTable is the table name for the Epic entity. // It exists in this package in order to avoid circular dependency with the "epic" package. AssigneeInverseTable = "epics" // AssigneeColumn is the table column denoting the assignee relation/edge. AssigneeColumn = "user_assignee" // CommentsTable is the table that holds the comments relation/edge. The primary key declared below. CommentsTable = "user_comments" // CommentsInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. CommentsInverseTable = "comments" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // SurnameValidator is a validator for the "surname" field. It is called by the builders before save. SurnameValidator func(string) error // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldSurname, FieldUsername, FieldEmail, }
Columns holds all SQL columns for user fields.
var ( // CommentsPrimaryKey and CommentsColumn2 are the table columns denoting the // primary key for the comments relation (M2M). CommentsPrimaryKey = []string{"user_id", "comment_id"} )
Functions ¶
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasAssignee ¶
HasAssignee applies the HasEdge predicate on the "assignee" edge.
func HasAssigneeWith ¶
HasAssigneeWith applies the HasEdge predicate on the "assignee" edge with a given conditions (other predicates).
func HasComments ¶
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func HasOwnsWith ¶
HasOwnsWith applies the HasEdge predicate on the "owns" edge with a given conditions (other predicates).
func HasReporter ¶
HasReporter applies the HasEdge predicate on the "reporter" edge.
func HasReporterWith ¶
HasReporterWith applies the HasEdge predicate on the "reporter" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Surname ¶
Surname applies equality check predicate on the "surname" field. It's identical to SurnameEQ.
func SurnameContains ¶
SurnameContains applies the Contains predicate on the "surname" field.
func SurnameContainsFold ¶
SurnameContainsFold applies the ContainsFold predicate on the "surname" field.
func SurnameEqualFold ¶
SurnameEqualFold applies the EqualFold predicate on the "surname" field.
func SurnameGTE ¶
SurnameGTE applies the GTE predicate on the "surname" field.
func SurnameHasPrefix ¶
SurnameHasPrefix applies the HasPrefix predicate on the "surname" field.
func SurnameHasSuffix ¶
SurnameHasSuffix applies the HasSuffix predicate on the "surname" field.
func SurnameLTE ¶
SurnameLTE applies the LTE predicate on the "surname" field.
func SurnameNEQ ¶
SurnameNEQ applies the NEQ predicate on the "surname" field.
func SurnameNotIn ¶
SurnameNotIn applies the NotIn predicate on the "surname" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.