Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Company) predicate.Company
- func Description(v string) predicate.Company
- func DescriptionContains(v string) predicate.Company
- func DescriptionContainsFold(v string) predicate.Company
- func DescriptionEQ(v string) predicate.Company
- func DescriptionEqualFold(v string) predicate.Company
- func DescriptionGT(v string) predicate.Company
- func DescriptionGTE(v string) predicate.Company
- func DescriptionHasPrefix(v string) predicate.Company
- func DescriptionHasSuffix(v string) predicate.Company
- func DescriptionIn(vs ...string) predicate.Company
- func DescriptionLT(v string) predicate.Company
- func DescriptionLTE(v string) predicate.Company
- func DescriptionNEQ(v string) predicate.Company
- func DescriptionNotIn(vs ...string) predicate.Company
- func HasCountries() predicate.Company
- func HasCountriesWith(preds ...predicate.Country) predicate.Company
- func HasCoverImage() predicate.Company
- func HasCoverImageWith(preds ...predicate.Image) predicate.Company
- func HasEmails() predicate.Company
- func HasEmailsWith(preds ...predicate.Email) predicate.Company
- func HasGalleryImages() predicate.Company
- func HasGalleryImagesWith(preds ...predicate.Image) predicate.Company
- func HasLocations() predicate.Company
- func HasLocationsWith(preds ...predicate.Location) predicate.Company
- func HasLogoImage() predicate.Company
- func HasLogoImageWith(preds ...predicate.Image) predicate.Company
- func HasPhones() predicate.Company
- func HasPhonesWith(preds ...predicate.Phone) predicate.Company
- func HasWebsites() predicate.Company
- func HasWebsitesWith(preds ...predicate.Website) predicate.Company
- func ID(id uuid.UUID) predicate.Company
- func IDEQ(id uuid.UUID) predicate.Company
- func IDGT(id uuid.UUID) predicate.Company
- func IDGTE(id uuid.UUID) predicate.Company
- func IDIn(ids ...uuid.UUID) predicate.Company
- func IDLT(id uuid.UUID) predicate.Company
- func IDLTE(id uuid.UUID) predicate.Company
- func IDNEQ(id uuid.UUID) predicate.Company
- func IDNotIn(ids ...uuid.UUID) predicate.Company
- func Name(v string) predicate.Company
- func NameContains(v string) predicate.Company
- func NameContainsFold(v string) predicate.Company
- func NameEQ(v string) predicate.Company
- func NameEqualFold(v string) predicate.Company
- func NameGT(v string) predicate.Company
- func NameGTE(v string) predicate.Company
- func NameHasPrefix(v string) predicate.Company
- func NameHasSuffix(v string) predicate.Company
- func NameIn(vs ...string) predicate.Company
- func NameLT(v string) predicate.Company
- func NameLTE(v string) predicate.Company
- func NameNEQ(v string) predicate.Company
- func NameNotIn(vs ...string) predicate.Company
- func Not(p predicate.Company) predicate.Company
- func Or(predicates ...predicate.Company) predicate.Company
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the company type in the database. Label = "company" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeCountries holds the string denoting the countries edge name in mutations. EdgeCountries = "countries" // EdgePhones holds the string denoting the phones edge name in mutations. EdgePhones = "phones" // EdgeEmails holds the string denoting the emails edge name in mutations. EdgeEmails = "emails" // EdgeWebsites holds the string denoting the websites edge name in mutations. EdgeWebsites = "websites" // EdgeLocations holds the string denoting the locations edge name in mutations. EdgeLocations = "locations" // EdgeLogoImage holds the string denoting the logo_image edge name in mutations. EdgeLogoImage = "logo_image" // EdgeCoverImage holds the string denoting the cover_image edge name in mutations. EdgeCoverImage = "cover_image" // EdgeGalleryImages holds the string denoting the gallery_images edge name in mutations. EdgeGalleryImages = "gallery_images" // Table holds the table name of the company in the database. Table = "companies" // CountriesTable is the table that holds the countries relation/edge. The primary key declared below. CountriesTable = "company_countries" // CountriesInverseTable is the table name for the Country entity. // It exists in this package in order to avoid circular dependency with the "country" package. CountriesInverseTable = "countries" // PhonesTable is the table that holds the phones relation/edge. PhonesTable = "phones" // PhonesInverseTable is the table name for the Phone entity. // It exists in this package in order to avoid circular dependency with the "phone" package. PhonesInverseTable = "phones" // PhonesColumn is the table column denoting the phones relation/edge. PhonesColumn = "company_phones" // EmailsTable is the table that holds the emails relation/edge. EmailsTable = "emails" // EmailsInverseTable is the table name for the Email entity. // It exists in this package in order to avoid circular dependency with the "email" package. EmailsInverseTable = "emails" // EmailsColumn is the table column denoting the emails relation/edge. EmailsColumn = "company_emails" // WebsitesTable is the table that holds the websites relation/edge. WebsitesTable = "websites" // WebsitesInverseTable is the table name for the Website entity. // It exists in this package in order to avoid circular dependency with the "website" package. WebsitesInverseTable = "websites" // WebsitesColumn is the table column denoting the websites relation/edge. WebsitesColumn = "company_websites" // LocationsTable is the table that holds the locations relation/edge. LocationsTable = "locations" // LocationsInverseTable is the table name for the Location entity. // It exists in this package in order to avoid circular dependency with the "location" package. LocationsInverseTable = "locations" // LocationsColumn is the table column denoting the locations relation/edge. LocationsColumn = "company_locations" // LogoImageTable is the table that holds the logo_image relation/edge. LogoImageTable = "images" // LogoImageInverseTable is the table name for the Image entity. // It exists in this package in order to avoid circular dependency with the "image" package. LogoImageInverseTable = "images" // LogoImageColumn is the table column denoting the logo_image relation/edge. LogoImageColumn = "company_logo_image" // CoverImageTable is the table that holds the cover_image relation/edge. CoverImageTable = "images" // CoverImageInverseTable is the table name for the Image entity. // It exists in this package in order to avoid circular dependency with the "image" package. CoverImageInverseTable = "images" // CoverImageColumn is the table column denoting the cover_image relation/edge. CoverImageColumn = "company_cover_image" // GalleryImagesTable is the table that holds the gallery_images relation/edge. GalleryImagesTable = "images" // GalleryImagesInverseTable is the table name for the Image entity. // It exists in this package in order to avoid circular dependency with the "image" package. GalleryImagesInverseTable = "images" // GalleryImagesColumn is the table column denoting the gallery_images relation/edge. GalleryImagesColumn = "company_gallery_images" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldDescription, }
Columns holds all SQL columns for company fields.
var ( // CountriesPrimaryKey and CountriesColumn2 are the table columns denoting the // primary key for the countries relation (M2M). CountriesPrimaryKey = []string{"company_id", "country_id"} )
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 HasCountries ¶
HasCountries applies the HasEdge predicate on the "countries" edge.
func HasCountriesWith ¶
HasCountriesWith applies the HasEdge predicate on the "countries" edge with a given conditions (other predicates).
func HasCoverImage ¶
HasCoverImage applies the HasEdge predicate on the "cover_image" edge.
func HasCoverImageWith ¶
HasCoverImageWith applies the HasEdge predicate on the "cover_image" edge with a given conditions (other predicates).
func HasEmailsWith ¶
HasEmailsWith applies the HasEdge predicate on the "emails" edge with a given conditions (other predicates).
func HasGalleryImages ¶
HasGalleryImages applies the HasEdge predicate on the "gallery_images" edge.
func HasGalleryImagesWith ¶
HasGalleryImagesWith applies the HasEdge predicate on the "gallery_images" edge with a given conditions (other predicates).
func HasLocations ¶
HasLocations applies the HasEdge predicate on the "locations" edge.
func HasLocationsWith ¶
HasLocationsWith applies the HasEdge predicate on the "locations" edge with a given conditions (other predicates).
func HasLogoImage ¶
HasLogoImage applies the HasEdge predicate on the "logo_image" edge.
func HasLogoImageWith ¶
HasLogoImageWith applies the HasEdge predicate on the "logo_image" edge with a given conditions (other predicates).
func HasPhonesWith ¶
HasPhonesWith applies the HasEdge predicate on the "phones" edge with a given conditions (other predicates).
func HasWebsites ¶
HasWebsites applies the HasEdge predicate on the "websites" edge.
func HasWebsitesWith ¶
HasWebsitesWith applies the HasEdge predicate on the "websites" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.