Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Subscription) predicate.Subscription
- func CreateTime(v time.Time) predicate.Subscription
- func CreateTimeEQ(v time.Time) predicate.Subscription
- func CreateTimeGT(v time.Time) predicate.Subscription
- func CreateTimeGTE(v time.Time) predicate.Subscription
- func CreateTimeIn(vs ...time.Time) predicate.Subscription
- func CreateTimeLT(v time.Time) predicate.Subscription
- func CreateTimeLTE(v time.Time) predicate.Subscription
- func CreateTimeNEQ(v time.Time) predicate.Subscription
- func CreateTimeNotIn(vs ...time.Time) predicate.Subscription
- func HasMemo() predicate.Subscription
- func HasMemoWith(preds ...predicate.Memo) predicate.Subscription
- func HasSubscriber() predicate.Subscription
- func HasSubscriberWith(preds ...predicate.User) predicate.Subscription
- func ID(id int) predicate.Subscription
- func IDEQ(id int) predicate.Subscription
- func IDGT(id int) predicate.Subscription
- func IDGTE(id int) predicate.Subscription
- func IDIn(ids ...int) predicate.Subscription
- func IDLT(id int) predicate.Subscription
- func IDLTE(id int) predicate.Subscription
- func IDNEQ(id int) predicate.Subscription
- func IDNotIn(ids ...int) predicate.Subscription
- func MemoID(v uuid.UUID) predicate.Subscription
- func MemoIDEQ(v uuid.UUID) predicate.Subscription
- func MemoIDIn(vs ...uuid.UUID) predicate.Subscription
- func MemoIDNEQ(v uuid.UUID) predicate.Subscription
- func MemoIDNotIn(vs ...uuid.UUID) predicate.Subscription
- func Not(p predicate.Subscription) predicate.Subscription
- func Or(predicates ...predicate.Subscription) predicate.Subscription
- func UserID(v uuid.UUID) predicate.Subscription
- func UserIDEQ(v uuid.UUID) predicate.Subscription
- func UserIDIn(vs ...uuid.UUID) predicate.Subscription
- func UserIDNEQ(v uuid.UUID) predicate.Subscription
- func UserIDNotIn(vs ...uuid.UUID) predicate.Subscription
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMemoField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMemoID(opts ...sql.OrderTermOption) OrderOption
- func BySubscriberField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the subscription type in the database. Label = "subscription" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldMemoID holds the string denoting the memo_id field in the database. FieldMemoID = "memo_id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // EdgeSubscriber holds the string denoting the subscriber edge name in mutations. EdgeSubscriber = "subscriber" // EdgeMemo holds the string denoting the memo edge name in mutations. EdgeMemo = "memo" // Table holds the table name of the subscription in the database. Table = "subscriptions" // SubscriberTable is the table that holds the subscriber relation/edge. SubscriberTable = "subscriptions" // SubscriberInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. SubscriberInverseTable = "users" // SubscriberColumn is the table column denoting the subscriber relation/edge. SubscriberColumn = "user_id" // MemoTable is the table that holds the memo relation/edge. MemoTable = "subscriptions" // MemoInverseTable is the table name for the Memo entity. // It exists in this package in order to avoid circular dependency with the "memo" package. MemoInverseTable = "memos" // MemoColumn is the table column denoting the memo relation/edge. MemoColumn = "memo_id" )
Variables ¶
var Columns = []string{ FieldID, FieldUserID, FieldMemoID, FieldCreateTime, }
Columns holds all SQL columns for subscription fields.
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time )
Functions ¶
func And ¶
func And(predicates ...predicate.Subscription) predicate.Subscription
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.Subscription
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.Subscription
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.Subscription
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.Subscription
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.Subscription
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.Subscription
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.Subscription
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.Subscription
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.Subscription
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasMemo ¶
func HasMemo() predicate.Subscription
HasMemo applies the HasEdge predicate on the "memo" edge.
func HasMemoWith ¶
func HasMemoWith(preds ...predicate.Memo) predicate.Subscription
HasMemoWith applies the HasEdge predicate on the "memo" edge with a given conditions (other predicates).
func HasSubscriber ¶
func HasSubscriber() predicate.Subscription
HasSubscriber applies the HasEdge predicate on the "subscriber" edge.
func HasSubscriberWith ¶
func HasSubscriberWith(preds ...predicate.User) predicate.Subscription
HasSubscriberWith applies the HasEdge predicate on the "subscriber" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Subscription
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Subscription
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Subscription
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Subscription
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Subscription
IDNotIn applies the NotIn predicate on the ID field.
func MemoID ¶
func MemoID(v uuid.UUID) predicate.Subscription
MemoID applies equality check predicate on the "memo_id" field. It's identical to MemoIDEQ.
func MemoIDEQ ¶
func MemoIDEQ(v uuid.UUID) predicate.Subscription
MemoIDEQ applies the EQ predicate on the "memo_id" field.
func MemoIDIn ¶
func MemoIDIn(vs ...uuid.UUID) predicate.Subscription
MemoIDIn applies the In predicate on the "memo_id" field.
func MemoIDNEQ ¶
func MemoIDNEQ(v uuid.UUID) predicate.Subscription
MemoIDNEQ applies the NEQ predicate on the "memo_id" field.
func MemoIDNotIn ¶
func MemoIDNotIn(vs ...uuid.UUID) predicate.Subscription
MemoIDNotIn applies the NotIn predicate on the "memo_id" field.
func Not ¶
func Not(p predicate.Subscription) predicate.Subscription
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Subscription) predicate.Subscription
Or groups predicates with the OR operator between them.
func UserID ¶
func UserID(v uuid.UUID) predicate.Subscription
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.Subscription
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.Subscription
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.Subscription
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.Subscription
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Subscription queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMemoField ¶
func ByMemoField(field string, opts ...sql.OrderTermOption) OrderOption
ByMemoField orders the results by memo field.
func ByMemoID ¶
func ByMemoID(opts ...sql.OrderTermOption) OrderOption
ByMemoID orders the results by the memo_id field.
func BySubscriberField ¶
func BySubscriberField(field string, opts ...sql.OrderTermOption) OrderOption
BySubscriberField orders the results by subscriber field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.