Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProductImage) predicate.ProductImage
- func CreatedAt(v time.Time) predicate.ProductImage
- func CreatedAtEQ(v time.Time) predicate.ProductImage
- func CreatedAtGT(v time.Time) predicate.ProductImage
- func CreatedAtGTE(v time.Time) predicate.ProductImage
- func CreatedAtIn(vs ...time.Time) predicate.ProductImage
- func CreatedAtLT(v time.Time) predicate.ProductImage
- func CreatedAtLTE(v time.Time) predicate.ProductImage
- func CreatedAtNEQ(v time.Time) predicate.ProductImage
- func CreatedAtNotIn(vs ...time.Time) predicate.ProductImage
- func HasProduct() predicate.ProductImage
- func HasProductWith(preds ...predicate.ProductInfo) predicate.ProductImage
- func ID(id uuid.UUID) predicate.ProductImage
- func IDEQ(id uuid.UUID) predicate.ProductImage
- func IDGT(id uuid.UUID) predicate.ProductImage
- func IDGTE(id uuid.UUID) predicate.ProductImage
- func IDIn(ids ...uuid.UUID) predicate.ProductImage
- func IDLT(id uuid.UUID) predicate.ProductImage
- func IDLTE(id uuid.UUID) predicate.ProductImage
- func IDNEQ(id uuid.UUID) predicate.ProductImage
- func IDNotIn(ids ...uuid.UUID) predicate.ProductImage
- func ImageURL(v string) predicate.ProductImage
- func ImageURLContains(v string) predicate.ProductImage
- func ImageURLContainsFold(v string) predicate.ProductImage
- func ImageURLEQ(v string) predicate.ProductImage
- func ImageURLEqualFold(v string) predicate.ProductImage
- func ImageURLGT(v string) predicate.ProductImage
- func ImageURLGTE(v string) predicate.ProductImage
- func ImageURLHasPrefix(v string) predicate.ProductImage
- func ImageURLHasSuffix(v string) predicate.ProductImage
- func ImageURLIn(vs ...string) predicate.ProductImage
- func ImageURLLT(v string) predicate.ProductImage
- func ImageURLLTE(v string) predicate.ProductImage
- func ImageURLNEQ(v string) predicate.ProductImage
- func ImageURLNotIn(vs ...string) predicate.ProductImage
- func Not(p predicate.ProductImage) predicate.ProductImage
- func Or(predicates ...predicate.ProductImage) predicate.ProductImage
- func ProductID(v string) predicate.ProductImage
- func ProductIDContains(v string) predicate.ProductImage
- func ProductIDContainsFold(v string) predicate.ProductImage
- func ProductIDEQ(v string) predicate.ProductImage
- func ProductIDEqualFold(v string) predicate.ProductImage
- func ProductIDGT(v string) predicate.ProductImage
- func ProductIDGTE(v string) predicate.ProductImage
- func ProductIDHasPrefix(v string) predicate.ProductImage
- func ProductIDHasSuffix(v string) predicate.ProductImage
- func ProductIDIn(vs ...string) predicate.ProductImage
- func ProductIDLT(v string) predicate.ProductImage
- func ProductIDLTE(v string) predicate.ProductImage
- func ProductIDNEQ(v string) predicate.ProductImage
- func ProductIDNotIn(vs ...string) predicate.ProductImage
- func UpdatedAt(v time.Time) predicate.ProductImage
- func UpdatedAtEQ(v time.Time) predicate.ProductImage
- func UpdatedAtGT(v time.Time) predicate.ProductImage
- func UpdatedAtGTE(v time.Time) predicate.ProductImage
- func UpdatedAtIn(vs ...time.Time) predicate.ProductImage
- func UpdatedAtLT(v time.Time) predicate.ProductImage
- func UpdatedAtLTE(v time.Time) predicate.ProductImage
- func UpdatedAtNEQ(v time.Time) predicate.ProductImage
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProductImage
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImageURL(opts ...sql.OrderTermOption) OrderOption
- func ByProductField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProductID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the productimage type in the database. Label = "product_image" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldProductID holds the string denoting the product_id field in the database. FieldProductID = "product_id" // FieldImageURL holds the string denoting the image_url field in the database. FieldImageURL = "image_url" // EdgeProduct holds the string denoting the product edge name in mutations. EdgeProduct = "product" // Table holds the table name of the productimage in the database. Table = "product_images" // ProductTable is the table that holds the product relation/edge. ProductTable = "product_images" // ProductInverseTable is the table name for the ProductInfo entity. // It exists in this package in order to avoid circular dependency with the "productinfo" package. ProductInverseTable = "product_info" // ProductColumn is the table column denoting the product relation/edge. ProductColumn = "product_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // ImageURLValidator is a validator for the "image_url" field. It is called by the builders before save. ImageURLValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldProductID, FieldImageURL, }
Columns holds all SQL columns for productimage fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProductImage) predicate.ProductImage
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProductImage
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProductImage
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProductImage
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProductImage
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProductImage
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProductImage
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProductImage
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProductImage
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProductImage
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasProduct ¶
func HasProduct() predicate.ProductImage
HasProduct applies the HasEdge predicate on the "product" edge.
func HasProductWith ¶
func HasProductWith(preds ...predicate.ProductInfo) predicate.ProductImage
HasProductWith applies the HasEdge predicate on the "product" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ProductImage
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ProductImage
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ProductImage
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ProductImage
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ProductImage
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ProductImage
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ProductImage
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ProductImage
IDNotIn applies the NotIn predicate on the ID field.
func ImageURL ¶
func ImageURL(v string) predicate.ProductImage
ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.
func ImageURLContains ¶
func ImageURLContains(v string) predicate.ProductImage
ImageURLContains applies the Contains predicate on the "image_url" field.
func ImageURLContainsFold ¶
func ImageURLContainsFold(v string) predicate.ProductImage
ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.
func ImageURLEQ ¶
func ImageURLEQ(v string) predicate.ProductImage
ImageURLEQ applies the EQ predicate on the "image_url" field.
func ImageURLEqualFold ¶
func ImageURLEqualFold(v string) predicate.ProductImage
ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.
func ImageURLGT ¶
func ImageURLGT(v string) predicate.ProductImage
ImageURLGT applies the GT predicate on the "image_url" field.
func ImageURLGTE ¶
func ImageURLGTE(v string) predicate.ProductImage
ImageURLGTE applies the GTE predicate on the "image_url" field.
func ImageURLHasPrefix ¶
func ImageURLHasPrefix(v string) predicate.ProductImage
ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.
func ImageURLHasSuffix ¶
func ImageURLHasSuffix(v string) predicate.ProductImage
ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.
func ImageURLIn ¶
func ImageURLIn(vs ...string) predicate.ProductImage
ImageURLIn applies the In predicate on the "image_url" field.
func ImageURLLT ¶
func ImageURLLT(v string) predicate.ProductImage
ImageURLLT applies the LT predicate on the "image_url" field.
func ImageURLLTE ¶
func ImageURLLTE(v string) predicate.ProductImage
ImageURLLTE applies the LTE predicate on the "image_url" field.
func ImageURLNEQ ¶
func ImageURLNEQ(v string) predicate.ProductImage
ImageURLNEQ applies the NEQ predicate on the "image_url" field.
func ImageURLNotIn ¶
func ImageURLNotIn(vs ...string) predicate.ProductImage
ImageURLNotIn applies the NotIn predicate on the "image_url" field.
func Not ¶
func Not(p predicate.ProductImage) predicate.ProductImage
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProductImage) predicate.ProductImage
Or groups predicates with the OR operator between them.
func ProductID ¶
func ProductID(v string) predicate.ProductImage
ProductID applies equality check predicate on the "product_id" field. It's identical to ProductIDEQ.
func ProductIDContains ¶
func ProductIDContains(v string) predicate.ProductImage
ProductIDContains applies the Contains predicate on the "product_id" field.
func ProductIDContainsFold ¶
func ProductIDContainsFold(v string) predicate.ProductImage
ProductIDContainsFold applies the ContainsFold predicate on the "product_id" field.
func ProductIDEQ ¶
func ProductIDEQ(v string) predicate.ProductImage
ProductIDEQ applies the EQ predicate on the "product_id" field.
func ProductIDEqualFold ¶
func ProductIDEqualFold(v string) predicate.ProductImage
ProductIDEqualFold applies the EqualFold predicate on the "product_id" field.
func ProductIDGT ¶
func ProductIDGT(v string) predicate.ProductImage
ProductIDGT applies the GT predicate on the "product_id" field.
func ProductIDGTE ¶
func ProductIDGTE(v string) predicate.ProductImage
ProductIDGTE applies the GTE predicate on the "product_id" field.
func ProductIDHasPrefix ¶
func ProductIDHasPrefix(v string) predicate.ProductImage
ProductIDHasPrefix applies the HasPrefix predicate on the "product_id" field.
func ProductIDHasSuffix ¶
func ProductIDHasSuffix(v string) predicate.ProductImage
ProductIDHasSuffix applies the HasSuffix predicate on the "product_id" field.
func ProductIDIn ¶
func ProductIDIn(vs ...string) predicate.ProductImage
ProductIDIn applies the In predicate on the "product_id" field.
func ProductIDLT ¶
func ProductIDLT(v string) predicate.ProductImage
ProductIDLT applies the LT predicate on the "product_id" field.
func ProductIDLTE ¶
func ProductIDLTE(v string) predicate.ProductImage
ProductIDLTE applies the LTE predicate on the "product_id" field.
func ProductIDNEQ ¶
func ProductIDNEQ(v string) predicate.ProductImage
ProductIDNEQ applies the NEQ predicate on the "product_id" field.
func ProductIDNotIn ¶
func ProductIDNotIn(vs ...string) predicate.ProductImage
ProductIDNotIn applies the NotIn predicate on the "product_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ProductImage
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ProductImage
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ProductImage
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ProductImage
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ProductImage
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ProductImage
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ProductImage
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ProductImage
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ProductImage
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ProductImage queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImageURL ¶
func ByImageURL(opts ...sql.OrderTermOption) OrderOption
ByImageURL orders the results by the image_url field.
func ByProductField ¶
func ByProductField(field string, opts ...sql.OrderTermOption) OrderOption
ByProductField orders the results by product field.
func ByProductID ¶
func ByProductID(opts ...sql.OrderTermOption) OrderOption
ByProductID orders the results by the product_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.