Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VoucherCampaign) predicate.VoucherCampaign
- func CampaignID(v int64) predicate.VoucherCampaign
- func CampaignIDEQ(v int64) predicate.VoucherCampaign
- func CampaignIDGT(v int64) predicate.VoucherCampaign
- func CampaignIDGTE(v int64) predicate.VoucherCampaign
- func CampaignIDIn(vs ...int64) predicate.VoucherCampaign
- func CampaignIDLT(v int64) predicate.VoucherCampaign
- func CampaignIDLTE(v int64) predicate.VoucherCampaign
- func CampaignIDNEQ(v int64) predicate.VoucherCampaign
- func CampaignIDNotIn(vs ...int64) predicate.VoucherCampaign
- func CreatedAt(v time.Time) predicate.VoucherCampaign
- func CreatedAtEQ(v time.Time) predicate.VoucherCampaign
- func CreatedAtGT(v time.Time) predicate.VoucherCampaign
- func CreatedAtGTE(v time.Time) predicate.VoucherCampaign
- func CreatedAtIn(vs ...time.Time) predicate.VoucherCampaign
- func CreatedAtLT(v time.Time) predicate.VoucherCampaign
- func CreatedAtLTE(v time.Time) predicate.VoucherCampaign
- func CreatedAtNEQ(v time.Time) predicate.VoucherCampaign
- func CreatedAtNotIn(vs ...time.Time) predicate.VoucherCampaign
- func ID(id int) predicate.VoucherCampaign
- func IDEQ(id int) predicate.VoucherCampaign
- func IDGT(id int) predicate.VoucherCampaign
- func IDGTE(id int) predicate.VoucherCampaign
- func IDIn(ids ...int) predicate.VoucherCampaign
- func IDLT(id int) predicate.VoucherCampaign
- func IDLTE(id int) predicate.VoucherCampaign
- func IDNEQ(id int) predicate.VoucherCampaign
- func IDNotIn(ids ...int) predicate.VoucherCampaign
- func Not(p predicate.VoucherCampaign) predicate.VoucherCampaign
- func Or(predicates ...predicate.VoucherCampaign) predicate.VoucherCampaign
- func StartDay(v time.Time) predicate.VoucherCampaign
- func StartDayEQ(v time.Time) predicate.VoucherCampaign
- func StartDayGT(v time.Time) predicate.VoucherCampaign
- func StartDayGTE(v time.Time) predicate.VoucherCampaign
- func StartDayIn(vs ...time.Time) predicate.VoucherCampaign
- func StartDayLT(v time.Time) predicate.VoucherCampaign
- func StartDayLTE(v time.Time) predicate.VoucherCampaign
- func StartDayNEQ(v time.Time) predicate.VoucherCampaign
- func StartDayNotIn(vs ...time.Time) predicate.VoucherCampaign
- func UpdatedAt(v time.Time) predicate.VoucherCampaign
- func UpdatedAtEQ(v time.Time) predicate.VoucherCampaign
- func UpdatedAtGT(v time.Time) predicate.VoucherCampaign
- func UpdatedAtGTE(v time.Time) predicate.VoucherCampaign
- func UpdatedAtIn(vs ...time.Time) predicate.VoucherCampaign
- func UpdatedAtLT(v time.Time) predicate.VoucherCampaign
- func UpdatedAtLTE(v time.Time) predicate.VoucherCampaign
- func UpdatedAtNEQ(v time.Time) predicate.VoucherCampaign
- func UpdatedAtNotIn(vs ...time.Time) predicate.VoucherCampaign
- func ValidColumn(column string) bool
- func ValidTo(v time.Time) predicate.VoucherCampaign
- func ValidToEQ(v time.Time) predicate.VoucherCampaign
- func ValidToGT(v time.Time) predicate.VoucherCampaign
- func ValidToGTE(v time.Time) predicate.VoucherCampaign
- func ValidToIn(vs ...time.Time) predicate.VoucherCampaign
- func ValidToLT(v time.Time) predicate.VoucherCampaign
- func ValidToLTE(v time.Time) predicate.VoucherCampaign
- func ValidToNEQ(v time.Time) predicate.VoucherCampaign
- func ValidToNotIn(vs ...time.Time) predicate.VoucherCampaign
- func VoucherID(v int64) predicate.VoucherCampaign
- func VoucherIDEQ(v int64) predicate.VoucherCampaign
- func VoucherIDGT(v int64) predicate.VoucherCampaign
- func VoucherIDGTE(v int64) predicate.VoucherCampaign
- func VoucherIDIn(vs ...int64) predicate.VoucherCampaign
- func VoucherIDLT(v int64) predicate.VoucherCampaign
- func VoucherIDLTE(v int64) predicate.VoucherCampaign
- func VoucherIDNEQ(v int64) predicate.VoucherCampaign
- func VoucherIDNotIn(vs ...int64) predicate.VoucherCampaign
- type OrderOption
- func ByCampaignID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByStartDay(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByValidTo(opts ...sql.OrderTermOption) OrderOption
- func ByVoucherID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the vouchercampaign type in the database. Label = "voucher_campaign" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCampaignID holds the string denoting the campaign_id field in the database. FieldCampaignID = "campaign_id" // FieldVoucherID holds the string denoting the voucher_id field in the database. FieldVoucherID = "voucher_id" // FieldStartDay holds the string denoting the start_day field in the database. FieldStartDay = "start_day" // FieldValidTo holds the string denoting the valid_to field in the database. FieldValidTo = "valid_to" // 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 vouchercampaign in the database. Table = "voucher_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, FieldCampaignID, FieldVoucherID, FieldStartDay, FieldValidTo, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for vouchercampaign fields.
Functions ¶
func And ¶
func And(predicates ...predicate.VoucherCampaign) predicate.VoucherCampaign
And groups predicates with the AND operator between them.
func CampaignID ¶
func CampaignID(v int64) predicate.VoucherCampaign
CampaignID applies equality check predicate on the "campaign_id" field. It's identical to CampaignIDEQ.
func CampaignIDEQ ¶
func CampaignIDEQ(v int64) predicate.VoucherCampaign
CampaignIDEQ applies the EQ predicate on the "campaign_id" field.
func CampaignIDGT ¶
func CampaignIDGT(v int64) predicate.VoucherCampaign
CampaignIDGT applies the GT predicate on the "campaign_id" field.
func CampaignIDGTE ¶
func CampaignIDGTE(v int64) predicate.VoucherCampaign
CampaignIDGTE applies the GTE predicate on the "campaign_id" field.
func CampaignIDIn ¶
func CampaignIDIn(vs ...int64) predicate.VoucherCampaign
CampaignIDIn applies the In predicate on the "campaign_id" field.
func CampaignIDLT ¶
func CampaignIDLT(v int64) predicate.VoucherCampaign
CampaignIDLT applies the LT predicate on the "campaign_id" field.
func CampaignIDLTE ¶
func CampaignIDLTE(v int64) predicate.VoucherCampaign
CampaignIDLTE applies the LTE predicate on the "campaign_id" field.
func CampaignIDNEQ ¶
func CampaignIDNEQ(v int64) predicate.VoucherCampaign
CampaignIDNEQ applies the NEQ predicate on the "campaign_id" field.
func CampaignIDNotIn ¶
func CampaignIDNotIn(vs ...int64) predicate.VoucherCampaign
CampaignIDNotIn applies the NotIn predicate on the "campaign_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.VoucherCampaign
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.VoucherCampaign
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.VoucherCampaign
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.VoucherCampaign
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.VoucherCampaign
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.VoucherCampaign
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.VoucherCampaign
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.VoucherCampaign
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.VoucherCampaign
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDEQ ¶
func IDEQ(id int) predicate.VoucherCampaign
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.VoucherCampaign
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.VoucherCampaign
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.VoucherCampaign
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.VoucherCampaign
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.VoucherCampaign
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.VoucherCampaign
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.VoucherCampaign
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.VoucherCampaign) predicate.VoucherCampaign
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.VoucherCampaign) predicate.VoucherCampaign
Or groups predicates with the OR operator between them.
func StartDay ¶
func StartDay(v time.Time) predicate.VoucherCampaign
StartDay applies equality check predicate on the "start_day" field. It's identical to StartDayEQ.
func StartDayEQ ¶
func StartDayEQ(v time.Time) predicate.VoucherCampaign
StartDayEQ applies the EQ predicate on the "start_day" field.
func StartDayGT ¶
func StartDayGT(v time.Time) predicate.VoucherCampaign
StartDayGT applies the GT predicate on the "start_day" field.
func StartDayGTE ¶
func StartDayGTE(v time.Time) predicate.VoucherCampaign
StartDayGTE applies the GTE predicate on the "start_day" field.
func StartDayIn ¶
func StartDayIn(vs ...time.Time) predicate.VoucherCampaign
StartDayIn applies the In predicate on the "start_day" field.
func StartDayLT ¶
func StartDayLT(v time.Time) predicate.VoucherCampaign
StartDayLT applies the LT predicate on the "start_day" field.
func StartDayLTE ¶
func StartDayLTE(v time.Time) predicate.VoucherCampaign
StartDayLTE applies the LTE predicate on the "start_day" field.
func StartDayNEQ ¶
func StartDayNEQ(v time.Time) predicate.VoucherCampaign
StartDayNEQ applies the NEQ predicate on the "start_day" field.
func StartDayNotIn ¶
func StartDayNotIn(vs ...time.Time) predicate.VoucherCampaign
StartDayNotIn applies the NotIn predicate on the "start_day" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.VoucherCampaign
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.VoucherCampaign
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.VoucherCampaign
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.VoucherCampaign
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.VoucherCampaign
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.VoucherCampaign
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.VoucherCampaign
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.VoucherCampaign
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.VoucherCampaign
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).
func ValidTo ¶
func ValidTo(v time.Time) predicate.VoucherCampaign
ValidTo applies equality check predicate on the "valid_to" field. It's identical to ValidToEQ.
func ValidToEQ ¶
func ValidToEQ(v time.Time) predicate.VoucherCampaign
ValidToEQ applies the EQ predicate on the "valid_to" field.
func ValidToGT ¶
func ValidToGT(v time.Time) predicate.VoucherCampaign
ValidToGT applies the GT predicate on the "valid_to" field.
func ValidToGTE ¶
func ValidToGTE(v time.Time) predicate.VoucherCampaign
ValidToGTE applies the GTE predicate on the "valid_to" field.
func ValidToIn ¶
func ValidToIn(vs ...time.Time) predicate.VoucherCampaign
ValidToIn applies the In predicate on the "valid_to" field.
func ValidToLT ¶
func ValidToLT(v time.Time) predicate.VoucherCampaign
ValidToLT applies the LT predicate on the "valid_to" field.
func ValidToLTE ¶
func ValidToLTE(v time.Time) predicate.VoucherCampaign
ValidToLTE applies the LTE predicate on the "valid_to" field.
func ValidToNEQ ¶
func ValidToNEQ(v time.Time) predicate.VoucherCampaign
ValidToNEQ applies the NEQ predicate on the "valid_to" field.
func ValidToNotIn ¶
func ValidToNotIn(vs ...time.Time) predicate.VoucherCampaign
ValidToNotIn applies the NotIn predicate on the "valid_to" field.
func VoucherID ¶
func VoucherID(v int64) predicate.VoucherCampaign
VoucherID applies equality check predicate on the "voucher_id" field. It's identical to VoucherIDEQ.
func VoucherIDEQ ¶
func VoucherIDEQ(v int64) predicate.VoucherCampaign
VoucherIDEQ applies the EQ predicate on the "voucher_id" field.
func VoucherIDGT ¶
func VoucherIDGT(v int64) predicate.VoucherCampaign
VoucherIDGT applies the GT predicate on the "voucher_id" field.
func VoucherIDGTE ¶
func VoucherIDGTE(v int64) predicate.VoucherCampaign
VoucherIDGTE applies the GTE predicate on the "voucher_id" field.
func VoucherIDIn ¶
func VoucherIDIn(vs ...int64) predicate.VoucherCampaign
VoucherIDIn applies the In predicate on the "voucher_id" field.
func VoucherIDLT ¶
func VoucherIDLT(v int64) predicate.VoucherCampaign
VoucherIDLT applies the LT predicate on the "voucher_id" field.
func VoucherIDLTE ¶
func VoucherIDLTE(v int64) predicate.VoucherCampaign
VoucherIDLTE applies the LTE predicate on the "voucher_id" field.
func VoucherIDNEQ ¶
func VoucherIDNEQ(v int64) predicate.VoucherCampaign
VoucherIDNEQ applies the NEQ predicate on the "voucher_id" field.
func VoucherIDNotIn ¶
func VoucherIDNotIn(vs ...int64) predicate.VoucherCampaign
VoucherIDNotIn applies the NotIn predicate on the "voucher_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the VoucherCampaign queries.
func ByCampaignID ¶
func ByCampaignID(opts ...sql.OrderTermOption) OrderOption
ByCampaignID orders the results by the campaign_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByStartDay ¶
func ByStartDay(opts ...sql.OrderTermOption) OrderOption
ByStartDay orders the results by the start_day field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByValidTo ¶
func ByValidTo(opts ...sql.OrderTermOption) OrderOption
ByValidTo orders the results by the valid_to field.
func ByVoucherID ¶
func ByVoucherID(opts ...sql.OrderTermOption) OrderOption
ByVoucherID orders the results by the voucher_id field.