video

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the video type in the database.
	Label = "video"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldUploadDate holds the string denoting the uploaddate field in the database.
	FieldUploadDate = "upload_date"
	// FieldUploader holds the string denoting the uploader field in the database.
	FieldUploader = "uploader"
	// FieldUploaderUrl holds the string denoting the uploaderurl field in the database.
	FieldUploaderUrl = "uploader_url"
	// FieldThumbnailUrl holds the string denoting the thumbnailurl field in the database.
	FieldThumbnailUrl = "thumbnail_url"
	// EdgeLikeVideos holds the string denoting the like_videos edge name in mutations.
	EdgeLikeVideos = "like_videos"
	// Table holds the table name of the video in the database.
	Table = "videos"
	// LikeVideosTable is the table that holds the like_videos relation/edge.
	LikeVideosTable = "like_videos"
	// LikeVideosInverseTable is the table name for the LikeVideo entity.
	// It exists in this package in order to avoid circular dependency with the "likevideo" package.
	LikeVideosInverseTable = "like_videos"
	// LikeVideosColumn is the table column denoting the like_videos relation/edge.
	LikeVideosColumn = "video_id"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// UploaderValidator is a validator for the "uploader" field. It is called by the builders before save.
	UploaderValidator func(string) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for video fields.

Functions

func And

func And(predicates ...predicate.Video) predicate.Video

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Video

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Video

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Video

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Video

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Video

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Video

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Video

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Video

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Video

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Description

func Description(v string) predicate.Video

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Video

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Video

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Video

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Video

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Video

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Video

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Video

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Video

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Video

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Video

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Video

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Video

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Video

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasLikeVideos

func HasLikeVideos() predicate.Video

HasLikeVideos applies the HasEdge predicate on the "like_videos" edge.

func HasLikeVideosWith

func HasLikeVideosWith(preds ...predicate.LikeVideo) predicate.Video

HasLikeVideosWith applies the HasEdge predicate on the "like_videos" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.Video

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Video

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Video

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Video

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Video

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Video

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Video

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Video

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Video

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Video

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Video

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Video) predicate.Video

Or groups predicates with the OR operator between them.

func ThumbnailUrl

func ThumbnailUrl(v string) predicate.Video

ThumbnailUrl applies equality check predicate on the "thumbnailUrl" field. It's identical to ThumbnailUrlEQ.

func ThumbnailUrlContains

func ThumbnailUrlContains(v string) predicate.Video

ThumbnailUrlContains applies the Contains predicate on the "thumbnailUrl" field.

func ThumbnailUrlContainsFold

func ThumbnailUrlContainsFold(v string) predicate.Video

ThumbnailUrlContainsFold applies the ContainsFold predicate on the "thumbnailUrl" field.

func ThumbnailUrlEQ

func ThumbnailUrlEQ(v string) predicate.Video

ThumbnailUrlEQ applies the EQ predicate on the "thumbnailUrl" field.

func ThumbnailUrlEqualFold

func ThumbnailUrlEqualFold(v string) predicate.Video

ThumbnailUrlEqualFold applies the EqualFold predicate on the "thumbnailUrl" field.

func ThumbnailUrlGT

func ThumbnailUrlGT(v string) predicate.Video

ThumbnailUrlGT applies the GT predicate on the "thumbnailUrl" field.

func ThumbnailUrlGTE

func ThumbnailUrlGTE(v string) predicate.Video

ThumbnailUrlGTE applies the GTE predicate on the "thumbnailUrl" field.

func ThumbnailUrlHasPrefix

func ThumbnailUrlHasPrefix(v string) predicate.Video

ThumbnailUrlHasPrefix applies the HasPrefix predicate on the "thumbnailUrl" field.

func ThumbnailUrlHasSuffix

func ThumbnailUrlHasSuffix(v string) predicate.Video

ThumbnailUrlHasSuffix applies the HasSuffix predicate on the "thumbnailUrl" field.

func ThumbnailUrlIn

