Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Website) predicate.Website
- func Description(v string) predicate.Website
- func DescriptionContains(v string) predicate.Website
- func DescriptionContainsFold(v string) predicate.Website
- func DescriptionEQ(v string) predicate.Website
- func DescriptionEqualFold(v string) predicate.Website
- func DescriptionGT(v string) predicate.Website
- func DescriptionGTE(v string) predicate.Website
- func DescriptionHasPrefix(v string) predicate.Website
- func DescriptionHasSuffix(v string) predicate.Website
- func DescriptionIn(vs ...string) predicate.Website
- func DescriptionLT(v string) predicate.Website
- func DescriptionLTE(v string) predicate.Website
- func DescriptionNEQ(v string) predicate.Website
- func DescriptionNotIn(vs ...string) predicate.Website
- func HasCompany() predicate.Website
- func HasCompanyWith(preds ...predicate.Company) predicate.Website
- func HasCountry() predicate.Website
- func HasCountryWith(preds ...predicate.Country) predicate.Website
- func ID(id uuid.UUID) predicate.Website
- func IDEQ(id uuid.UUID) predicate.Website
- func IDGT(id uuid.UUID) predicate.Website
- func IDGTE(id uuid.UUID) predicate.Website
- func IDIn(ids ...uuid.UUID) predicate.Website
- func IDLT(id uuid.UUID) predicate.Website
- func IDLTE(id uuid.UUID) predicate.Website
- func IDNEQ(id uuid.UUID) predicate.Website
- func IDNotIn(ids ...uuid.UUID) predicate.Website
- func Not(p predicate.Website) predicate.Website
- func Or(predicates ...predicate.Website) predicate.Website
- func Title(v string) predicate.Website
- func TitleContains(v string) predicate.Website
- func TitleContainsFold(v string) predicate.Website
- func TitleEQ(v string) predicate.Website
- func TitleEqualFold(v string) predicate.Website
- func TitleGT(v string) predicate.Website
- func TitleGTE(v string) predicate.Website
- func TitleHasPrefix(v string) predicate.Website
- func TitleHasSuffix(v string) predicate.Website
- func TitleIn(vs ...string) predicate.Website
- func TitleLT(v string) predicate.Website
- func TitleLTE(v string) predicate.Website
- func TitleNEQ(v string) predicate.Website
- func TitleNotIn(vs ...string) predicate.Website
- func URL(v string) predicate.Website
- func URLContains(v string) predicate.Website
- func URLContainsFold(v string) predicate.Website
- func URLEQ(v string) predicate.Website
- func URLEqualFold(v string) predicate.Website
- func URLGT(v string) predicate.Website
- func URLGTE(v string) predicate.Website
- func URLHasPrefix(v string) predicate.Website
- func URLHasSuffix(v string) predicate.Website
- func URLIn(vs ...string) predicate.Website
- func URLLT(v string) predicate.Website
- func URLLTE(v string) predicate.Website
- func URLNEQ(v string) predicate.Website
- func URLNotIn(vs ...string) predicate.Website
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the website type in the database. Label = "website" // 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" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // 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 website in the database. Table = "websites" // CompanyTable is the table that holds the company relation/edge. CompanyTable = "websites" // 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_websites" // CountryTable is the table that holds the country relation/edge. CountryTable = "websites" // 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_websites" )
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 // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldDescription, FieldURL, }
Columns holds all SQL columns for website fields.
var ForeignKeys = []string{
"company_websites",
"country_websites",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "websites" 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 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 URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.