Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Image) predicate.Image
- func HasUserProfilePic() predicate.Image
- func HasUserProfilePicWith(preds ...predicate.User) 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 URLPath(v string) predicate.Image
- func URLPathContains(v string) predicate.Image
- func URLPathContainsFold(v string) predicate.Image
- func URLPathEQ(v string) predicate.Image
- func URLPathEqualFold(v string) predicate.Image
- func URLPathGT(v string) predicate.Image
- func URLPathGTE(v string) predicate.Image
- func URLPathHasPrefix(v string) predicate.Image
- func URLPathHasSuffix(v string) predicate.Image
- func URLPathIn(vs ...string) predicate.Image
- func URLPathLT(v string) predicate.Image
- func URLPathLTE(v string) predicate.Image
- func URLPathNEQ(v string) predicate.Image
- func URLPathNotIn(vs ...string) 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" // FieldURLPath holds the string denoting the url_path field in the database. FieldURLPath = "url_path" // EdgeUserProfilePic holds the string denoting the user_profile_pic edge name in mutations. EdgeUserProfilePic = "user_profile_pic" // Table holds the table name of the image in the database. Table = "images" // UserProfilePicTable is the table that holds the user_profile_pic relation/edge. UserProfilePicTable = "users" // UserProfilePicInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserProfilePicInverseTable = "users" // UserProfilePicColumn is the table column denoting the user_profile_pic relation/edge. UserProfilePicColumn = "user_profile_pic" )
Variables ¶
var Columns = []string{ FieldID, FieldURLPath, }
Columns holds all SQL columns for image fields.
var ForeignKeys = []string{
"no_backref_images",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "images" table and are not defined as standalone fields in the schema.
Functions ¶
func HasUserProfilePic ¶
HasUserProfilePic applies the HasEdge predicate on the "user_profile_pic" edge.
func HasUserProfilePicWith ¶
HasUserProfilePicWith applies the HasEdge predicate on the "user_profile_pic" edge with a given conditions (other predicates).
func URLPath ¶
URLPath applies equality check predicate on the "url_path" field. It's identical to URLPathEQ.
func URLPathContains ¶
URLPathContains applies the Contains predicate on the "url_path" field.
func URLPathContainsFold ¶
URLPathContainsFold applies the ContainsFold predicate on the "url_path" field.
func URLPathEqualFold ¶
URLPathEqualFold applies the EqualFold predicate on the "url_path" field.
func URLPathGTE ¶
URLPathGTE applies the GTE predicate on the "url_path" field.
func URLPathHasPrefix ¶
URLPathHasPrefix applies the HasPrefix predicate on the "url_path" field.
func URLPathHasSuffix ¶
URLPathHasSuffix applies the HasSuffix predicate on the "url_path" field.
func URLPathLTE ¶
URLPathLTE applies the LTE predicate on the "url_path" field.
func URLPathNEQ ¶
URLPathNEQ applies the NEQ predicate on the "url_path" field.
func URLPathNotIn ¶
URLPathNotIn applies the NotIn predicate on the "url_path" 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 ByURLPath ¶
func ByURLPath(opts ...sql.OrderTermOption) OrderOption
ByURLPath orders the results by the url_path field.
func ByUserProfilePic ¶
func ByUserProfilePic(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserProfilePic orders the results by user_profile_pic terms.
func ByUserProfilePicCount ¶
func ByUserProfilePicCount(opts ...sql.OrderTermOption) OrderOption
ByUserProfilePicCount orders the results by user_profile_pic count.