func ThumbnailUrlIn(vs ...string) predicate.Video

ThumbnailUrlIn applies the In predicate on the "thumbnailUrl" field.

func ThumbnailUrlLT

func ThumbnailUrlLT(v string) predicate.Video

ThumbnailUrlLT applies the LT predicate on the "thumbnailUrl" field.

func ThumbnailUrlLTE

func ThumbnailUrlLTE(v string) predicate.Video

ThumbnailUrlLTE applies the LTE predicate on the "thumbnailUrl" field.

func ThumbnailUrlNEQ

func ThumbnailUrlNEQ(v string) predicate.Video

ThumbnailUrlNEQ applies the NEQ predicate on the "thumbnailUrl" field.

func ThumbnailUrlNotIn

func ThumbnailUrlNotIn(vs ...string) predicate.Video

ThumbnailUrlNotIn applies the NotIn predicate on the "thumbnailUrl" field.

func Title

func Title(v string) predicate.Video

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Video

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Video

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Video

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Video

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Video

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Video

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Video

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Video

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Video

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Video

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Video

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Video

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Video

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Video

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Video

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Video

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Video

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Video

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Video

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Video

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Video

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Video

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UploadDate

func UploadDate(v time.Time) predicate.Video

UploadDate applies equality check predicate on the "uploadDate" field. It's identical to UploadDateEQ.

func UploadDateEQ

func UploadDateEQ(v time.Time) predicate.Video

UploadDateEQ applies the EQ predicate on the "uploadDate" field.

func UploadDateGT

func UploadDateGT(v time.Time) predicate.Video

UploadDateGT applies the GT predicate on the "uploadDate" field.

func UploadDateGTE

func UploadDateGTE(v time.Time) predicate.Video

UploadDateGTE applies the GTE predicate on the "uploadDate" field.

func UploadDateIn

func UploadDateIn(vs ...time.Time) predicate.Video

UploadDateIn applies the In predicate on the "uploadDate" field.

func UploadDateLT

func UploadDateLT(v time.Time) predicate.Video

UploadDateLT applies the LT predicate on the "uploadDate" field.

func UploadDateLTE

func UploadDateLTE(v time.Time) predicate.Video

UploadDateLTE applies the LTE predicate on the "uploadDate" field.

func UploadDateNEQ

func UploadDateNEQ(v time.Time) predicate.Video

UploadDateNEQ applies the NEQ predicate on the "uploadDate" field.

func UploadDateNotIn

func UploadDateNotIn(vs ...time.Time) predicate.Video

UploadDateNotIn applies the NotIn predicate on the "uploadDate" field.

func Uploader

func Uploader(v string) predicate.Video

Uploader applies equality check predicate on the "uploader" field. It's identical to UploaderEQ.

func UploaderContains

func UploaderContains(v string) predicate.Video

UploaderContains applies the Contains predicate on the "uploader" field.

func UploaderContainsFold

func UploaderContainsFold(v string) predicate.Video

UploaderContainsFold applies the ContainsFold predicate on the "uploader" field.

func UploaderEQ

func UploaderEQ(v string) predicate.Video

UploaderEQ applies the EQ predicate on the "uploader" field.

func UploaderEqualFold

func UploaderEqualFold(v string) predicate.Video

UploaderEqualFold applies the EqualFold predicate on the "uploader" field.

func UploaderGT

func UploaderGT(v string) predicate.Video

UploaderGT applies the GT predicate on the "uploader" field.

func UploaderGTE

func UploaderGTE(v string) predicate.Video

UploaderGTE applies the GTE predicate on the "uploader" field.

func UploaderHasPrefix

func UploaderHasPrefix(v string) predicate.Video

UploaderHasPrefix applies the HasPrefix predicate on the "uploader" field.

func UploaderHasSuffix

func UploaderHasSuffix(v string) predicate.Video

UploaderHasSuffix applies the HasSuffix predicate on the "uploader" field.

func UploaderIn

func UploaderIn(vs ...string) predicate.Video

UploaderIn applies the In predicate on the "uploader" field.

