Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserForEnt) predicate.UserForEnt
- func HasRepositoryForEnts() predicate.UserForEnt
- func HasRepositoryForEntsWith(preds ...predicate.RepositoryForEnt) predicate.UserForEnt
- func ID(id int) predicate.UserForEnt
- func IDEQ(id int) predicate.UserForEnt
- func IDGT(id int) predicate.UserForEnt
- func IDGTE(id int) predicate.UserForEnt
- func IDIn(ids ...int) predicate.UserForEnt
- func IDLT(id int) predicate.UserForEnt
- func IDLTE(id int) predicate.UserForEnt
- func IDNEQ(id int) predicate.UserForEnt
- func IDNotIn(ids ...int) predicate.UserForEnt
- func Not(p predicate.UserForEnt) predicate.UserForEnt
- func Or(predicates ...predicate.UserForEnt) predicate.UserForEnt
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the userforent type in the database. Label = "user_for_ent" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeRepositoryForEnts holds the string denoting the repository_for_ents edge name in mutations. EdgeRepositoryForEnts = "repository_for_ents" // Table holds the table name of the userforent in the database. Table = "user_for_ents" // RepositoryForEntsTable is the table that holds the repository_for_ents relation/edge. The primary key declared below. RepositoryForEntsTable = "repository_for_ent_user_for_ents" // RepositoryForEntsInverseTable is the table name for the RepositoryForEnt entity. // It exists in this package in order to avoid circular dependency with the "repositoryforent" package. RepositoryForEntsInverseTable = "repository_for_ents" )
Variables ¶
var Columns = []string{ FieldID, }
Columns holds all SQL columns for userforent fields.
var ( // RepositoryForEntsPrimaryKey and RepositoryForEntsColumn2 are the table columns denoting the // primary key for the repository_for_ents relation (M2M). RepositoryForEntsPrimaryKey = []string{"repository_for_ent_id", "user_for_ent_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.UserForEnt) predicate.UserForEnt
And groups predicates with the AND operator between them.
func HasRepositoryForEnts ¶
func HasRepositoryForEnts() predicate.UserForEnt
HasRepositoryForEnts applies the HasEdge predicate on the "repository_for_ents" edge.
func HasRepositoryForEntsWith ¶
func HasRepositoryForEntsWith(preds ...predicate.RepositoryForEnt) predicate.UserForEnt
HasRepositoryForEntsWith applies the HasEdge predicate on the "repository_for_ents" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserForEnt
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserForEnt
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserForEnt
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserForEnt
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserForEnt
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserForEnt) predicate.UserForEnt
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserForEnt) predicate.UserForEnt
Or groups predicates with the OR operator between them.
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 UserForEnt queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRepositoryForEnts ¶
func ByRepositoryForEnts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRepositoryForEnts orders the results by repository_for_ents terms.
func ByRepositoryForEntsCount ¶
func ByRepositoryForEntsCount(opts ...sql.OrderTermOption) OrderOption
ByRepositoryForEntsCount orders the results by repository_for_ents count.