Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Channel) predicate.Channel
- func CreatedAt(v time.Time) predicate.Channel
- func CreatedAtEQ(v time.Time) predicate.Channel
- func CreatedAtGT(v time.Time) predicate.Channel
- func CreatedAtGTE(v time.Time) predicate.Channel
- func CreatedAtIn(vs ...time.Time) predicate.Channel
- func CreatedAtLT(v time.Time) predicate.Channel
- func CreatedAtLTE(v time.Time) predicate.Channel
- func CreatedAtNEQ(v time.Time) predicate.Channel
- func CreatedAtNotIn(vs ...time.Time) predicate.Channel
- func DisplayName(v string) predicate.Channel
- func DisplayNameContains(v string) predicate.Channel
- func DisplayNameContainsFold(v string) predicate.Channel
- func DisplayNameEQ(v string) predicate.Channel
- func DisplayNameEqualFold(v string) predicate.Channel
- func DisplayNameGT(v string) predicate.Channel
- func DisplayNameGTE(v string) predicate.Channel
- func DisplayNameHasPrefix(v string) predicate.Channel
- func DisplayNameHasSuffix(v string) predicate.Channel
- func DisplayNameIn(vs ...string) predicate.Channel
- func DisplayNameLT(v string) predicate.Channel
- func DisplayNameLTE(v string) predicate.Channel
- func DisplayNameNEQ(v string) predicate.Channel
- func DisplayNameNotIn(vs ...string) predicate.Channel
- func ExtID(v string) predicate.Channel
- func ExtIDContains(v string) predicate.Channel
- func ExtIDContainsFold(v string) predicate.Channel
- func ExtIDEQ(v string) predicate.Channel
- func ExtIDEqualFold(v string) predicate.Channel
- func ExtIDGT(v string) predicate.Channel
- func ExtIDGTE(v string) predicate.Channel
- func ExtIDHasPrefix(v string) predicate.Channel
- func ExtIDHasSuffix(v string) predicate.Channel
- func ExtIDIn(vs ...string) predicate.Channel
- func ExtIDIsNil() predicate.Channel
- func ExtIDLT(v string) predicate.Channel
- func ExtIDLTE(v string) predicate.Channel
- func ExtIDNEQ(v string) predicate.Channel
- func ExtIDNotIn(vs ...string) predicate.Channel
- func ExtIDNotNil() predicate.Channel
- func HasLive() predicate.Channel
- func HasLiveWith(preds ...predicate.Live) predicate.Channel
- func HasVods() predicate.Channel
- func HasVodsWith(preds ...predicate.Vod) predicate.Channel
- func ID(id uuid.UUID) predicate.Channel
- func IDEQ(id uuid.UUID) predicate.Channel
- func IDGT(id uuid.UUID) predicate.Channel
- func IDGTE(id uuid.UUID) predicate.Channel
- func IDIn(ids ...uuid.UUID) predicate.Channel
- func IDLT(id uuid.UUID) predicate.Channel
- func IDLTE(id uuid.UUID) predicate.Channel
- func IDNEQ(id uuid.UUID) predicate.Channel
- func IDNotIn(ids ...uuid.UUID) predicate.Channel
- func ImagePath(v string) predicate.Channel
- func ImagePathContains(v string) predicate.Channel
- func ImagePathContainsFold(v string) predicate.Channel
- func ImagePathEQ(v string) predicate.Channel
- func ImagePathEqualFold(v string) predicate.Channel
- func ImagePathGT(v string) predicate.Channel
- func ImagePathGTE(v string) predicate.Channel
- func ImagePathHasPrefix(v string) predicate.Channel
- func ImagePathHasSuffix(v string) predicate.Channel
- func ImagePathIn(vs ...string) predicate.Channel
- func ImagePathLT(v string) predicate.Channel
- func ImagePathLTE(v string) predicate.Channel
- func ImagePathNEQ(v string) predicate.Channel
- func ImagePathNotIn(vs ...string) predicate.Channel
- func Name(v string) predicate.Channel
- func NameContains(v string) predicate.Channel
- func NameContainsFold(v string) predicate.Channel
- func NameEQ(v string) predicate.Channel
- func NameEqualFold(v string) predicate.Channel
- func NameGT(v string) predicate.Channel
- func NameGTE(v string) predicate.Channel
- func NameHasPrefix(v string) predicate.Channel
- func NameHasSuffix(v string) predicate.Channel
- func NameIn(vs ...string) predicate.Channel
- func NameLT(v string) predicate.Channel
- func NameLTE(v string) predicate.Channel
- func NameNEQ(v string) predicate.Channel
- func NameNotIn(vs ...string) predicate.Channel
- func Not(p predicate.Channel) predicate.Channel
- func Or(predicates ...predicate.Channel) predicate.Channel
- func Retention(v bool) predicate.Channel
- func RetentionDays(v int64) predicate.Channel
- func RetentionDaysEQ(v int64) predicate.Channel
- func RetentionDaysGT(v int64) predicate.Channel
- func RetentionDaysGTE(v int64) predicate.Channel
- func RetentionDaysIn(vs ...int64) predicate.Channel
- func RetentionDaysIsNil() predicate.Channel
- func RetentionDaysLT(v int64) predicate.Channel
- func RetentionDaysLTE(v int64) predicate.Channel
- func RetentionDaysNEQ(v int64) predicate.Channel
- func RetentionDaysNotIn(vs ...int64) predicate.Channel
- func RetentionDaysNotNil() predicate.Channel
- func RetentionEQ(v bool) predicate.Channel
- func RetentionNEQ(v bool) predicate.Channel
- func UpdatedAt(v time.Time) predicate.Channel
- func UpdatedAtEQ(v time.Time) predicate.Channel
- func UpdatedAtGT(v time.Time) predicate.Channel
- func UpdatedAtGTE(v time.Time) predicate.Channel
- func UpdatedAtIn(vs ...time.Time) predicate.Channel
- func UpdatedAtLT(v time.Time) predicate.Channel
- func UpdatedAtLTE(v time.Time) predicate.Channel
- func UpdatedAtNEQ(v time.Time) predicate.Channel
- func UpdatedAtNotIn(vs ...time.Time) predicate.Channel
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByExtID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImagePath(opts ...sql.OrderTermOption) OrderOption
- func ByLive(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLiveCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRetention(opts ...sql.OrderTermOption) OrderOption
- func ByRetentionDays(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVods(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVodsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the channel type in the database. Label = "channel" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldExtID holds the string denoting the ext_id field in the database. FieldExtID = "ext_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldImagePath holds the string denoting the image_path field in the database. FieldImagePath = "image_path" // FieldRetention holds the string denoting the retention field in the database. FieldRetention = "retention" // FieldRetentionDays holds the string denoting the retention_days field in the database. FieldRetentionDays = "retention_days" // 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" // EdgeVods holds the string denoting the vods edge name in mutations. EdgeVods = "vods" // EdgeLive holds the string denoting the live edge name in mutations. EdgeLive = "live" // Table holds the table name of the channel in the database. Table = "channels" // VodsTable is the table that holds the vods relation/edge. VodsTable = "vods" // VodsInverseTable is the table name for the Vod entity. // It exists in this package in order to avoid circular dependency with the "vod" package. VodsInverseTable = "vods" // VodsColumn is the table column denoting the vods relation/edge. VodsColumn = "channel_vods" // LiveTable is the table that holds the live relation/edge. LiveTable = "lives" // LiveInverseTable is the table name for the Live entity. // It exists in this package in order to avoid circular dependency with the "live" package. LiveInverseTable = "lives" // LiveColumn is the table column denoting the live relation/edge. LiveColumn = "channel_live" )
Variables ¶
var ( // DefaultRetention holds the default value on creation for the "retention" field. DefaultRetention 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, FieldExtID, FieldName, FieldDisplayName, FieldImagePath, FieldRetention, FieldRetentionDays, FieldUpdatedAt, FieldCreatedAt, }
Columns holds all SQL columns for channel 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 DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func ExtID ¶ added in v1.1.0
ExtID applies equality check predicate on the "ext_id" field. It's identical to ExtIDEQ.
func ExtIDContains ¶ added in v1.1.0
ExtIDContains applies the Contains predicate on the "ext_id" field.
func ExtIDContainsFold ¶ added in v1.1.0
ExtIDContainsFold applies the ContainsFold predicate on the "ext_id" field.
func ExtIDEqualFold ¶ added in v1.1.0
ExtIDEqualFold applies the EqualFold predicate on the "ext_id" field.
func ExtIDHasPrefix ¶ added in v1.1.0
ExtIDHasPrefix applies the HasPrefix predicate on the "ext_id" field.
func ExtIDHasSuffix ¶ added in v1.1.0
ExtIDHasSuffix applies the HasSuffix predicate on the "ext_id" field.
func ExtIDIsNil ¶ added in v1.1.0
ExtIDIsNil applies the IsNil predicate on the "ext_id" field.
func ExtIDNotIn ¶ added in v1.1.0
ExtIDNotIn applies the NotIn predicate on the "ext_id" field.
func ExtIDNotNil ¶ added in v1.1.0
ExtIDNotNil applies the NotNil predicate on the "ext_id" field.
func HasLiveWith ¶
HasLiveWith applies the HasEdge predicate on the "live" edge with a given conditions (other predicates).
func HasVodsWith ¶
HasVodsWith applies the HasEdge predicate on the "vods" edge with a given conditions (other predicates).
func ImagePath ¶
ImagePath applies equality check predicate on the "image_path" field. It's identical to ImagePathEQ.
func ImagePathContains ¶
ImagePathContains applies the Contains predicate on the "image_path" field.
func ImagePathContainsFold ¶
ImagePathContainsFold applies the ContainsFold predicate on the "image_path" field.
func ImagePathEQ ¶
ImagePathEQ applies the EQ predicate on the "image_path" field.
func ImagePathEqualFold ¶
ImagePathEqualFold applies the EqualFold predicate on the "image_path" field.
func ImagePathGT ¶
ImagePathGT applies the GT predicate on the "image_path" field.
func ImagePathGTE ¶
ImagePathGTE applies the GTE predicate on the "image_path" field.
func ImagePathHasPrefix ¶
ImagePathHasPrefix applies the HasPrefix predicate on the "image_path" field.
func ImagePathHasSuffix ¶
ImagePathHasSuffix applies the HasSuffix predicate on the "image_path" field.
func ImagePathIn ¶
ImagePathIn applies the In predicate on the "image_path" field.
func ImagePathLT ¶
ImagePathLT applies the LT predicate on the "image_path" field.
func ImagePathLTE ¶
ImagePathLTE applies the LTE predicate on the "image_path" field.
func ImagePathNEQ ¶
ImagePathNEQ applies the NEQ predicate on the "image_path" field.
func ImagePathNotIn ¶
ImagePathNotIn applies the NotIn predicate on the "image_path" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Retention ¶ added in v1.2.12
Retention applies equality check predicate on the "retention" field. It's identical to RetentionEQ.
func RetentionDays ¶ added in v1.2.12
RetentionDays applies equality check predicate on the "retention_days" field. It's identical to RetentionDaysEQ.
func RetentionDaysEQ ¶ added in v1.2.12
RetentionDaysEQ applies the EQ predicate on the "retention_days" field.
func RetentionDaysGT ¶ added in v1.2.12
RetentionDaysGT applies the GT predicate on the "retention_days" field.
func RetentionDaysGTE ¶ added in v1.2.12
RetentionDaysGTE applies the GTE predicate on the "retention_days" field.
func RetentionDaysIn ¶ added in v1.2.12
RetentionDaysIn applies the In predicate on the "retention_days" field.
func RetentionDaysIsNil ¶ added in v1.2.12
RetentionDaysIsNil applies the IsNil predicate on the "retention_days" field.
func RetentionDaysLT ¶ added in v1.2.12
RetentionDaysLT applies the LT predicate on the "retention_days" field.
func RetentionDaysLTE ¶ added in v1.2.12
RetentionDaysLTE applies the LTE predicate on the "retention_days" field.
func RetentionDaysNEQ ¶ added in v1.2.12
RetentionDaysNEQ applies the NEQ predicate on the "retention_days" field.
func RetentionDaysNotIn ¶ added in v1.2.12
RetentionDaysNotIn applies the NotIn predicate on the "retention_days" field.
func RetentionDaysNotNil ¶ added in v1.2.12
RetentionDaysNotNil applies the NotNil predicate on the "retention_days" field.
func RetentionEQ ¶ added in v1.2.12
RetentionEQ applies the EQ predicate on the "retention" field.
func RetentionNEQ ¶ added in v1.2.12
RetentionNEQ applies the NEQ predicate on the "retention" 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).
Types ¶
type OrderOption ¶ added in v1.2.12
OrderOption defines the ordering options for the Channel queries.
func ByCreatedAt ¶ added in v1.2.12
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDisplayName ¶ added in v1.2.12
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByExtID ¶ added in v1.2.12
func ByExtID(opts ...sql.OrderTermOption) OrderOption
ByExtID orders the results by the ext_id field.
func ByID ¶ added in v1.2.12
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImagePath ¶ added in v1.2.12
func ByImagePath(opts ...sql.OrderTermOption) OrderOption
ByImagePath orders the results by the image_path field.
func ByLive ¶ added in v1.2.12
func ByLive(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLive orders the results by live terms.
func ByLiveCount ¶ added in v1.2.12
func ByLiveCount(opts ...sql.OrderTermOption) OrderOption
ByLiveCount orders the results by live count.
func ByName ¶ added in v1.2.12
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRetention ¶ added in v1.2.12
func ByRetention(opts ...sql.OrderTermOption) OrderOption
ByRetention orders the results by the retention field.
func ByRetentionDays ¶ added in v1.2.12
func ByRetentionDays(opts ...sql.OrderTermOption) OrderOption
ByRetentionDays orders the results by the retention_days field.
func ByUpdatedAt ¶ added in v1.2.12
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVods ¶ added in v1.2.12
func ByVods(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVods orders the results by vods terms.
func ByVodsCount ¶ added in v1.2.12
func ByVodsCount(opts ...sql.OrderTermOption) OrderOption
ByVodsCount orders the results by vods count.