image

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 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"
	// 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 Columns = []string{
	FieldID,
}

Columns holds all SQL columns for image fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
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 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 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