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 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 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
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" // 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" // 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" // 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" )
Variables ¶
var ( // 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 // 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, FieldIsLive, FieldArchiveChat, FieldResolution, FieldLastLive, 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 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 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).
Types ¶
This section is empty.