Documentation ¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.Contact
- func AddressContains(v string) predicate.Contact
- func AddressContainsFold(v string) predicate.Contact
- func AddressEQ(v string) predicate.Contact
- func AddressEqualFold(v string) predicate.Contact
- func AddressGT(v string) predicate.Contact
- func AddressGTE(v string) predicate.Contact
- func AddressHasPrefix(v string) predicate.Contact
- func AddressHasSuffix(v string) predicate.Contact
- func AddressIn(vs ...string) predicate.Contact
- func AddressLT(v string) predicate.Contact
- func AddressLTE(v string) predicate.Contact
- func AddressNEQ(v string) predicate.Contact
- func AddressNotIn(vs ...string) predicate.Contact
- func And(predicates ...predicate.Contact) predicate.Contact
- func HasOwner() predicate.Contact
- func HasOwnerWith(preds ...predicate.User) predicate.Contact
- func ID(id int) predicate.Contact
- func IDEQ(id int) predicate.Contact
- func IDGT(id int) predicate.Contact
- func IDGTE(id int) predicate.Contact
- func IDIn(ids ...int) predicate.Contact
- func IDLT(id int) predicate.Contact
- func IDLTE(id int) predicate.Contact
- func IDNEQ(id int) predicate.Contact
- func IDNotIn(ids ...int) predicate.Contact
- func Name(v string) predicate.Contact
- func NameContains(v string) predicate.Contact
- func NameContainsFold(v string) predicate.Contact
- func NameEQ(v string) predicate.Contact
- func NameEqualFold(v string) predicate.Contact
- func NameGT(v string) predicate.Contact
- func NameGTE(v string) predicate.Contact
- func NameHasPrefix(v string) predicate.Contact
- func NameHasSuffix(v string) predicate.Contact
- func NameIn(vs ...string) predicate.Contact
- func NameLT(v string) predicate.Contact
- func NameLTE(v string) predicate.Contact
- func NameNEQ(v string) predicate.Contact
- func NameNotIn(vs ...string) predicate.Contact
- func Not(p predicate.Contact) predicate.Contact
- func Or(predicates ...predicate.Contact) predicate.Contact
- func Phone(v string) predicate.Contact
- func PhoneContains(v string) predicate.Contact
- func PhoneContainsFold(v string) predicate.Contact
- func PhoneEQ(v string) predicate.Contact
- func PhoneEqualFold(v string) predicate.Contact
- func PhoneGT(v string) predicate.Contact
- func PhoneGTE(v string) predicate.Contact
- func PhoneHasPrefix(v string) predicate.Contact
- func PhoneHasSuffix(v string) predicate.Contact
- func PhoneIn(vs ...string) predicate.Contact
- func PhoneLT(v string) predicate.Contact
- func PhoneLTE(v string) predicate.Contact
- func PhoneNEQ(v string) predicate.Contact
- func PhoneNotIn(vs ...string) predicate.Contact
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the contact type in the database. Label = "contact" // 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" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the contact in the database. Table = "contacts" // OwnerTable is the table the holds the owner relation/edge. OwnerTable = "contacts" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "contact_owner" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldPhone, FieldAddress, }
Columns holds all SQL columns for contact fields.
var ForeignKeys = []string{
"contact_owner",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Contact type.
Functions ¶
func Address ¶
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEqualFold ¶
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGTE ¶
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressLTE ¶
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
AddressNotIn applies the NotIn predicate on the "address" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" 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 Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.