image

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for image fields.

View Source
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 And

func And(predicates ...predicate.Image) predicate.Image

And groups predicates with the AND operator between them.

func HasCoverCompany

func HasCoverCompany() predicate.Image

HasCoverCompany applies the HasEdge predicate on the "cover_company" edge.

func HasCoverCompanyWith

func HasCoverCompanyWith(preds ...predicate.Company) predicate.Image

HasCoverCompanyWith applies the HasEdge predicate on the "cover_company" edge with a given conditions (other predicates).

func HasGalleryCompany

func HasGalleryCompany() predicate.Image

HasGalleryCompany applies the HasEdge predicate on the "gallery_company" edge.

func HasGalleryCompanyWith

func HasGalleryCompanyWith(preds ...predicate.Company) predicate.Image

HasGalleryCompanyWith applies the HasEdge predicate on the "gallery_company" edge with a given conditions (other predicates).

func HasLogoCompany

func HasLogoCompany() predicate.Image

HasLogoCompany applies the HasEdge predicate on the "logo_company" edge.

func HasLogoCompanyWith

func HasLogoCompanyWith(preds ...predicate.Company) predicate.Image

HasLogoCompanyWith applies the HasEdge predicate on the "logo_company" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Image

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Image

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Image

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Image

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Image

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Image

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Image

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Image

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Image

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Image) predicate.Image

Or groups predicates with the OR operator between them.

func OriginalURL

func OriginalURL(v string) predicate.Image

OriginalURL applies equality check predicate on the "original_url" field. It's identical to OriginalURLEQ.

func OriginalURLContains

func OriginalURLContains(v string) predicate.Image

OriginalURLContains applies the Contains predicate on the "original_url" field.

func OriginalURLContainsFold

func OriginalURLContainsFold(v string) predicate.Image

OriginalURLContainsFold applies the ContainsFold predicate on the "original_url" field.

func OriginalURLEQ

func OriginalURLEQ(v string) predicate.Image

OriginalURLEQ applies the EQ predicate on the "original_url" field.

func OriginalURLEqualFold

func OriginalURLEqualFold(v string) predicate.Image

OriginalURLEqualFold applies the EqualFold predicate on the "original_url" field.

func OriginalURLGT

func OriginalURLGT(v string) predicate.Image

OriginalURLGT applies the GT predicate on the "original_url" field.

func OriginalURLGTE

func OriginalURLGTE(v string) predicate.Image

OriginalURLGTE applies the GTE predicate on the "original_url" field.

func OriginalURLHasPrefix

func OriginalURLHasPrefix(v string) predicate.Image

OriginalURLHasPrefix applies the HasPrefix predicate on the "original_url" field.

func OriginalURLHasSuffix

func OriginalURLHasSuffix(v string) predicate.Image

OriginalURLHasSuffix applies the HasSuffix predicate on the "original_url" field.

func OriginalURLIn

func OriginalURLIn(vs ...string) predicate.Image

OriginalURLIn applies the In predicate on the "original_url" field.

func OriginalURLLT

func OriginalURLLT(v string) predicate.Image

OriginalURLLT applies the LT predicate on the "original_url" field.

func OriginalURLLTE

func OriginalURLLTE(v string) predicate.Image

OriginalURLLTE applies the LTE predicate on the "original_url" field.

func OriginalURLNEQ

func OriginalURLNEQ(v string) predicate.Image

OriginalURLNEQ applies the NEQ predicate on the "original_url" field.

func OriginalURLNotIn

func OriginalURLNotIn(vs ...string) predicate.Image

OriginalURLNotIn applies the NotIn predicate on the "original_url" field.

func Title

func Title(v string) predicate.Image

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Image

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Image

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Image

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Image

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Image

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Image

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Image

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Image

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Image

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Image

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Image

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Image

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Image

TitleNotIn applies the NotIn predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL