image

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT 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"
	// FieldImageHash holds the string denoting the image_hash field in the database.
	FieldImageHash = "image_hash"
	// EdgeReview holds the string denoting the review edge name in mutations.
	EdgeReview = "review"
	// Table holds the table name of the image in the database.
	Table = "image"
	// ReviewTable is the table that holds the review relation/edge.
	ReviewTable = "image"
	// ReviewInverseTable is the table name for the Review entity.
	// It exists in this package in order to avoid circular dependency with the "review" package.
	ReviewInverseTable = "review"
	// ReviewColumn is the table column denoting the review relation/edge.
	ReviewColumn = "review"
)

Variables

View Source
var (
	// ImageHashValidator is a validator for the "image_hash" field. It is called by the builders before save.
	ImageHashValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var Columns = []string{
	FieldID,
	FieldImageHash,
}

Columns holds all SQL columns for image fields.

View Source
var ForeignKeys = []string{
	"review",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "image" 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 HasReview

func HasReview() predicate.Image

HasReview applies the HasEdge predicate on the "review" edge.

func HasReviewWith

func HasReviewWith(preds ...predicate.Review) predicate.Image

HasReviewWith applies the HasEdge predicate on the "review" 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 ImageHash

func ImageHash(v string) predicate.Image

ImageHash applies equality check predicate on the "image_hash" field. It's identical to ImageHashEQ.

func ImageHashContains

func ImageHashContains(v string) predicate.Image

ImageHashContains applies the Contains predicate on the "image_hash" field.

func ImageHashContainsFold

func ImageHashContainsFold(v string) predicate.Image

ImageHashContainsFold applies the ContainsFold predicate on the "image_hash" field.

func ImageHashEQ

func ImageHashEQ(v string) predicate.Image

ImageHashEQ applies the EQ predicate on the "image_hash" field.

func ImageHashEqualFold

func ImageHashEqualFold(v string) predicate.Image

ImageHashEqualFold applies the EqualFold predicate on the "image_hash" field.

func ImageHashGT

func ImageHashGT(v string) predicate.Image

ImageHashGT applies the GT predicate on the "image_hash" field.

func ImageHashGTE

func ImageHashGTE(v string) predicate.Image

ImageHashGTE applies the GTE predicate on the "image_hash" field.

func ImageHashHasPrefix

func ImageHashHasPrefix(v string) predicate.Image

ImageHashHasPrefix applies the HasPrefix predicate on the "image_hash" field.

func ImageHashHasSuffix

func ImageHashHasSuffix(v string) predicate.Image

ImageHashHasSuffix applies the HasSuffix predicate on the "image_hash" field.

func ImageHashIn

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

ImageHashIn applies the In predicate on the "image_hash" field.

func ImageHashLT

func ImageHashLT(v string) predicate.Image

ImageHashLT applies the LT predicate on the "image_hash" field.

func ImageHashLTE

func ImageHashLTE(v string) predicate.Image

ImageHashLTE applies the LTE predicate on the "image_hash" field.

func ImageHashNEQ

func ImageHashNEQ(v string) predicate.Image

ImageHashNEQ applies the NEQ predicate on the "image_hash" field.

func ImageHashNotIn

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

ImageHashNotIn applies the NotIn predicate on the "image_hash" 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 ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Image queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByImageHash

func ByImageHash(opts ...sql.OrderTermOption) OrderOption

ByImageHash orders the results by the image_hash field.

func ByReviewField

func ByReviewField(field string, opts ...sql.OrderTermOption) OrderOption

ByReviewField orders the results by review field.

Jump to

Keyboard shortcuts

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