Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Campaign) predicate.Campaign
- func CreatedAt(v time.Time) predicate.Campaign
- func CreatedAtEQ(v time.Time) predicate.Campaign
- func CreatedAtGT(v time.Time) predicate.Campaign
- func CreatedAtGTE(v time.Time) predicate.Campaign
- func CreatedAtIn(vs ...time.Time) predicate.Campaign
- func CreatedAtLT(v time.Time) predicate.Campaign
- func CreatedAtLTE(v time.Time) predicate.Campaign
- func CreatedAtNEQ(v time.Time) predicate.Campaign
- func CreatedAtNotIn(vs ...time.Time) predicate.Campaign
- func CurrentSlot(v int64) predicate.Campaign
- func CurrentSlotEQ(v int64) predicate.Campaign
- func CurrentSlotGT(v int64) predicate.Campaign
- func CurrentSlotGTE(v int64) predicate.Campaign
- func CurrentSlotIn(vs ...int64) predicate.Campaign
- func CurrentSlotLT(v int64) predicate.Campaign
- func CurrentSlotLTE(v int64) predicate.Campaign
- func CurrentSlotNEQ(v int64) predicate.Campaign
- func CurrentSlotNotIn(vs ...int64) predicate.Campaign
- func EndDay(v time.Time) predicate.Campaign
- func EndDayEQ(v time.Time) predicate.Campaign
- func EndDayGT(v time.Time) predicate.Campaign
- func EndDayGTE(v time.Time) predicate.Campaign
- func EndDayIn(vs ...time.Time) predicate.Campaign
- func EndDayLT(v time.Time) predicate.Campaign
- func EndDayLTE(v time.Time) predicate.Campaign
- func EndDayNEQ(v time.Time) predicate.Campaign
- func EndDayNotIn(vs ...time.Time) predicate.Campaign
- func ID(id int) predicate.Campaign
- func IDEQ(id int) predicate.Campaign
- func IDGT(id int) predicate.Campaign
- func IDGTE(id int) predicate.Campaign
- func IDIn(ids ...int) predicate.Campaign
- func IDLT(id int) predicate.Campaign
- func IDLTE(id int) predicate.Campaign
- func IDNEQ(id int) predicate.Campaign
- func IDNotIn(ids ...int) predicate.Campaign
- func IsFull(v bool) predicate.Campaign
- func IsFullEQ(v bool) predicate.Campaign
- func IsFullNEQ(v bool) predicate.Campaign
- func Name(v string) predicate.Campaign
- func NameContains(v string) predicate.Campaign
- func NameContainsFold(v string) predicate.Campaign
- func NameEQ(v string) predicate.Campaign
- func NameEqualFold(v string) predicate.Campaign
- func NameGT(v string) predicate.Campaign
- func NameGTE(v string) predicate.Campaign
- func NameHasPrefix(v string) predicate.Campaign
- func NameHasSuffix(v string) predicate.Campaign
- func NameIn(vs ...string) predicate.Campaign
- func NameLT(v string) predicate.Campaign
- func NameLTE(v string) predicate.Campaign
- func NameNEQ(v string) predicate.Campaign
- func NameNotIn(vs ...string) predicate.Campaign
- func Not(p predicate.Campaign) predicate.Campaign
- func Or(predicates ...predicate.Campaign) predicate.Campaign
- func StartDay(v time.Time) predicate.Campaign
- func StartDayEQ(v time.Time) predicate.Campaign
- func StartDayGT(v time.Time) predicate.Campaign
- func StartDayGTE(v time.Time) predicate.Campaign
- func StartDayIn(vs ...time.Time) predicate.Campaign
- func StartDayLT(v time.Time) predicate.Campaign
- func StartDayLTE(v time.Time) predicate.Campaign
- func StartDayNEQ(v time.Time) predicate.Campaign
- func StartDayNotIn(vs ...time.Time) predicate.Campaign
- func TotalSlot(v int64) predicate.Campaign
- func TotalSlotEQ(v int64) predicate.Campaign
- func TotalSlotGT(v int64) predicate.Campaign
- func TotalSlotGTE(v int64) predicate.Campaign
- func TotalSlotIn(vs ...int64) predicate.Campaign
- func TotalSlotLT(v int64) predicate.Campaign
- func TotalSlotLTE(v int64) predicate.Campaign
- func TotalSlotNEQ(v int64) predicate.Campaign
- func TotalSlotNotIn(vs ...int64) predicate.Campaign
- func UpdatedAt(v time.Time) predicate.Campaign
- func UpdatedAtEQ(v time.Time) predicate.Campaign
- func UpdatedAtGT(v time.Time) predicate.Campaign
- func UpdatedAtGTE(v time.Time) predicate.Campaign
- func UpdatedAtIn(vs ...time.Time) predicate.Campaign
- func UpdatedAtLT(v time.Time) predicate.Campaign
- func UpdatedAtLTE(v time.Time) predicate.Campaign
- func UpdatedAtNEQ(v time.Time) predicate.Campaign
- func UpdatedAtNotIn(vs ...time.Time) predicate.Campaign
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCurrentSlot(opts ...sql.OrderTermOption) OrderOption
- func ByEndDay(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsFull(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStartDay(opts ...sql.OrderTermOption) OrderOption
- func ByTotalSlot(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the campaign type in the database. Label = "campaign" // 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" // FieldCurrentSlot holds the string denoting the current_slot field in the database. FieldCurrentSlot = "current_slot" // FieldStartDay holds the string denoting the start_day field in the database. FieldStartDay = "start_day" // FieldEndDay holds the string denoting the end_day field in the database. FieldEndDay = "end_day" // FieldTotalSlot holds the string denoting the total_slot field in the database. FieldTotalSlot = "total_slot" // FieldIsFull holds the string denoting the is_full field in the database. FieldIsFull = "is_full" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the campaign in the database. Table = "campaigns" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt 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 )
var Columns = []string{ FieldID, FieldName, FieldCurrentSlot, FieldStartDay, FieldEndDay, FieldTotalSlot, FieldIsFull, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for campaign 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 CurrentSlot ¶
CurrentSlot applies equality check predicate on the "current_slot" field. It's identical to CurrentSlotEQ.
func CurrentSlotEQ ¶
CurrentSlotEQ applies the EQ predicate on the "current_slot" field.
func CurrentSlotGT ¶
CurrentSlotGT applies the GT predicate on the "current_slot" field.
func CurrentSlotGTE ¶
CurrentSlotGTE applies the GTE predicate on the "current_slot" field.
func CurrentSlotIn ¶
CurrentSlotIn applies the In predicate on the "current_slot" field.
func CurrentSlotLT ¶
CurrentSlotLT applies the LT predicate on the "current_slot" field.
func CurrentSlotLTE ¶
CurrentSlotLTE applies the LTE predicate on the "current_slot" field.
func CurrentSlotNEQ ¶
CurrentSlotNEQ applies the NEQ predicate on the "current_slot" field.
func CurrentSlotNotIn ¶
CurrentSlotNotIn applies the NotIn predicate on the "current_slot" field.
func EndDay ¶
EndDay applies equality check predicate on the "end_day" field. It's identical to EndDayEQ.
func EndDayNotIn ¶
EndDayNotIn applies the NotIn predicate on the "end_day" field.
func IsFull ¶
IsFull applies equality check predicate on the "is_full" field. It's identical to IsFullEQ.
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 StartDay ¶
StartDay applies equality check predicate on the "start_day" field. It's identical to StartDayEQ.
func StartDayEQ ¶
StartDayEQ applies the EQ predicate on the "start_day" field.
func StartDayGT ¶
StartDayGT applies the GT predicate on the "start_day" field.
func StartDayGTE ¶
StartDayGTE applies the GTE predicate on the "start_day" field.
func StartDayIn ¶
StartDayIn applies the In predicate on the "start_day" field.
func StartDayLT ¶
StartDayLT applies the LT predicate on the "start_day" field.
func StartDayLTE ¶
StartDayLTE applies the LTE predicate on the "start_day" field.
func StartDayNEQ ¶
StartDayNEQ applies the NEQ predicate on the "start_day" field.
func StartDayNotIn ¶
StartDayNotIn applies the NotIn predicate on the "start_day" field.
func TotalSlot ¶
TotalSlot applies equality check predicate on the "total_slot" field. It's identical to TotalSlotEQ.
func TotalSlotEQ ¶
TotalSlotEQ applies the EQ predicate on the "total_slot" field.
func TotalSlotGT ¶
TotalSlotGT applies the GT predicate on the "total_slot" field.
func TotalSlotGTE ¶
TotalSlotGTE applies the GTE predicate on the "total_slot" field.
func TotalSlotIn ¶
TotalSlotIn applies the In predicate on the "total_slot" field.
func TotalSlotLT ¶
TotalSlotLT applies the LT predicate on the "total_slot" field.
func TotalSlotLTE ¶
TotalSlotLTE applies the LTE predicate on the "total_slot" field.
func TotalSlotNEQ ¶
TotalSlotNEQ applies the NEQ predicate on the "total_slot" field.
func TotalSlotNotIn ¶
TotalSlotNotIn applies the NotIn predicate on the "total_slot" 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 ¶
OrderOption defines the ordering options for the Campaign queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCurrentSlot ¶
func ByCurrentSlot(opts ...sql.OrderTermOption) OrderOption
ByCurrentSlot orders the results by the current_slot field.
func ByEndDay ¶
func ByEndDay(opts ...sql.OrderTermOption) OrderOption
ByEndDay orders the results by the end_day field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsFull ¶
func ByIsFull(opts ...sql.OrderTermOption) OrderOption
ByIsFull orders the results by the is_full field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStartDay ¶
func ByStartDay(opts ...sql.OrderTermOption) OrderOption
ByStartDay orders the results by the start_day field.
func ByTotalSlot ¶
func ByTotalSlot(opts ...sql.OrderTermOption) OrderOption
ByTotalSlot orders the results by the total_slot field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.