Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Phone) predicate.Phone
- func Description(v string) predicate.Phone
- func DescriptionContains(v string) predicate.Phone
- func DescriptionContainsFold(v string) predicate.Phone
- func DescriptionEQ(v string) predicate.Phone
- func DescriptionEqualFold(v string) predicate.Phone
- func DescriptionGT(v string) predicate.Phone
- func DescriptionGTE(v string) predicate.Phone
- func DescriptionHasPrefix(v string) predicate.Phone
- func DescriptionHasSuffix(v string) predicate.Phone
- func DescriptionIn(vs ...string) predicate.Phone
- func DescriptionLT(v string) predicate.Phone
- func DescriptionLTE(v string) predicate.Phone
- func DescriptionNEQ(v string) predicate.Phone
- func DescriptionNotIn(vs ...string) predicate.Phone
- func HasCompany() predicate.Phone
- func HasCompanyWith(preds ...predicate.Company) predicate.Phone
- func HasCountry() predicate.Phone
- func HasCountryWith(preds ...predicate.Country) predicate.Phone
- func ID(id uuid.UUID) predicate.Phone
- func IDEQ(id uuid.UUID) predicate.Phone
- func IDGT(id uuid.UUID) predicate.Phone
- func IDGTE(id uuid.UUID) predicate.Phone
- func IDIn(ids ...uuid.UUID) predicate.Phone
- func IDLT(id uuid.UUID) predicate.Phone
- func IDLTE(id uuid.UUID) predicate.Phone
- func IDNEQ(id uuid.UUID) predicate.Phone
- func IDNotIn(ids ...uuid.UUID) predicate.Phone
- func Not(p predicate.Phone) predicate.Phone
- func Number(v string) predicate.Phone
- func NumberContains(v string) predicate.Phone
- func NumberContainsFold(v string) predicate.Phone
- func NumberEQ(v string) predicate.Phone
- func NumberEqualFold(v string) predicate.Phone
- func NumberGT(v string) predicate.Phone
- func NumberGTE(v string) predicate.Phone
- func NumberHasPrefix(v string) predicate.Phone
- func NumberHasSuffix(v string) predicate.Phone
- func NumberIn(vs ...string) predicate.Phone
- func NumberLT(v string) predicate.Phone
- func NumberLTE(v string) predicate.Phone
- func NumberNEQ(v string) predicate.Phone
- func NumberNotIn(vs ...string) predicate.Phone
- func Or(predicates ...predicate.Phone) predicate.Phone
- func Title(v string) predicate.Phone
- func TitleContains(v string) predicate.Phone
- func TitleContainsFold(v string) predicate.Phone
- func TitleEQ(v string) predicate.Phone
- func TitleEqualFold(v string) predicate.Phone
- func TitleGT(v string) predicate.Phone
- func TitleGTE(v string) predicate.Phone
- func TitleHasPrefix(v string) predicate.Phone
- func TitleHasSuffix(v string) predicate.Phone
- func TitleIn(vs ...string) predicate.Phone
- func TitleLT(v string) predicate.Phone
- func TitleLTE(v string) predicate.Phone
- func TitleNEQ(v string) predicate.Phone
- func TitleNotIn(vs ...string) predicate.Phone
- func Type(v string) predicate.Phone
- func TypeContains(v string) predicate.Phone
- func TypeContainsFold(v string) predicate.Phone
- func TypeEQ(v string) predicate.Phone
- func TypeEqualFold(v string) predicate.Phone
- func TypeGT(v string) predicate.Phone
- func TypeGTE(v string) predicate.Phone
- func TypeHasPrefix(v string) predicate.Phone
- func TypeHasSuffix(v string) predicate.Phone
- func TypeIn(vs ...string) predicate.Phone
- func TypeLT(v string) predicate.Phone
- func TypeLTE(v string) predicate.Phone
- func TypeNEQ(v string) predicate.Phone
- func TypeNotIn(vs ...string) predicate.Phone
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the phone type in the database. Label = "phone" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldNumber holds the string denoting the number field in the database. FieldNumber = "number" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeCompany holds the string denoting the company edge name in mutations. EdgeCompany = "company" // EdgeCountry holds the string denoting the country edge name in mutations. EdgeCountry = "country" // Table holds the table name of the phone in the database. Table = "phones" // CompanyTable is the table that holds the company relation/edge. CompanyTable = "phones" // CompanyInverseTable is the table name for the Company entity. // It exists in this package in order to avoid circular dependency with the "company" package. CompanyInverseTable = "companies" // CompanyColumn is the table column denoting the company relation/edge. CompanyColumn = "company_phones" // CountryTable is the table that holds the country relation/edge. CountryTable = "phones" // CountryInverseTable is the table name for the Country entity. // It exists in this package in order to avoid circular dependency with the "country" package. CountryInverseTable = "countries" // CountryColumn is the table column denoting the country relation/edge. CountryColumn = "country_phones" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // NumberValidator is a validator for the "number" field. It is called by the builders before save. NumberValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldDescription, FieldNumber, FieldType, }
Columns holds all SQL columns for phone fields.
var ForeignKeys = []string{
"company_phones",
"country_phones",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "phones" table and are not defined as standalone fields in the schema.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasCompany ¶
HasCompany applies the HasEdge predicate on the "company" edge.
func HasCompanyWith ¶
HasCompanyWith applies the HasEdge predicate on the "company" edge with a given conditions (other predicates).
func HasCountry ¶
HasCountry applies the HasEdge predicate on the "country" edge.
func HasCountryWith ¶
HasCountryWith applies the HasEdge predicate on the "country" edge with a given conditions (other predicates).
func Number ¶
Number applies equality check predicate on the "number" field. It's identical to NumberEQ.
func NumberContains ¶
NumberContains applies the Contains predicate on the "number" field.
func NumberContainsFold ¶
NumberContainsFold applies the ContainsFold predicate on the "number" field.
func NumberEqualFold ¶
NumberEqualFold applies the EqualFold predicate on the "number" field.
func NumberHasPrefix ¶
NumberHasPrefix applies the HasPrefix predicate on the "number" field.
func NumberHasSuffix ¶
NumberHasSuffix applies the HasSuffix predicate on the "number" field.
func NumberNotIn ¶
NumberNotIn applies the NotIn predicate on the "number" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.