Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func HasFollowers() predicate.User
- func HasFollowersWith(preds ...predicate.User) predicate.User
- func HasFollowing() predicate.User
- func HasFollowingWith(preds ...predicate.User) predicate.User
- func HasSpouse() predicate.User
- func HasSpouseWith(preds ...predicate.User) predicate.User
- func ID(id uint64) predicate.User
- func IDEQ(id uint64) predicate.User
- func IDGT(id uint64) predicate.User
- func IDGTE(id uint64) predicate.User
- func IDIn(ids ...uint64) predicate.User
- func IDLT(id uint64) predicate.User
- func IDLTE(id uint64) predicate.User
- func IDNEQ(id uint64) predicate.User
- func IDNotIn(ids ...uint64) 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
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" // EdgeSpouse holds the string denoting the spouse edge name in mutations. EdgeSpouse = "spouse" // EdgeFollowers holds the string denoting the followers edge name in mutations. EdgeFollowers = "followers" // EdgeFollowing holds the string denoting the following edge name in mutations. EdgeFollowing = "following" // Table holds the table name of the user in the database. Table = "users" // SpouseTable is the table the holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "user_spouse" // FollowersTable is the table the holds the followers relation/edge. The primary key declared below. FollowersTable = "user_following" // FollowingTable is the table the holds the following relation/edge. The primary key declared below. FollowingTable = "user_following" )
Variables ¶
var ( // FollowersPrimaryKey and FollowersColumn2 are the table columns denoting the // primary key for the followers relation (M2M). FollowersPrimaryKey = []string{"user_id", "follower_id"} // FollowingPrimaryKey and FollowingColumn2 are the table columns denoting the // primary key for the following relation (M2M). FollowingPrimaryKey = []string{"user_id", "follower_id"} )
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"user_spouse",
}
ForeignKeys holds the SQL foreign-keys that are owned by the User type.
Functions ¶
func HasFollowers ¶
HasFollowers applies the HasEdge predicate on the "followers" edge.
func HasFollowersWith ¶
HasFollowersWith applies the HasEdge predicate on the "followers" edge with a given conditions (other predicates).
func HasFollowing ¶
HasFollowing applies the HasEdge predicate on the "following" edge.
func HasFollowingWith ¶
HasFollowingWith applies the HasEdge predicate on the "following" edge with a given conditions (other predicates).
func HasSpouseWith ¶
HasSpouseWith applies the HasEdge predicate on the "spouse" 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.
Types ¶
This section is empty.