Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Image) predicate.Image
- func HasCoverCompany() predicate.Image
- func HasCoverCompanyWith(preds ...predicate.Company) predicate.Image
- func HasGalleryCompany() predicate.Image
- func HasGalleryCompanyWith(preds ...predicate.Company) predicate.Image
- func HasLogoCompany() predicate.Image
- func HasLogoCompanyWith(preds ...predicate.Company) predicate.Image
- func ID(id uuid.UUID) predicate.Image
- func IDEQ(id uuid.UUID) predicate.Image
- func IDGT(id uuid.UUID) predicate.Image
- func IDGTE(id uuid.UUID) predicate.Image
- func IDIn(ids ...uuid.UUID) predicate.Image
- func IDLT(id uuid.UUID) predicate.Image
- func IDLTE(id uuid.UUID) predicate.Image
- func IDNEQ(id uuid.UUID) predicate.Image
- func IDNotIn(ids ...uuid.UUID) predicate.Image
- func Not(p predicate.Image) predicate.Image
- func Or(predicates ...predicate.Image) predicate.Image
- func OriginalURL(v string) predicate.Image
- func OriginalURLContains(v string) predicate.Image
- func OriginalURLContainsFold(v string) predicate.Image
- func OriginalURLEQ(v string) predicate.Image
- func OriginalURLEqualFold(v string) predicate.Image
- func OriginalURLGT(v string) predicate.Image
- func OriginalURLGTE(v string) predicate.Image
- func OriginalURLHasPrefix(v string) predicate.Image
- func OriginalURLHasSuffix(v string) predicate.Image
- func OriginalURLIn(vs ...string) predicate.Image
- func OriginalURLLT(v string) predicate.Image
- func OriginalURLLTE(v string) predicate.Image
- func OriginalURLNEQ(v string) predicate.Image
- func OriginalURLNotIn(vs ...string) predicate.Image
- func Title(v string) predicate.Image
- func TitleContains(v string) predicate.Image
- func TitleContainsFold(v string) predicate.Image
- func TitleEQ(v string) predicate.Image
- func TitleEqualFold(v string) predicate.Image
- func TitleGT(v string) predicate.Image
- func TitleGTE(v string) predicate.Image
- func TitleHasPrefix(v string) predicate.Image
- func TitleHasSuffix(v string) predicate.Image
- func TitleIn(vs ...string) predicate.Image
- func TitleLT(v string) predicate.Image
- func TitleLTE(v string) predicate.Image
- func TitleNEQ(v string) predicate.Image
- func TitleNotIn(vs ...string) predicate.Image
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the image type in the database. Label = "image" // 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" // FieldOriginalURL holds the string denoting the original_url field in the database. FieldOriginalURL = "original_url" // EdgeGalleryCompany holds the string denoting the gallery_company edge name in mutations. EdgeGalleryCompany = "gallery_company" // EdgeLogoCompany holds the string denoting the logo_company edge name in mutations. EdgeLogoCompany = "logo_company" // EdgeCoverCompany holds the string denoting the cover_company edge name in mutations. EdgeCoverCompany = "cover_company" // Table holds the table name of the image in the database. Table = "images" // GalleryCompanyTable is the table that holds the gallery_company relation/edge. GalleryCompanyTable = "images" // GalleryCompanyInverseTable is the table name for the Company entity. // It exists in this package in order to avoid circular dependency with the "company" package. GalleryCompanyInverseTable = "companies" // GalleryCompanyColumn is the table column denoting the gallery_company relation/edge. GalleryCompanyColumn = "company_gallery_images" // LogoCompanyTable is the table that holds the logo_company relation/edge. LogoCompanyTable = "images" // LogoCompanyInverseTable is the table name for the Company entity. // It exists in this package in order to avoid circular dependency with the "company" package. LogoCompanyInverseTable = "companies" // LogoCompanyColumn is the table column denoting the logo_company relation/edge. LogoCompanyColumn = "company_logo_image" // CoverCompanyTable is the table that holds the cover_company relation/edge. CoverCompanyTable = "images" // CoverCompanyInverseTable is the table name for the Company entity. // It exists in this package in order to avoid circular dependency with the "company" package. CoverCompanyInverseTable = "companies" // CoverCompanyColumn is the table column denoting the cover_company relation/edge. CoverCompanyColumn = "company_cover_image" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // OriginalURLValidator is a validator for the "original_url" field. It is called by the builders before save. OriginalURLValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldOriginalURL, }
Columns holds all SQL columns for image fields.
var ForeignKeys = []string{
"company_logo_image",
"company_cover_image",
"company_gallery_images",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "images" table and are not defined as standalone fields in the schema.
Functions ¶
func HasCoverCompany ¶
HasCoverCompany applies the HasEdge predicate on the "cover_company" edge.
func HasCoverCompanyWith ¶
HasCoverCompanyWith applies the HasEdge predicate on the "cover_company" edge with a given conditions (other predicates).
func HasGalleryCompany ¶
HasGalleryCompany applies the HasEdge predicate on the "gallery_company" edge.
func HasGalleryCompanyWith ¶
HasGalleryCompanyWith applies the HasEdge predicate on the "gallery_company" edge with a given conditions (other predicates).
func HasLogoCompany ¶
HasLogoCompany applies the HasEdge predicate on the "logo_company" edge.
func HasLogoCompanyWith ¶
HasLogoCompanyWith applies the HasEdge predicate on the "logo_company" edge with a given conditions (other predicates).
func OriginalURL ¶
OriginalURL applies equality check predicate on the "original_url" field. It's identical to OriginalURLEQ.
func OriginalURLContains ¶
OriginalURLContains applies the Contains predicate on the "original_url" field.
func OriginalURLContainsFold ¶
OriginalURLContainsFold applies the ContainsFold predicate on the "original_url" field.
func OriginalURLEQ ¶
OriginalURLEQ applies the EQ predicate on the "original_url" field.
func OriginalURLEqualFold ¶
OriginalURLEqualFold applies the EqualFold predicate on the "original_url" field.
func OriginalURLGT ¶
OriginalURLGT applies the GT predicate on the "original_url" field.
func OriginalURLGTE ¶
OriginalURLGTE applies the GTE predicate on the "original_url" field.
func OriginalURLHasPrefix ¶
OriginalURLHasPrefix applies the HasPrefix predicate on the "original_url" field.
func OriginalURLHasSuffix ¶
OriginalURLHasSuffix applies the HasSuffix predicate on the "original_url" field.
func OriginalURLIn ¶
OriginalURLIn applies the In predicate on the "original_url" field.
func OriginalURLLT ¶
OriginalURLLT applies the LT predicate on the "original_url" field.
func OriginalURLLTE ¶
OriginalURLLTE applies the LTE predicate on the "original_url" field.
func OriginalURLNEQ ¶
OriginalURLNEQ applies the NEQ predicate on the "original_url" field.
func OriginalURLNotIn ¶
OriginalURLNotIn applies the NotIn predicate on the "original_url" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.