Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Live) predicate.Live
- func ArchiveChat(v bool) predicate.Live
- func ArchiveChatEQ(v bool) predicate.Live
- func ArchiveChatNEQ(v bool) predicate.Live
- func CreatedAt(v time.Time) predicate.Live
- func CreatedAtEQ(v time.Time) predicate.Live
- func CreatedAtGT(v time.Time) predicate.Live
- func CreatedAtGTE(v time.Time) predicate.Live
- func CreatedAtIn(vs ...time.Time) predicate.Live
- func CreatedAtLT(v time.Time) predicate.Live
- func CreatedAtLTE(v time.Time) predicate.Live
- func CreatedAtNEQ(v time.Time) predicate.Live
- func CreatedAtNotIn(vs ...time.Time) predicate.Live
- func DownloadArchives(v bool) predicate.Live
- func DownloadArchivesEQ(v bool) predicate.Live
- func DownloadArchivesNEQ(v bool) predicate.Live
- func DownloadHighlights(v bool) predicate.Live
- func DownloadHighlightsEQ(v bool) predicate.Live
- func DownloadHighlightsNEQ(v bool) predicate.Live
- func DownloadSubOnly(v bool) predicate.Live
- func DownloadSubOnlyEQ(v bool) predicate.Live
- func DownloadSubOnlyNEQ(v bool) predicate.Live
- func DownloadUploads(v bool) predicate.Live
- func DownloadUploadsEQ(v bool) predicate.Live
- func DownloadUploadsNEQ(v bool) predicate.Live
- func HasCategories() predicate.Live
- func HasCategoriesWith(preds ...predicate.LiveCategory) predicate.Live
- func HasChannel() predicate.Live
- func HasChannelWith(preds ...predicate.Channel) predicate.Live
- func ID(id uuid.UUID) predicate.Live
- func IDEQ(id uuid.UUID) predicate.Live
- func IDGT(id uuid.UUID) predicate.Live
- func IDGTE(id uuid.UUID) predicate.Live
- func IDIn(ids ...uuid.UUID) predicate.Live
- func IDLT(id uuid.UUID) predicate.Live
- func IDLTE(id uuid.UUID) predicate.Live
- func IDNEQ(id uuid.UUID) predicate.Live
- func IDNotIn(ids ...uuid.UUID) predicate.Live
- func IsLive(v bool) predicate.Live
- func IsLiveEQ(v bool) predicate.Live
- func IsLiveNEQ(v bool) predicate.Live
- func LastLive(v time.Time) predicate.Live
- func LastLiveEQ(v time.Time) predicate.Live
- func LastLiveGT(v time.Time) predicate.Live
- func LastLiveGTE(v time.Time) predicate.Live
- func LastLiveIn(vs ...time.Time) predicate.Live
- func LastLiveLT(v time.Time) predicate.Live
- func LastLiveLTE(v time.Time) predicate.Live
- func LastLiveNEQ(v time.Time) predicate.Live
- func LastLiveNotIn(vs ...time.Time) predicate.Live
- func Not(p predicate.Live) predicate.Live
- func Or(predicates ...predicate.Live) predicate.Live
- func RenderChat(v bool) predicate.Live
- func RenderChatEQ(v bool) predicate.Live
- func RenderChatNEQ(v bool) predicate.Live
- func Resolution(v string) predicate.Live
- func ResolutionContains(v string) predicate.Live
- func ResolutionContainsFold(v string) predicate.Live
- func ResolutionEQ(v string) predicate.Live
- func ResolutionEqualFold(v string) predicate.Live
- func ResolutionGT(v string) predicate.Live
- func ResolutionGTE(v string) predicate.Live
- func ResolutionHasPrefix(v string) predicate.Live
- func ResolutionHasSuffix(v string) predicate.Live
- func ResolutionIn(vs ...string) predicate.Live
- func ResolutionIsNil() predicate.Live
- func ResolutionLT(v string) predicate.Live
- func ResolutionLTE(v string) predicate.Live
- func ResolutionNEQ(v string) predicate.Live
- func ResolutionNotIn(vs ...string) predicate.Live
- func ResolutionNotNil() predicate.Live
- func UpdatedAt(v time.Time) predicate.Live
- func UpdatedAtEQ(v time.Time) predicate.Live
- func UpdatedAtGT(v time.Time) predicate.Live
- func UpdatedAtGTE(v time.Time) predicate.Live
- func UpdatedAtIn(vs ...time.Time) predicate.Live
- func UpdatedAtLT(v time.Time) predicate.Live
- func UpdatedAtLTE(v time.Time) predicate.Live
- func UpdatedAtNEQ(v time.Time) predicate.Live
- func UpdatedAtNotIn(vs ...time.Time) predicate.Live
- func ValidColumn(column string) bool
- func WatchLive(v bool) predicate.Live
- func WatchLiveEQ(v bool) predicate.Live
- func WatchLiveNEQ(v bool) predicate.Live
- func WatchVod(v bool) predicate.Live
- func WatchVodEQ(v bool) predicate.Live
- func WatchVodNEQ(v bool) predicate.Live
- type OrderOption
- func ByArchiveChat(opts ...sql.OrderTermOption) OrderOption
- func ByCategories(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCategoriesCount(opts ...sql.OrderTermOption) OrderOption
- func ByChannelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDownloadArchives(opts ...sql.OrderTermOption) OrderOption
- func ByDownloadHighlights(opts ...sql.OrderTermOption) OrderOption
- func ByDownloadSubOnly(opts ...sql.OrderTermOption) OrderOption
- func ByDownloadUploads(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsLive(opts ...sql.OrderTermOption) OrderOption
- func ByLastLive(opts ...sql.OrderTermOption) OrderOption
- func ByRenderChat(opts ...sql.OrderTermOption) OrderOption
- func ByResolution(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWatchLive(opts ...sql.OrderTermOption) OrderOption
- func ByWatchVod(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the live type in the database. Label = "live" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldWatchLive holds the string denoting the watch_live field in the database. FieldWatchLive = "watch_live" // FieldWatchVod holds the string denoting the watch_vod field in the database. FieldWatchVod = "watch_vod" // FieldDownloadArchives holds the string denoting the download_archives field in the database. FieldDownloadArchives = "download_archives" // FieldDownloadHighlights holds the string denoting the download_highlights field in the database. FieldDownloadHighlights = "download_highlights" // FieldDownloadUploads holds the string denoting the download_uploads field in the database. FieldDownloadUploads = "download_uploads" // FieldDownloadSubOnly holds the string denoting the download_sub_only field in the database. FieldDownloadSubOnly = "download_sub_only" // FieldIsLive holds the string denoting the is_live field in the database. FieldIsLive = "is_live" // FieldArchiveChat holds the string denoting the archive_chat field in the database. FieldArchiveChat = "archive_chat" // FieldResolution holds the string denoting the resolution field in the database. FieldResolution = "resolution" // FieldLastLive holds the string denoting the last_live field in the database. FieldLastLive = "last_live" // FieldRenderChat holds the string denoting the render_chat field in the database. FieldRenderChat = "render_chat" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeChannel holds the string denoting the channel edge name in mutations. EdgeChannel = "channel" // EdgeCategories holds the string denoting the categories edge name in mutations. EdgeCategories = "categories" // Table holds the table name of the live in the database. Table = "lives" // ChannelTable is the table that holds the channel relation/edge. ChannelTable = "lives" // ChannelInverseTable is the table name for the Channel entity. // It exists in this package in order to avoid circular dependency with the "channel" package. ChannelInverseTable = "channels" // ChannelColumn is the table column denoting the channel relation/edge. ChannelColumn = "channel_live" // CategoriesTable is the table that holds the categories relation/edge. CategoriesTable = "live_categories" // CategoriesInverseTable is the table name for the LiveCategory entity. // It exists in this package in order to avoid circular dependency with the "livecategory" package. CategoriesInverseTable = "live_categories" // CategoriesColumn is the table column denoting the categories relation/edge. CategoriesColumn = "live_id" )
Variables ¶
var ( // DefaultWatchLive holds the default value on creation for the "watch_live" field. DefaultWatchLive bool // DefaultWatchVod holds the default value on creation for the "watch_vod" field. DefaultWatchVod bool // DefaultDownloadArchives holds the default value on creation for the "download_archives" field. DefaultDownloadArchives bool // DefaultDownloadHighlights holds the default value on creation for the "download_highlights" field. DefaultDownloadHighlights bool // DefaultDownloadUploads holds the default value on creation for the "download_uploads" field. DefaultDownloadUploads bool // DefaultDownloadSubOnly holds the default value on creation for the "download_sub_only" field. DefaultDownloadSubOnly bool // DefaultIsLive holds the default value on creation for the "is_live" field. DefaultIsLive bool // DefaultArchiveChat holds the default value on creation for the "archive_chat" field. DefaultArchiveChat bool // DefaultResolution holds the default value on creation for the "resolution" field. DefaultResolution string // DefaultLastLive holds the default value on creation for the "last_live" field. DefaultLastLive func() time.Time // DefaultRenderChat holds the default value on creation for the "render_chat" field. DefaultRenderChat bool // 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 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldWatchLive, FieldWatchVod, FieldDownloadArchives, FieldDownloadHighlights, FieldDownloadUploads, FieldDownloadSubOnly, FieldIsLive, FieldArchiveChat, FieldResolution, FieldLastLive, FieldRenderChat, FieldUpdatedAt, FieldCreatedAt, }
Columns holds all SQL columns for live fields.
var ForeignKeys = []string{
"channel_live",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "lives" table and are not defined as standalone fields in the schema.
Functions ¶
func ArchiveChat ¶
ArchiveChat applies equality check predicate on the "archive_chat" field. It's identical to ArchiveChatEQ.
func ArchiveChatEQ ¶
ArchiveChatEQ applies the EQ predicate on the "archive_chat" field.
func ArchiveChatNEQ ¶
ArchiveChatNEQ applies the NEQ predicate on the "archive_chat" 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 DownloadArchives ¶ added in v1.1.0
DownloadArchives applies equality check predicate on the "download_archives" field. It's identical to DownloadArchivesEQ.
func DownloadArchivesEQ ¶ added in v1.1.0
DownloadArchivesEQ applies the EQ predicate on the "download_archives" field.
func DownloadArchivesNEQ ¶ added in v1.1.0
DownloadArchivesNEQ applies the NEQ predicate on the "download_archives" field.
func DownloadHighlights ¶ added in v1.1.0
DownloadHighlights applies equality check predicate on the "download_highlights" field. It's identical to DownloadHighlightsEQ.
func DownloadHighlightsEQ ¶ added in v1.1.0
DownloadHighlightsEQ applies the EQ predicate on the "download_highlights" field.
func DownloadHighlightsNEQ ¶ added in v1.1.0
DownloadHighlightsNEQ applies the NEQ predicate on the "download_highlights" field.
func DownloadSubOnly ¶ added in v1.2.0
DownloadSubOnly applies equality check predicate on the "download_sub_only" field. It's identical to DownloadSubOnlyEQ.
func DownloadSubOnlyEQ ¶ added in v1.2.0
DownloadSubOnlyEQ applies the EQ predicate on the "download_sub_only" field.
func DownloadSubOnlyNEQ ¶ added in v1.2.0
DownloadSubOnlyNEQ applies the NEQ predicate on the "download_sub_only" field.
func DownloadUploads ¶ added in v1.1.0
DownloadUploads applies equality check predicate on the "download_uploads" field. It's identical to DownloadUploadsEQ.
func DownloadUploadsEQ ¶ added in v1.1.0
DownloadUploadsEQ applies the EQ predicate on the "download_uploads" field.
func DownloadUploadsNEQ ¶ added in v1.1.0
DownloadUploadsNEQ applies the NEQ predicate on the "download_uploads" field.
func HasCategories ¶ added in v1.2.4
HasCategories applies the HasEdge predicate on the "categories" edge.
func HasCategoriesWith ¶ added in v1.2.4
func HasCategoriesWith(preds ...predicate.LiveCategory) predicate.Live
HasCategoriesWith applies the HasEdge predicate on the "categories" edge with a given conditions (other predicates).
func HasChannel ¶
HasChannel applies the HasEdge predicate on the "channel" edge.
func HasChannelWith ¶
HasChannelWith applies the HasEdge predicate on the "channel" edge with a given conditions (other predicates).
func IsLive ¶
IsLive applies equality check predicate on the "is_live" field. It's identical to IsLiveEQ.
func LastLive ¶
LastLive applies equality check predicate on the "last_live" field. It's identical to LastLiveEQ.
func LastLiveEQ ¶
LastLiveEQ applies the EQ predicate on the "last_live" field.
func LastLiveGT ¶
LastLiveGT applies the GT predicate on the "last_live" field.
func LastLiveGTE ¶
LastLiveGTE applies the GTE predicate on the "last_live" field.
func LastLiveIn ¶
LastLiveIn applies the In predicate on the "last_live" field.
func LastLiveLT ¶
LastLiveLT applies the LT predicate on the "last_live" field.
func LastLiveLTE ¶
LastLiveLTE applies the LTE predicate on the "last_live" field.
func LastLiveNEQ ¶
LastLiveNEQ applies the NEQ predicate on the "last_live" field.
func LastLiveNotIn ¶
LastLiveNotIn applies the NotIn predicate on the "last_live" field.
func RenderChat ¶ added in v1.1.7
RenderChat applies equality check predicate on the "render_chat" field. It's identical to RenderChatEQ.
func RenderChatEQ ¶ added in v1.1.7
RenderChatEQ applies the EQ predicate on the "render_chat" field.
func RenderChatNEQ ¶ added in v1.1.7
RenderChatNEQ applies the NEQ predicate on the "render_chat" field.
func Resolution ¶
Resolution applies equality check predicate on the "resolution" field. It's identical to ResolutionEQ.
func ResolutionContains ¶
ResolutionContains applies the Contains predicate on the "resolution" field.
func ResolutionContainsFold ¶
ResolutionContainsFold applies the ContainsFold predicate on the "resolution" field.
func ResolutionEQ ¶
ResolutionEQ applies the EQ predicate on the "resolution" field.
func ResolutionEqualFold ¶
ResolutionEqualFold applies the EqualFold predicate on the "resolution" field.
func ResolutionGT ¶
ResolutionGT applies the GT predicate on the "resolution" field.
func ResolutionGTE ¶
ResolutionGTE applies the GTE predicate on the "resolution" field.
func ResolutionHasPrefix ¶
ResolutionHasPrefix applies the HasPrefix predicate on the "resolution" field.
func ResolutionHasSuffix ¶
ResolutionHasSuffix applies the HasSuffix predicate on the "resolution" field.
func ResolutionIn ¶
ResolutionIn applies the In predicate on the "resolution" field.
func ResolutionIsNil ¶
ResolutionIsNil applies the IsNil predicate on the "resolution" field.
func ResolutionLT ¶
ResolutionLT applies the LT predicate on the "resolution" field.
func ResolutionLTE ¶
ResolutionLTE applies the LTE predicate on the "resolution" field.
func ResolutionNEQ ¶
ResolutionNEQ applies the NEQ predicate on the "resolution" field.
func ResolutionNotIn ¶
ResolutionNotIn applies the NotIn predicate on the "resolution" field.
func ResolutionNotNil ¶
ResolutionNotNil applies the NotNil predicate on the "resolution" 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).
func WatchLive ¶ added in v1.1.0
WatchLive applies equality check predicate on the "watch_live" field. It's identical to WatchLiveEQ.
func WatchLiveEQ ¶ added in v1.1.0
WatchLiveEQ applies the EQ predicate on the "watch_live" field.
func WatchLiveNEQ ¶ added in v1.1.0
WatchLiveNEQ applies the NEQ predicate on the "watch_live" field.
func WatchVod ¶ added in v1.1.0
WatchVod applies equality check predicate on the "watch_vod" field. It's identical to WatchVodEQ.
func WatchVodEQ ¶ added in v1.1.0
WatchVodEQ applies the EQ predicate on the "watch_vod" field.
func WatchVodNEQ ¶ added in v1.1.0
WatchVodNEQ applies the NEQ predicate on the "watch_vod" field.
Types ¶
type OrderOption ¶ added in v1.2.12
OrderOption defines the ordering options for the Live queries.
func ByArchiveChat ¶ added in v1.2.12
func ByArchiveChat(opts ...sql.OrderTermOption) OrderOption
ByArchiveChat orders the results by the archive_chat field.
func ByCategories ¶ added in v1.2.12
func ByCategories(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCategories orders the results by categories terms.
func ByCategoriesCount ¶ added in v1.2.12
func ByCategoriesCount(opts ...sql.OrderTermOption) OrderOption
ByCategoriesCount orders the results by categories count.
func ByChannelField ¶ added in v1.2.12
func ByChannelField(field string, opts ...sql.OrderTermOption) OrderOption
ByChannelField orders the results by channel field.
func ByCreatedAt ¶ added in v1.2.12
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDownloadArchives ¶ added in v1.2.12
func ByDownloadArchives(opts ...sql.OrderTermOption) OrderOption
ByDownloadArchives orders the results by the download_archives field.
func ByDownloadHighlights ¶ added in v1.2.12
func ByDownloadHighlights(opts ...sql.OrderTermOption) OrderOption
ByDownloadHighlights orders the results by the download_highlights field.
func ByDownloadSubOnly ¶ added in v1.2.12
func ByDownloadSubOnly(opts ...sql.OrderTermOption) OrderOption
ByDownloadSubOnly orders the results by the download_sub_only field.
func ByDownloadUploads ¶ added in v1.2.12
func ByDownloadUploads(opts ...sql.OrderTermOption) OrderOption
ByDownloadUploads orders the results by the download_uploads field.
func ByID ¶ added in v1.2.12
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsLive ¶ added in v1.2.12
func ByIsLive(opts ...sql.OrderTermOption) OrderOption
ByIsLive orders the results by the is_live field.
func ByLastLive ¶ added in v1.2.12
func ByLastLive(opts ...sql.OrderTermOption) OrderOption
ByLastLive orders the results by the last_live field.
func ByRenderChat ¶ added in v1.2.12
func ByRenderChat(opts ...sql.OrderTermOption) OrderOption
ByRenderChat orders the results by the render_chat field.
func ByResolution ¶ added in v1.2.12
func ByResolution(opts ...sql.OrderTermOption) OrderOption
ByResolution orders the results by the resolution field.
func ByUpdatedAt ¶ added in v1.2.12
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWatchLive ¶ added in v1.2.12
func ByWatchLive(opts ...sql.OrderTermOption) OrderOption
ByWatchLive orders the results by the watch_live field.
func ByWatchVod ¶ added in v1.2.12
func ByWatchVod(opts ...sql.OrderTermOption) OrderOption
ByWatchVod orders the results by the watch_vod field.