Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Playlist) predicate.Playlist
- func CreatedAt(v time.Time) predicate.Playlist
- func CreatedAtEQ(v time.Time) predicate.Playlist
- func CreatedAtGT(v time.Time) predicate.Playlist
- func CreatedAtGTE(v time.Time) predicate.Playlist
- func CreatedAtIn(vs ...time.Time) predicate.Playlist
- func CreatedAtLT(v time.Time) predicate.Playlist
- func CreatedAtLTE(v time.Time) predicate.Playlist
- func CreatedAtNEQ(v time.Time) predicate.Playlist
- func CreatedAtNotIn(vs ...time.Time) predicate.Playlist
- func Description(v string) predicate.Playlist
- func DescriptionContains(v string) predicate.Playlist
- func DescriptionContainsFold(v string) predicate.Playlist
- func DescriptionEQ(v string) predicate.Playlist
- func DescriptionEqualFold(v string) predicate.Playlist
- func DescriptionGT(v string) predicate.Playlist
- func DescriptionGTE(v string) predicate.Playlist
- func DescriptionHasPrefix(v string) predicate.Playlist
- func DescriptionHasSuffix(v string) predicate.Playlist
- func DescriptionIn(vs ...string) predicate.Playlist
- func DescriptionIsNil() predicate.Playlist
- func DescriptionLT(v string) predicate.Playlist
- func DescriptionLTE(v string) predicate.Playlist
- func DescriptionNEQ(v string) predicate.Playlist
- func DescriptionNotIn(vs ...string) predicate.Playlist
- func DescriptionNotNil() predicate.Playlist
- func HasVods() predicate.Playlist
- func HasVodsWith(preds ...predicate.Vod) predicate.Playlist
- func ID(id uuid.UUID) predicate.Playlist
- func IDEQ(id uuid.UUID) predicate.Playlist
- func IDGT(id uuid.UUID) predicate.Playlist
- func IDGTE(id uuid.UUID) predicate.Playlist
- func IDIn(ids ...uuid.UUID) predicate.Playlist
- func IDLT(id uuid.UUID) predicate.Playlist
- func IDLTE(id uuid.UUID) predicate.Playlist
- func IDNEQ(id uuid.UUID) predicate.Playlist
- func IDNotIn(ids ...uuid.UUID) predicate.Playlist
- func Name(v string) predicate.Playlist
- func NameContains(v string) predicate.Playlist
- func NameContainsFold(v string) predicate.Playlist
- func NameEQ(v string) predicate.Playlist
- func NameEqualFold(v string) predicate.Playlist
- func NameGT(v string) predicate.Playlist
- func NameGTE(v string) predicate.Playlist
- func NameHasPrefix(v string) predicate.Playlist
- func NameHasSuffix(v string) predicate.Playlist
- func NameIn(vs ...string) predicate.Playlist
- func NameLT(v string) predicate.Playlist
- func NameLTE(v string) predicate.Playlist
- func NameNEQ(v string) predicate.Playlist
- func NameNotIn(vs ...string) predicate.Playlist
- func Not(p predicate.Playlist) predicate.Playlist
- func Or(predicates ...predicate.Playlist) predicate.Playlist
- func ThumbnailPath(v string) predicate.Playlist
- func ThumbnailPathContains(v string) predicate.Playlist
- func ThumbnailPathContainsFold(v string) predicate.Playlist
- func ThumbnailPathEQ(v string) predicate.Playlist
- func ThumbnailPathEqualFold(v string) predicate.Playlist
- func ThumbnailPathGT(v string) predicate.Playlist
- func ThumbnailPathGTE(v string) predicate.Playlist
- func ThumbnailPathHasPrefix(v string) predicate.Playlist
- func ThumbnailPathHasSuffix(v string) predicate.Playlist
- func ThumbnailPathIn(vs ...string) predicate.Playlist
- func ThumbnailPathIsNil() predicate.Playlist
- func ThumbnailPathLT(v string) predicate.Playlist
- func ThumbnailPathLTE(v string) predicate.Playlist
- func ThumbnailPathNEQ(v string) predicate.Playlist
- func ThumbnailPathNotIn(vs ...string) predicate.Playlist
- func ThumbnailPathNotNil() predicate.Playlist
- func UpdatedAt(v time.Time) predicate.Playlist
- func UpdatedAtEQ(v time.Time) predicate.Playlist
- func UpdatedAtGT(v time.Time) predicate.Playlist
- func UpdatedAtGTE(v time.Time) predicate.Playlist
- func UpdatedAtIn(vs ...time.Time) predicate.Playlist
- func UpdatedAtLT(v time.Time) predicate.Playlist
- func UpdatedAtLTE(v time.Time) predicate.Playlist
- func UpdatedAtNEQ(v time.Time) predicate.Playlist
- func UpdatedAtNotIn(vs ...time.Time) predicate.Playlist
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByThumbnailPath(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 playlist type in the database. Label = "playlist" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldThumbnailPath holds the string denoting the thumbnail_path field in the database. FieldThumbnailPath = "thumbnail_path" // 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" // Table holds the table name of the playlist in the database. Table = "playlists" // VodsTable is the table that holds the vods relation/edge. The primary key declared below. VodsTable = "playlist_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" )
Variables ¶
var ( // 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, FieldName, FieldDescription, FieldThumbnailPath, FieldUpdatedAt, FieldCreatedAt, }
Columns holds all SQL columns for playlist fields.
var ( // VodsPrimaryKey and VodsColumn2 are the table columns denoting the // primary key for the vods relation (M2M). VodsPrimaryKey = []string{"playlist_id", "vod_id"} )
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 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 DescriptionIsNil ¶
DescriptionIsNil applies the IsNil 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 DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasVodsWith ¶
HasVodsWith applies the HasEdge predicate on the "vods" edge with a given conditions (other predicates).
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 ThumbnailPath ¶
ThumbnailPath applies equality check predicate on the "thumbnail_path" field. It's identical to ThumbnailPathEQ.
func ThumbnailPathContains ¶
ThumbnailPathContains applies the Contains predicate on the "thumbnail_path" field.
func ThumbnailPathContainsFold ¶
ThumbnailPathContainsFold applies the ContainsFold predicate on the "thumbnail_path" field.
func ThumbnailPathEQ ¶
ThumbnailPathEQ applies the EQ predicate on the "thumbnail_path" field.
func ThumbnailPathEqualFold ¶
ThumbnailPathEqualFold applies the EqualFold predicate on the "thumbnail_path" field.
func ThumbnailPathGT ¶
ThumbnailPathGT applies the GT predicate on the "thumbnail_path" field.
func ThumbnailPathGTE ¶
ThumbnailPathGTE applies the GTE predicate on the "thumbnail_path" field.
func ThumbnailPathHasPrefix ¶
ThumbnailPathHasPrefix applies the HasPrefix predicate on the "thumbnail_path" field.
func ThumbnailPathHasSuffix ¶
ThumbnailPathHasSuffix applies the HasSuffix predicate on the "thumbnail_path" field.
func ThumbnailPathIn ¶
ThumbnailPathIn applies the In predicate on the "thumbnail_path" field.
func ThumbnailPathIsNil ¶
ThumbnailPathIsNil applies the IsNil predicate on the "thumbnail_path" field.
func ThumbnailPathLT ¶
ThumbnailPathLT applies the LT predicate on the "thumbnail_path" field.
func ThumbnailPathLTE ¶
ThumbnailPathLTE applies the LTE predicate on the "thumbnail_path" field.
func ThumbnailPathNEQ ¶
ThumbnailPathNEQ applies the NEQ predicate on the "thumbnail_path" field.
func ThumbnailPathNotIn ¶
ThumbnailPathNotIn applies the NotIn predicate on the "thumbnail_path" field.
func ThumbnailPathNotNil ¶
ThumbnailPathNotNil applies the NotNil predicate on the "thumbnail_path" 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 Playlist queries.
func ByCreatedAt ¶ added in v1.2.12
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶ added in v1.2.12
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶ added in v1.2.12
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶ added in v1.2.12
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByThumbnailPath ¶ added in v1.2.12
func ByThumbnailPath(opts ...sql.OrderTermOption) OrderOption
ByThumbnailPath orders the results by the thumbnail_path 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.