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 Not(p predicate.Image) predicate.Image
- func Or(predicates ...predicate.Image) predicate.Image
- func ValidColumn(column string) bool
- type OrderOption
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 HasReviewWith ¶
HasReviewWith applies the HasEdge predicate on the "review" edge with a given conditions (other predicates).
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 ByReviewField ¶
func ByReviewField(field string, opts ...sql.OrderTermOption) OrderOption
ByReviewField orders the results by review field.
Click to show internal directories.
Click to hide internal directories.