Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Image) predicate.Image
- func Content(v string) predicate.Image
- func ContentContains(v string) predicate.Image
- func ContentContainsFold(v string) predicate.Image
- func ContentEQ(v string) predicate.Image
- func ContentEqualFold(v string) predicate.Image
- func ContentGT(v string) predicate.Image
- func ContentGTE(v string) predicate.Image
- func ContentHasPrefix(v string) predicate.Image
- func ContentHasSuffix(v string) predicate.Image
- func ContentIn(vs ...string) predicate.Image
- func ContentLT(v string) predicate.Image
- func ContentLTE(v string) predicate.Image
- func ContentNEQ(v string) predicate.Image
- func ContentNotIn(vs ...string) predicate.Image
- func CreatedAt(v time.Time) predicate.Image
- func CreatedAtEQ(v time.Time) predicate.Image
- func CreatedAtGT(v time.Time) predicate.Image
- func CreatedAtGTE(v time.Time) predicate.Image
- func CreatedAtIn(vs ...time.Time) predicate.Image
- func CreatedAtLT(v time.Time) predicate.Image
- func CreatedAtLTE(v time.Time) predicate.Image
- func CreatedAtNEQ(v time.Time) predicate.Image
- func CreatedAtNotIn(vs ...time.Time) predicate.Image
- func FileName(v string) predicate.Image
- func FileNameContains(v string) predicate.Image
- func FileNameContainsFold(v string) predicate.Image
- func FileNameEQ(v string) predicate.Image
- func FileNameEqualFold(v string) predicate.Image
- func FileNameGT(v string) predicate.Image
- func FileNameGTE(v string) predicate.Image
- func FileNameHasPrefix(v string) predicate.Image
- func FileNameHasSuffix(v string) predicate.Image
- func FileNameIn(vs ...string) predicate.Image
- func FileNameLT(v string) predicate.Image
- func FileNameLTE(v string) predicate.Image
- func FileNameNEQ(v string) predicate.Image
- func FileNameNotIn(vs ...string) predicate.Image
- func HasUser() predicate.Image
- func HasUserWith(preds ...predicate.User) predicate.Image
- func ID(id ulid.ID) predicate.Image
- func IDEQ(id ulid.ID) predicate.Image
- func IDGT(id ulid.ID) predicate.Image
- func IDGTE(id ulid.ID) predicate.Image
- func IDIn(ids ...ulid.ID) predicate.Image
- func IDLT(id ulid.ID) predicate.Image
- func IDLTE(id ulid.ID) predicate.Image
- func IDNEQ(id ulid.ID) predicate.Image
- func IDNotIn(ids ...ulid.ID) predicate.Image
- func Not(p predicate.Image) predicate.Image
- func Or(predicates ...predicate.Image) predicate.Image
- func UpdatedAt(v time.Time) predicate.Image
- func UpdatedAtEQ(v time.Time) predicate.Image
- func UpdatedAtGT(v time.Time) predicate.Image
- func UpdatedAtGTE(v time.Time) predicate.Image
- func UpdatedAtIn(vs ...time.Time) predicate.Image
- func UpdatedAtLT(v time.Time) predicate.Image
- func UpdatedAtLTE(v time.Time) predicate.Image
- func UpdatedAtNEQ(v time.Time) predicate.Image
- func UpdatedAtNotIn(vs ...time.Time) predicate.Image
- func ValidColumn(column string) bool
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" // 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" // FieldFileName holds the string denoting the file_name field in the database. FieldFileName = "file_name" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the image in the database. Table = "images" // UserTable is the table that holds the user relation/edge. UserTable = "images" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_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 // FileNameValidator is a validator for the "file_name" field. It is called by the builders before save. FileNameValidator func(string) error // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() ulid.ID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldFileName, FieldContent, }
Columns holds all SQL columns for image fields.
var ForeignKeys = []string{
"user_id",
}
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 Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func FileName ¶
FileName applies equality check predicate on the "file_name" field. It's identical to FileNameEQ.
func FileNameContains ¶
FileNameContains applies the Contains predicate on the "file_name" field.
func FileNameContainsFold ¶
FileNameContainsFold applies the ContainsFold predicate on the "file_name" field.
func FileNameEQ ¶
FileNameEQ applies the EQ predicate on the "file_name" field.
func FileNameEqualFold ¶
FileNameEqualFold applies the EqualFold predicate on the "file_name" field.
func FileNameGT ¶
FileNameGT applies the GT predicate on the "file_name" field.
func FileNameGTE ¶
FileNameGTE applies the GTE predicate on the "file_name" field.
func FileNameHasPrefix ¶
FileNameHasPrefix applies the HasPrefix predicate on the "file_name" field.
func FileNameHasSuffix ¶
FileNameHasSuffix applies the HasSuffix predicate on the "file_name" field.
func FileNameIn ¶
FileNameIn applies the In predicate on the "file_name" field.
func FileNameLT ¶
FileNameLT applies the LT predicate on the "file_name" field.
func FileNameLTE ¶
FileNameLTE applies the LTE predicate on the "file_name" field.
func FileNameNEQ ¶
FileNameNEQ applies the NEQ predicate on the "file_name" field.
func FileNameNotIn ¶
FileNameNotIn applies the NotIn predicate on the "file_name" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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 ¶
This section is empty.