Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func HasCard() predicate.User
- func HasCardWith(preds ...predicate.Card) predicate.User
- func HasChildren() predicate.User
- func HasChildrenWith(preds ...predicate.User) predicate.User
- func HasInfo() predicate.User
- func HasInfoWith(preds ...predicate.Info) predicate.User
- func HasMetadata() predicate.User
- func HasMetadataWith(preds ...predicate.Metadata) predicate.User
- func HasParent() predicate.User
- func HasParentWith(preds ...predicate.User) predicate.User
- func HasPets() predicate.User
- func HasPetsWith(preds ...predicate.Pet) predicate.User
- func HasRentals() predicate.User
- func HasRentalsWith(preds ...predicate.Rental) predicate.User
- func HasSpouse() predicate.User
- func HasSpouseWith(preds ...predicate.User) 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 Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ParentID(v int) predicate.User
- func ParentIDEQ(v int) predicate.User
- func ParentIDIn(vs ...int) predicate.User
- func ParentIDIsNil() predicate.User
- func ParentIDNEQ(v int) predicate.User
- func ParentIDNotIn(vs ...int) predicate.User
- func ParentIDNotNil() predicate.User
- func SpouseID(v int) predicate.User
- func SpouseIDEQ(v int) predicate.User
- func SpouseIDIn(vs ...int) predicate.User
- func SpouseIDIsNil() predicate.User
- func SpouseIDNEQ(v int) predicate.User
- func SpouseIDNotIn(vs ...int) predicate.User
- func SpouseIDNotNil() 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" // FieldParentID holds the string denoting the parent_id field in the database. FieldParentID = "parent_id" // FieldSpouseID holds the string denoting the spouse_id field in the database. FieldSpouseID = "spouse_id" // EdgePets holds the string denoting the pets edge name in mutations. EdgePets = "pets" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeSpouse holds the string denoting the spouse edge name in mutations. EdgeSpouse = "spouse" // EdgeCard holds the string denoting the card edge name in mutations. EdgeCard = "card" // EdgeMetadata holds the string denoting the metadata edge name in mutations. EdgeMetadata = "metadata" // EdgeInfo holds the string denoting the info edge name in mutations. EdgeInfo = "info" // EdgeRentals holds the string denoting the rentals edge name in mutations. EdgeRentals = "rentals" // Table holds the table name of the user in the database. Table = "users" // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "owner_id" // ParentTable is the table that holds the parent relation/edge. ParentTable = "users" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_id" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "users" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "spouse_id" // CardTable is the table that holds the card relation/edge. CardTable = "cards" // CardInverseTable is the table name for the Card entity. // It exists in this package in order to avoid circular dependency with the "card" package. CardInverseTable = "cards" // CardColumn is the table column denoting the card relation/edge. CardColumn = "owner_id" // MetadataTable is the table that holds the metadata relation/edge. MetadataTable = "metadata" // MetadataInverseTable is the table name for the Metadata entity. // It exists in this package in order to avoid circular dependency with the "metadata" package. MetadataInverseTable = "metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "id" // InfoTable is the table that holds the info relation/edge. InfoTable = "infos" // InfoInverseTable is the table name for the Info entity. // It exists in this package in order to avoid circular dependency with the "info" package. InfoInverseTable = "infos" // InfoColumn is the table column denoting the info relation/edge. InfoColumn = "id" // RentalsTable is the table that holds the rentals relation/edge. RentalsTable = "rentals" // RentalsInverseTable is the table name for the Rental entity. // It exists in this package in order to avoid circular dependency with the "rental" package. RentalsInverseTable = "rentals" // RentalsColumn is the table column denoting the rentals relation/edge. RentalsColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldParentID, FieldSpouseID, }
Columns holds all SQL columns for user fields.
Functions ¶
func HasCardWith ¶
HasCardWith applies the HasEdge predicate on the "card" edge with a given conditions (other predicates).
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasInfoWith ¶
HasInfoWith applies the HasEdge predicate on the "info" edge with a given conditions (other predicates).
func HasMetadata ¶
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasPetsWith ¶
HasPetsWith applies the HasEdge predicate on the "pets" edge with a given conditions (other predicates).
func HasRentals ¶
HasRentals applies the HasEdge predicate on the "rentals" edge.
func HasRentalsWith ¶
HasRentalsWith applies the HasEdge predicate on the "rentals" 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 ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDIsNil ¶
ParentIDIsNil applies the IsNil predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func ParentIDNotNil ¶
ParentIDNotNil applies the NotNil predicate on the "parent_id" field.
func SpouseID ¶
SpouseID applies equality check predicate on the "spouse_id" field. It's identical to SpouseIDEQ.
func SpouseIDEQ ¶
SpouseIDEQ applies the EQ predicate on the "spouse_id" field.
func SpouseIDIn ¶
SpouseIDIn applies the In predicate on the "spouse_id" field.
func SpouseIDIsNil ¶
SpouseIDIsNil applies the IsNil predicate on the "spouse_id" field.
func SpouseIDNEQ ¶
SpouseIDNEQ applies the NEQ predicate on the "spouse_id" field.
func SpouseIDNotIn ¶
SpouseIDNotIn applies the NotIn predicate on the "spouse_id" field.
func SpouseIDNotNil ¶
SpouseIDNotNil applies the NotNil predicate on the "spouse_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.