Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Playback) predicate.Playback
- func CreatedAt(v time.Time) predicate.Playback
- func CreatedAtEQ(v time.Time) predicate.Playback
- func CreatedAtGT(v time.Time) predicate.Playback
- func CreatedAtGTE(v time.Time) predicate.Playback
- func CreatedAtIn(vs ...time.Time) predicate.Playback
- func CreatedAtLT(v time.Time) predicate.Playback
- func CreatedAtLTE(v time.Time) predicate.Playback
- func CreatedAtNEQ(v time.Time) predicate.Playback
- func CreatedAtNotIn(vs ...time.Time) predicate.Playback
- func ID(id uuid.UUID) predicate.Playback
- func IDEQ(id uuid.UUID) predicate.Playback
- func IDGT(id uuid.UUID) predicate.Playback
- func IDGTE(id uuid.UUID) predicate.Playback
- func IDIn(ids ...uuid.UUID) predicate.Playback
- func IDLT(id uuid.UUID) predicate.Playback
- func IDLTE(id uuid.UUID) predicate.Playback
- func IDNEQ(id uuid.UUID) predicate.Playback
- func IDNotIn(ids ...uuid.UUID) predicate.Playback
- func Not(p predicate.Playback) predicate.Playback
- func Or(predicates ...predicate.Playback) predicate.Playback
- func StatusEQ(v utils.PlaybackStatus) predicate.Playback
- func StatusIn(vs ...utils.PlaybackStatus) predicate.Playback
- func StatusIsNil() predicate.Playback
- func StatusNEQ(v utils.PlaybackStatus) predicate.Playback
- func StatusNotIn(vs ...utils.PlaybackStatus) predicate.Playback
- func StatusNotNil() predicate.Playback
- func StatusValidator(s utils.PlaybackStatus) error
- func Time(v int) predicate.Playback
- func TimeEQ(v int) predicate.Playback
- func TimeGT(v int) predicate.Playback
- func TimeGTE(v int) predicate.Playback
- func TimeIn(vs ...int) predicate.Playback
- func TimeLT(v int) predicate.Playback
- func TimeLTE(v int) predicate.Playback
- func TimeNEQ(v int) predicate.Playback
- func TimeNotIn(vs ...int) predicate.Playback
- func UpdatedAt(v time.Time) predicate.Playback
- func UpdatedAtEQ(v time.Time) predicate.Playback
- func UpdatedAtGT(v time.Time) predicate.Playback
- func UpdatedAtGTE(v time.Time) predicate.Playback
- func UpdatedAtIn(vs ...time.Time) predicate.Playback
- func UpdatedAtLT(v time.Time) predicate.Playback
- func UpdatedAtLTE(v time.Time) predicate.Playback
- func UpdatedAtNEQ(v time.Time) predicate.Playback
- func UpdatedAtNotIn(vs ...time.Time) predicate.Playback
- func UserID(v uuid.UUID) predicate.Playback
- func UserIDEQ(v uuid.UUID) predicate.Playback
- func UserIDGT(v uuid.UUID) predicate.Playback
- func UserIDGTE(v uuid.UUID) predicate.Playback
- func UserIDIn(vs ...uuid.UUID) predicate.Playback
- func UserIDLT(v uuid.UUID) predicate.Playback
- func UserIDLTE(v uuid.UUID) predicate.Playback
- func UserIDNEQ(v uuid.UUID) predicate.Playback
- func UserIDNotIn(vs ...uuid.UUID) predicate.Playback
- func ValidColumn(column string) bool
- func VodID(v uuid.UUID) predicate.Playback
- func VodIDEQ(v uuid.UUID) predicate.Playback
- func VodIDGT(v uuid.UUID) predicate.Playback
- func VodIDGTE(v uuid.UUID) predicate.Playback
- func VodIDIn(vs ...uuid.UUID) predicate.Playback
- func VodIDLT(v uuid.UUID) predicate.Playback
- func VodIDLTE(v uuid.UUID) predicate.Playback
- func VodIDNEQ(v uuid.UUID) predicate.Playback
- func VodIDNotIn(vs ...uuid.UUID) predicate.Playback
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTime(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByVodID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the playback type in the database. Label = "playback" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVodID holds the string denoting the vod_id field in the database. FieldVodID = "vod_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldTime holds the string denoting the time field in the database. FieldTime = "time" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // Table holds the table name of the playback in the database. Table = "playbacks" )
const DefaultStatus utils.PlaybackStatus = "in_progress"
Variables ¶
var ( // DefaultTime holds the default value on creation for the "time" field. DefaultTime int // 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, FieldVodID, FieldUserID, FieldTime, FieldStatus, FieldUpdatedAt, FieldCreatedAt, }
Columns holds all SQL columns for playback 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 StatusEQ ¶
func StatusEQ(v utils.PlaybackStatus) predicate.Playback
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...utils.PlaybackStatus) predicate.Playback
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v utils.PlaybackStatus) predicate.Playback
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...utils.PlaybackStatus) predicate.Playback
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s utils.PlaybackStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VodID ¶
VodID applies equality check predicate on the "vod_id" field. It's identical to VodIDEQ.
Types ¶
type OrderOption ¶ added in v1.2.12
OrderOption defines the ordering options for the Playback queries.
func ByCreatedAt ¶ added in v1.2.12
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶ added in v1.2.12
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByStatus ¶ added in v1.2.12
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTime ¶ added in v1.2.12
func ByTime(opts ...sql.OrderTermOption) OrderOption
ByTime orders the results by the time field.
func ByUpdatedAt ¶ added in v1.2.12
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶ added in v1.2.12
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByVodID ¶ added in v1.2.12
func ByVodID(opts ...sql.OrderTermOption) OrderOption
ByVodID orders the results by the vod_id field.