func UploaderLT

func UploaderLT(v string) predicate.Video

UploaderLT applies the LT predicate on the "uploader" field.

func UploaderLTE

func UploaderLTE(v string) predicate.Video

UploaderLTE applies the LTE predicate on the "uploader" field.

func UploaderNEQ

func UploaderNEQ(v string) predicate.Video

UploaderNEQ applies the NEQ predicate on the "uploader" field.

func UploaderNotIn

func UploaderNotIn(vs ...string) predicate.Video

UploaderNotIn applies the NotIn predicate on the "uploader" field.

func UploaderUrl

func UploaderUrl(v string) predicate.Video

UploaderUrl applies equality check predicate on the "uploaderUrl" field. It's identical to UploaderUrlEQ.

func UploaderUrlContains

func UploaderUrlContains(v string) predicate.Video

UploaderUrlContains applies the Contains predicate on the "uploaderUrl" field.

func UploaderUrlContainsFold

func UploaderUrlContainsFold(v string) predicate.Video

UploaderUrlContainsFold applies the ContainsFold predicate on the "uploaderUrl" field.

func UploaderUrlEQ

func UploaderUrlEQ(v string) predicate.Video

UploaderUrlEQ applies the EQ predicate on the "uploaderUrl" field.

func UploaderUrlEqualFold

func UploaderUrlEqualFold(v string) predicate.Video

UploaderUrlEqualFold applies the EqualFold predicate on the "uploaderUrl" field.

func UploaderUrlGT

func UploaderUrlGT(v string) predicate.Video

UploaderUrlGT applies the GT predicate on the "uploaderUrl" field.

func UploaderUrlGTE

func UploaderUrlGTE(v string) predicate.Video

UploaderUrlGTE applies the GTE predicate on the "uploaderUrl" field.

func UploaderUrlHasPrefix

func UploaderUrlHasPrefix(v string) predicate.Video

UploaderUrlHasPrefix applies the HasPrefix predicate on the "uploaderUrl" field.

func UploaderUrlHasSuffix

func UploaderUrlHasSuffix(v string) predicate.Video

UploaderUrlHasSuffix applies the HasSuffix predicate on the "uploaderUrl" field.

func UploaderUrlIn

func UploaderUrlIn(vs ...string) predicate.Video

UploaderUrlIn applies the In predicate on the "uploaderUrl" field.

func UploaderUrlLT

func UploaderUrlLT(v string) predicate.Video

UploaderUrlLT applies the LT predicate on the "uploaderUrl" field.

func UploaderUrlLTE

func UploaderUrlLTE(v string) predicate.Video

UploaderUrlLTE applies the LTE predicate on the "uploaderUrl" field.

func UploaderUrlNEQ

func UploaderUrlNEQ(v string) predicate.Video

UploaderUrlNEQ applies the NEQ predicate on the "uploaderUrl" field.

func UploaderUrlNotIn

func UploaderUrlNotIn(vs ...string) predicate.Video

UploaderUrlNotIn applies the NotIn predicate on the "uploaderUrl" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Video queries.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLikeVideos

func ByLikeVideos(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLikeVideos orders the results by like_videos terms.

func ByLikeVideosCount

func ByLikeVideosCount(opts ...sql.OrderTermOption) OrderOption

ByLikeVideosCount orders the results by like_videos count.

func ByThumbnailUrl

func ByThumbnailUrl(opts ...sql.OrderTermOption) OrderOption

ByThumbnailUrl orders the results by the thumbnailUrl field.

func ByTitle

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

func ByUploadDate

func ByUploadDate(opts ...sql.OrderTermOption) OrderOption

ByUploadDate orders the results by the uploadDate field.

func ByUploader

func ByUploader(opts ...sql.OrderTermOption) OrderOption

ByUploader orders the results by the uploader field.

func ByUploaderUrl

func ByUploaderUrl(opts ...sql.OrderTermOption) OrderOption

ByUploaderUrl orders the results by the uploaderUrl field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL