Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Media) predicate.Media
- func CreatedAt(v time.Time) predicate.Media
- func CreatedAtEQ(v time.Time) predicate.Media
- func CreatedAtGT(v time.Time) predicate.Media
- func CreatedAtGTE(v time.Time) predicate.Media
- func CreatedAtIn(vs ...time.Time) predicate.Media
- func CreatedAtLT(v time.Time) predicate.Media
- func CreatedAtLTE(v time.Time) predicate.Media
- func CreatedAtNEQ(v time.Time) predicate.Media
- func CreatedAtNotIn(vs ...time.Time) predicate.Media
- func HasMediaFiles() predicate.Media
- func HasMediaFilesWith(preds ...predicate.MediaFile) predicate.Media
- func ID(id uuid.UUID) predicate.Media
- func IDEQ(id uuid.UUID) predicate.Media
- func IDGT(id uuid.UUID) predicate.Media
- func IDGTE(id uuid.UUID) predicate.Media
- func IDIn(ids ...uuid.UUID) predicate.Media
- func IDLT(id uuid.UUID) predicate.Media
- func IDLTE(id uuid.UUID) predicate.Media
- func IDNEQ(id uuid.UUID) predicate.Media
- func IDNotIn(ids ...uuid.UUID) predicate.Media
- func Not(p predicate.Media) predicate.Media
- func Or(predicates ...predicate.Media) predicate.Media
- func OriginalFilename(v string) predicate.Media
- func OriginalFilenameContains(v string) predicate.Media
- func OriginalFilenameContainsFold(v string) predicate.Media
- func OriginalFilenameEQ(v string) predicate.Media
- func OriginalFilenameEqualFold(v string) predicate.Media
- func OriginalFilenameGT(v string) predicate.Media
- func OriginalFilenameGTE(v string) predicate.Media
- func OriginalFilenameHasPrefix(v string) predicate.Media
- func OriginalFilenameHasSuffix(v string) predicate.Media
- func OriginalFilenameIn(vs ...string) predicate.Media
- func OriginalFilenameIsNil() predicate.Media
- func OriginalFilenameLT(v string) predicate.Media
- func OriginalFilenameLTE(v string) predicate.Media
- func OriginalFilenameNEQ(v string) predicate.Media
- func OriginalFilenameNotIn(vs ...string) predicate.Media
- func OriginalFilenameNotNil() predicate.Media
- func StatusEQ(v Status) predicate.Media
- func StatusIn(vs ...Status) predicate.Media
- func StatusNEQ(v Status) predicate.Media
- func StatusNotIn(vs ...Status) predicate.Media
- func StatusValidator(s Status) error
- func Title(v string) predicate.Media
- func TitleContains(v string) predicate.Media
- func TitleContainsFold(v string) predicate.Media
- func TitleEQ(v string) predicate.Media
- func TitleEqualFold(v string) predicate.Media
- func TitleGT(v string) predicate.Media
- func TitleGTE(v string) predicate.Media
- func TitleHasPrefix(v string) predicate.Media
- func TitleHasSuffix(v string) predicate.Media
- func TitleIn(vs ...string) predicate.Media
- func TitleLT(v string) predicate.Media
- func TitleLTE(v string) predicate.Media
- func TitleNEQ(v string) predicate.Media
- func TitleNotIn(vs ...string) predicate.Media
- func UpdatedAt(v time.Time) predicate.Media
- func UpdatedAtEQ(v time.Time) predicate.Media
- func UpdatedAtGT(v time.Time) predicate.Media
- func UpdatedAtGTE(v time.Time) predicate.Media
- func UpdatedAtIn(vs ...time.Time) predicate.Media
- func UpdatedAtLT(v time.Time) predicate.Media
- func UpdatedAtLTE(v time.Time) predicate.Media
- func UpdatedAtNEQ(v time.Time) predicate.Media
- func UpdatedAtNotIn(vs ...time.Time) predicate.Media
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the media type in the database. Label = "media" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldOriginalFilename holds the string denoting the original_filename field in the database. FieldOriginalFilename = "original_filename" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // EdgeMediaFiles holds the string denoting the media_files edge name in mutations. EdgeMediaFiles = "media_files" // Table holds the table name of the media in the database. Table = "media" // MediaFilesTable is the table the holds the media_files relation/edge. MediaFilesTable = "media_file" // MediaFilesInverseTable is the table name for the MediaFile entity. // It exists in this package in order to avoid circular dependency with the "mediafile" package. MediaFilesInverseTable = "media_file" // MediaFilesColumn is the table column denoting the media_files relation/edge. MediaFilesColumn = "media" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultOriginalFilename holds the default value on creation for the original_filename field. DefaultOriginalFilename string // OriginalFilenameValidator is a validator for the "original_filename" field. It is called by the builders before save. OriginalFilenameValidator func(string) error // 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 // DefaultID holds the default value on creation for the id field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldOriginalFilename, FieldStatus, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for media fields.
Functions ¶
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 HasMediaFiles ¶
HasMediaFiles applies the HasEdge predicate on the "media_files" edge.
func HasMediaFilesWith ¶
HasMediaFilesWith applies the HasEdge predicate on the "media_files" edge with a given conditions (other predicates).
func OriginalFilename ¶
OriginalFilename applies equality check predicate on the "original_filename" field. It's identical to OriginalFilenameEQ.
func OriginalFilenameContains ¶
OriginalFilenameContains applies the Contains predicate on the "original_filename" field.
func OriginalFilenameContainsFold ¶
OriginalFilenameContainsFold applies the ContainsFold predicate on the "original_filename" field.
func OriginalFilenameEQ ¶
OriginalFilenameEQ applies the EQ predicate on the "original_filename" field.
func OriginalFilenameEqualFold ¶
OriginalFilenameEqualFold applies the EqualFold predicate on the "original_filename" field.
func OriginalFilenameGT ¶
OriginalFilenameGT applies the GT predicate on the "original_filename" field.
func OriginalFilenameGTE ¶
OriginalFilenameGTE applies the GTE predicate on the "original_filename" field.
func OriginalFilenameHasPrefix ¶
OriginalFilenameHasPrefix applies the HasPrefix predicate on the "original_filename" field.
func OriginalFilenameHasSuffix ¶
OriginalFilenameHasSuffix applies the HasSuffix predicate on the "original_filename" field.
func OriginalFilenameIn ¶
OriginalFilenameIn applies the In predicate on the "original_filename" field.
func OriginalFilenameIsNil ¶
OriginalFilenameIsNil applies the IsNil predicate on the "original_filename" field.
func OriginalFilenameLT ¶
OriginalFilenameLT applies the LT predicate on the "original_filename" field.
func OriginalFilenameLTE ¶
OriginalFilenameLTE applies the LTE predicate on the "original_filename" field.
func OriginalFilenameNEQ ¶
OriginalFilenameNEQ applies the NEQ predicate on the "original_filename" field.
func OriginalFilenameNotIn ¶
OriginalFilenameNotIn applies the NotIn predicate on the "original_filename" field.
func OriginalFilenameNotNil ¶
OriginalFilenameNotNil applies the NotNil predicate on the "original_filename" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
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).