Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Image) predicate.Image
- func HasReview() predicate.Image
- func HasReviewWith(preds ...predicate.Review) 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 ImageHash(v string) predicate.Image
- func ImageHashContains(v string) predicate.Image
- func ImageHashContainsFold(v string) predicate.Image
- func ImageHashEQ(v string) predicate.Image
- func ImageHashEqualFold(v string) predicate.Image
- func ImageHashGT(v string) predicate.Image
- func ImageHashGTE(v string) predicate.Image
- func ImageHashHasPrefix(v string) predicate.Image
- func ImageHashHasSuffix(v string) predicate.Image
- func ImageHashIn(vs ...string) predicate.Image
- func ImageHashLT(v string) predicate.Image
- func ImageHashLTE(v string) predicate.Image
- func ImageHashNEQ(v string) predicate.Image
- func ImageHashNotIn(vs ...string) predicate.Image
- func Not(p predicate.Image) predicate.Image
- func Or(predicates ...predicate.Image) predicate.Image
- func ValidColumn(column string) bool
- type OrderOption
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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldImageHash, }
Columns holds all SQL columns for image fields.
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 HasReviewWith ¶
HasReviewWith applies the HasEdge predicate on the "review" edge with a given conditions (other predicates).
func ImageHash ¶
ImageHash applies equality check predicate on the "image_hash" field. It's identical to ImageHashEQ.
func ImageHashContains ¶
ImageHashContains applies the Contains predicate on the "image_hash" field.
func ImageHashContainsFold ¶
ImageHashContainsFold applies the ContainsFold predicate on the "image_hash" field.
func ImageHashEQ ¶
ImageHashEQ applies the EQ predicate on the "image_hash" field.
func ImageHashEqualFold ¶
ImageHashEqualFold applies the EqualFold predicate on the "image_hash" field.
func ImageHashGT ¶
ImageHashGT applies the GT predicate on the "image_hash" field.
func ImageHashGTE ¶
ImageHashGTE applies the GTE predicate on the "image_hash" field.
func ImageHashHasPrefix ¶
ImageHashHasPrefix applies the HasPrefix predicate on the "image_hash" field.
func ImageHashHasSuffix ¶
ImageHashHasSuffix applies the HasSuffix predicate on the "image_hash" field.
func ImageHashIn ¶
ImageHashIn applies the In predicate on the "image_hash" field.
func ImageHashLT ¶
ImageHashLT applies the LT predicate on the "image_hash" field.
func ImageHashLTE ¶
ImageHashLTE applies the LTE predicate on the "image_hash" field.
func ImageHashNEQ ¶
ImageHashNEQ applies the NEQ predicate on the "image_hash" field.
func ImageHashNotIn ¶
ImageHashNotIn applies the NotIn predicate on the "image_hash" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.