Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Video) predicate.Video
- func CreateTime(v time.Time) predicate.Video
- func CreateTimeEQ(v time.Time) predicate.Video
- func CreateTimeGT(v time.Time) predicate.Video
- func CreateTimeGTE(v time.Time) predicate.Video
- func CreateTimeIn(vs ...time.Time) predicate.Video
- func CreateTimeLT(v time.Time) predicate.Video
- func CreateTimeLTE(v time.Time) predicate.Video
- func CreateTimeNEQ(v time.Time) predicate.Video
- func CreateTimeNotIn(vs ...time.Time) predicate.Video
- func Description(v string) predicate.Video
- func DescriptionContains(v string) predicate.Video
- func DescriptionContainsFold(v string) predicate.Video
- func DescriptionEQ(v string) predicate.Video
- func DescriptionEqualFold(v string) predicate.Video
- func DescriptionGT(v string) predicate.Video
- func DescriptionGTE(v string) predicate.Video
- func DescriptionHasPrefix(v string) predicate.Video
- func DescriptionHasSuffix(v string) predicate.Video
- func DescriptionIn(vs ...string) predicate.Video
- func DescriptionLT(v string) predicate.Video
- func DescriptionLTE(v string) predicate.Video
- func DescriptionNEQ(v string) predicate.Video
- func DescriptionNotIn(vs ...string) predicate.Video
- func HasLikeVideos() predicate.Video
- func HasLikeVideosWith(preds ...predicate.LikeVideo) predicate.Video
- func ID(id string) predicate.Video
- func IDContainsFold(id string) predicate.Video
- func IDEQ(id string) predicate.Video
- func IDEqualFold(id string) predicate.Video
- func IDGT(id string) predicate.Video
- func IDGTE(id string) predicate.Video
- func IDIn(ids ...string) predicate.Video
- func IDLT(id string) predicate.Video
- func IDLTE(id string) predicate.Video
- func IDNEQ(id string) predicate.Video
- func IDNotIn(ids ...string) predicate.Video
- func Not(p predicate.Video) predicate.Video
- func Or(predicates ...predicate.Video) predicate.Video
- func ThumbnailUrl(v string) predicate.Video
- func ThumbnailUrlContains(v string) predicate.Video
- func ThumbnailUrlContainsFold(v string) predicate.Video
- func ThumbnailUrlEQ(v string) predicate.Video
- func ThumbnailUrlEqualFold(v string) predicate.Video
- func ThumbnailUrlGT(v string) predicate.Video
- func ThumbnailUrlGTE(v string) predicate.Video
- func ThumbnailUrlHasPrefix(v string) predicate.Video
- func ThumbnailUrlHasSuffix(v string) predicate.Video
- func ThumbnailUrlIn(vs ...string) predicate.Video
- func ThumbnailUrlLT(v string) predicate.Video
- func ThumbnailUrlLTE(v string) predicate.Video
- func ThumbnailUrlNEQ(v string) predicate.Video
- func ThumbnailUrlNotIn(vs ...string) predicate.Video
- func Title(v string) predicate.Video
- func TitleContains(v string) predicate.Video
- func TitleContainsFold(v string) predicate.Video
- func TitleEQ(v string) predicate.Video
- func TitleEqualFold(v string) predicate.Video
- func TitleGT(v string) predicate.Video
- func TitleGTE(v string) predicate.Video
- func TitleHasPrefix(v string) predicate.Video
- func TitleHasSuffix(v string) predicate.Video
- func TitleIn(vs ...string) predicate.Video
- func TitleLT(v string) predicate.Video
- func TitleLTE(v string) predicate.Video
- func TitleNEQ(v string) predicate.Video
- func TitleNotIn(vs ...string) predicate.Video
- func UpdateTime(v time.Time) predicate.Video
- func UpdateTimeEQ(v time.Time) predicate.Video
- func UpdateTimeGT(v time.Time) predicate.Video
- func UpdateTimeGTE(v time.Time) predicate.Video
- func UpdateTimeIn(vs ...time.Time) predicate.Video
- func UpdateTimeLT(v time.Time) predicate.Video
- func UpdateTimeLTE(v time.Time) predicate.Video
- func UpdateTimeNEQ(v time.Time) predicate.Video
- func UpdateTimeNotIn(vs ...time.Time) predicate.Video
- func UploadDate(v time.Time) predicate.Video
- func UploadDateEQ(v time.Time) predicate.Video
- func UploadDateGT(v time.Time) predicate.Video
- func UploadDateGTE(v time.Time) predicate.Video
- func UploadDateIn(vs ...time.Time) predicate.Video
- func UploadDateLT(v time.Time) predicate.Video
- func UploadDateLTE(v time.Time) predicate.Video
- func UploadDateNEQ(v time.Time) predicate.Video
- func UploadDateNotIn(vs ...time.Time) predicate.Video
- func Uploader(v string) predicate.Video
- func UploaderContains(v string) predicate.Video
- func UploaderContainsFold(v string) predicate.Video
- func UploaderEQ(v string) predicate.Video
- func UploaderEqualFold(v string) predicate.Video
- func UploaderGT(v string) predicate.Video
- func UploaderGTE(v string) predicate.Video
- func UploaderHasPrefix(v string) predicate.Video
- func UploaderHasSuffix(v string) predicate.Video
- func UploaderIn(vs ...string) predicate.Video
- func UploaderLT(v string) predicate.Video
- func UploaderLTE(v string) predicate.Video
- func UploaderNEQ(v string) predicate.Video
- func UploaderNotIn(vs ...string) predicate.Video
- func UploaderUrl(v string) predicate.Video
- func UploaderUrlContains(v string) predicate.Video
- func UploaderUrlContainsFold(v string) predicate.Video
- func UploaderUrlEQ(v string) predicate.Video
- func UploaderUrlEqualFold(v string) predicate.Video
- func UploaderUrlGT(v string) predicate.Video
- func UploaderUrlGTE(v string) predicate.Video
- func UploaderUrlHasPrefix(v string) predicate.Video
- func UploaderUrlHasSuffix(v string) predicate.Video
- func UploaderUrlIn(vs ...string) predicate.Video
- func UploaderUrlLT(v string) predicate.Video
- func UploaderUrlLTE(v string) predicate.Video
- func UploaderUrlNEQ(v string) predicate.Video
- func UploaderUrlNotIn(vs ...string) predicate.Video
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLikeVideos(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLikeVideosCount(opts ...sql.OrderTermOption) OrderOption
- func ByThumbnailUrl(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUploadDate(opts ...sql.OrderTermOption) OrderOption
- func ByUploader(opts ...sql.OrderTermOption) OrderOption
- func ByUploaderUrl(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldTitle, FieldDescription, FieldUploadDate, FieldUploader, FieldUploaderUrl, FieldThumbnailUrl, }
Columns holds all SQL columns for video fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasLikeVideos ¶
HasLikeVideos applies the HasEdge predicate on the "like_videos" edge.
func HasLikeVideosWith ¶
HasLikeVideosWith applies the HasEdge predicate on the "like_videos" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func ThumbnailUrl ¶
ThumbnailUrl applies equality check predicate on the "thumbnailUrl" field. It's identical to ThumbnailUrlEQ.
func ThumbnailUrlContains ¶
ThumbnailUrlContains applies the Contains predicate on the "thumbnailUrl" field.
func ThumbnailUrlContainsFold ¶
ThumbnailUrlContainsFold applies the ContainsFold predicate on the "thumbnailUrl" field.
func ThumbnailUrlEQ ¶
ThumbnailUrlEQ applies the EQ predicate on the "thumbnailUrl" field.
func ThumbnailUrlEqualFold ¶
ThumbnailUrlEqualFold applies the EqualFold predicate on the "thumbnailUrl" field.
func ThumbnailUrlGT ¶
ThumbnailUrlGT applies the GT predicate on the "thumbnailUrl" field.
func ThumbnailUrlGTE ¶
ThumbnailUrlGTE applies the GTE predicate on the "thumbnailUrl" field.
func ThumbnailUrlHasPrefix ¶
ThumbnailUrlHasPrefix applies the HasPrefix predicate on the "thumbnailUrl" field.
func ThumbnailUrlHasSuffix ¶
ThumbnailUrlHasSuffix applies the HasSuffix predicate on the "thumbnailUrl" field.
func ThumbnailUrlIn ¶
ThumbnailUrlIn applies the In predicate on the "thumbnailUrl" field.
func ThumbnailUrlLT ¶
ThumbnailUrlLT applies the LT predicate on the "thumbnailUrl" field.
func ThumbnailUrlLTE ¶
ThumbnailUrlLTE applies the LTE predicate on the "thumbnailUrl" field.
func ThumbnailUrlNEQ ¶
ThumbnailUrlNEQ applies the NEQ predicate on the "thumbnailUrl" field.
func ThumbnailUrlNotIn ¶
ThumbnailUrlNotIn applies the NotIn predicate on the "thumbnailUrl" field.
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 UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UploadDate ¶
UploadDate applies equality check predicate on the "uploadDate" field. It's identical to UploadDateEQ.
func UploadDateEQ ¶
UploadDateEQ applies the EQ predicate on the "uploadDate" field.
func UploadDateGT ¶
UploadDateGT applies the GT predicate on the "uploadDate" field.
func UploadDateGTE ¶
UploadDateGTE applies the GTE predicate on the "uploadDate" field.
func UploadDateIn ¶
UploadDateIn applies the In predicate on the "uploadDate" field.
func UploadDateLT ¶
UploadDateLT applies the LT predicate on the "uploadDate" field.
func UploadDateLTE ¶
UploadDateLTE applies the LTE predicate on the "uploadDate" field.
func UploadDateNEQ ¶
UploadDateNEQ applies the NEQ predicate on the "uploadDate" field.
func UploadDateNotIn ¶
UploadDateNotIn applies the NotIn predicate on the "uploadDate" field.
func Uploader ¶
Uploader applies equality check predicate on the "uploader" field. It's identical to UploaderEQ.
func UploaderContains ¶
UploaderContains applies the Contains predicate on the "uploader" field.
func UploaderContainsFold ¶
UploaderContainsFold applies the ContainsFold predicate on the "uploader" field.
func UploaderEQ ¶
UploaderEQ applies the EQ predicate on the "uploader" field.
func UploaderEqualFold ¶
UploaderEqualFold applies the EqualFold predicate on the "uploader" field.
func UploaderGT ¶
UploaderGT applies the GT predicate on the "uploader" field.
func UploaderGTE ¶
UploaderGTE applies the GTE predicate on the "uploader" field.
func UploaderHasPrefix ¶
UploaderHasPrefix applies the HasPrefix predicate on the "uploader" field.
func UploaderHasSuffix ¶
UploaderHasSuffix applies the HasSuffix predicate on the "uploader" field.
func UploaderIn ¶
UploaderIn applies the In predicate on the "uploader" field.
func UploaderLT ¶
UploaderLT applies the LT predicate on the "uploader" field.
func UploaderLTE ¶
UploaderLTE applies the LTE predicate on the "uploader" field.
func UploaderNEQ ¶
UploaderNEQ applies the NEQ predicate on the "uploader" field.
func UploaderNotIn ¶
UploaderNotIn applies the NotIn predicate on the "uploader" field.
func UploaderUrl ¶
UploaderUrl applies equality check predicate on the "uploaderUrl" field. It's identical to UploaderUrlEQ.
func UploaderUrlContains ¶
UploaderUrlContains applies the Contains predicate on the "uploaderUrl" field.
func UploaderUrlContainsFold ¶
UploaderUrlContainsFold applies the ContainsFold predicate on the "uploaderUrl" field.
func UploaderUrlEQ ¶
UploaderUrlEQ applies the EQ predicate on the "uploaderUrl" field.
func UploaderUrlEqualFold ¶
UploaderUrlEqualFold applies the EqualFold predicate on the "uploaderUrl" field.
func UploaderUrlGT ¶
UploaderUrlGT applies the GT predicate on the "uploaderUrl" field.
func UploaderUrlGTE ¶
UploaderUrlGTE applies the GTE predicate on the "uploaderUrl" field.
func UploaderUrlHasPrefix ¶
UploaderUrlHasPrefix applies the HasPrefix predicate on the "uploaderUrl" field.
func UploaderUrlHasSuffix ¶
UploaderUrlHasSuffix applies the HasSuffix predicate on the "uploaderUrl" field.
func UploaderUrlIn ¶
UploaderUrlIn applies the In predicate on the "uploaderUrl" field.
func UploaderUrlLT ¶
UploaderUrlLT applies the LT predicate on the "uploaderUrl" field.
func UploaderUrlLTE ¶
UploaderUrlLTE applies the LTE predicate on the "uploaderUrl" field.
func UploaderUrlNEQ ¶
UploaderUrlNEQ applies the NEQ predicate on the "uploaderUrl" field.
func UploaderUrlNotIn ¶
UploaderUrlNotIn applies the NotIn predicate on the "uploaderUrl" 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 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.