campaign

package
v0.0.0-...-393e050 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for campaign fields.

Functions

func And

func And(predicates ...predicate.Campaign) predicate.Campaign

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Campaign

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Campaign

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Campaign

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Campaign

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Campaign

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Campaign

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Campaign

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Campaign

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Campaign

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CurrentSlot

func CurrentSlot(v int64) predicate.Campaign

CurrentSlot applies equality check predicate on the "current_slot" field. It's identical to CurrentSlotEQ.

func CurrentSlotEQ

func CurrentSlotEQ(v int64) predicate.Campaign

CurrentSlotEQ applies the EQ predicate on the "current_slot" field.

func CurrentSlotGT

func CurrentSlotGT(v int64) predicate.Campaign

CurrentSlotGT applies the GT predicate on the "current_slot" field.

func CurrentSlotGTE

func CurrentSlotGTE(v int64) predicate.Campaign

CurrentSlotGTE applies the GTE predicate on the "current_slot" field.

func CurrentSlotIn

func CurrentSlotIn(vs ...int64) predicate.Campaign

CurrentSlotIn applies the In predicate on the "current_slot" field.

func CurrentSlotLT

func CurrentSlotLT(v int64) predicate.Campaign

CurrentSlotLT applies the LT predicate on the "current_slot" field.

func CurrentSlotLTE

func CurrentSlotLTE(v int64) predicate.Campaign

CurrentSlotLTE applies the LTE predicate on the "current_slot" field.

func CurrentSlotNEQ

func CurrentSlotNEQ(v int64) predicate.Campaign

CurrentSlotNEQ applies the NEQ predicate on the "current_slot" field.

func CurrentSlotNotIn

func CurrentSlotNotIn(vs ...int64) predicate.Campaign

CurrentSlotNotIn applies the NotIn predicate on the "current_slot" field.

func EndDay

func EndDay(v time.Time) predicate.Campaign

EndDay applies equality check predicate on the "end_day" field. It's identical to EndDayEQ.

func EndDayEQ

func EndDayEQ(v time.Time) predicate.Campaign

EndDayEQ applies the EQ predicate on the "end_day" field.

func EndDayGT

func EndDayGT(v time.Time) predicate.Campaign

EndDayGT applies the GT predicate on the "end_day" field.

func EndDayGTE

func EndDayGTE(v time.Time) predicate.Campaign

EndDayGTE applies the GTE predicate on the "end_day" field.

func EndDayIn

func EndDayIn(vs ...time.Time) predicate.Campaign

EndDayIn applies the In predicate on the "end_day" field.

func EndDayLT

func EndDayLT(v time.Time) predicate.Campaign

EndDayLT applies the LT predicate on the "end_day" field.

func EndDayLTE

func EndDayLTE(v time.Time) predicate.Campaign

EndDayLTE applies the LTE predicate on the "end_day" field.

func EndDayNEQ

func EndDayNEQ(v time.Time) predicate.Campaign

EndDayNEQ applies the NEQ predicate on the "end_day" field.

func EndDayNotIn

func EndDayNotIn(vs ...time.Time) predicate.Campaign

EndDayNotIn applies the NotIn predicate on the "end_day" field.

func ID

func ID(id int) predicate.Campaign

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Campaign

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Campaign

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Campaign

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Campaign

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Campaign

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Campaign

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Campaign

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Campaign

IDNotIn applies the NotIn predicate on the ID field.

func IsFull

func IsFull(v bool) predicate.Campaign

IsFull applies equality check predicate on the "is_full" field. It's identical to IsFullEQ.

func IsFullEQ

func IsFullEQ(v bool) predicate.Campaign

IsFullEQ applies the EQ predicate on the "is_full" field.

func IsFullNEQ

func IsFullNEQ(v bool) predicate.Campaign

IsFullNEQ applies the NEQ predicate on the "is_full" field.

func Name

func Name(v string) predicate.Campaign

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Campaign

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Campaign

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Campaign

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Campaign

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Campaign

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Campaign

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Campaign

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Campaign

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Campaign

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Campaign

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Campaign

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Campaign

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Campaign

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Campaign) predicate.Campaign

Or groups predicates with the OR operator between them.

func StartDay

func StartDay(v time.Time) predicate.Campaign

StartDay applies equality check predicate on the "start_day" field. It's identical to StartDayEQ.

func StartDayEQ

func StartDayEQ(v time.Time) predicate.Campaign

StartDayEQ applies the EQ predicate on the "start_day" field.

func StartDayGT

func StartDayGT(v time.Time) predicate.Campaign

StartDayGT applies the GT predicate on the "start_day" field.

func StartDayGTE

func StartDayGTE(v time.Time) predicate.Campaign

StartDayGTE applies the GTE predicate on the "start_day" field.

func StartDayIn

func StartDayIn(vs ...time.Time) predicate.Campaign

StartDayIn applies the In predicate on the "start_day" field.

func StartDayLT

func StartDayLT(v time.Time) predicate.Campaign

StartDayLT applies the LT predicate on the "start_day" field.

func StartDayLTE

func StartDayLTE(v time.Time) predicate.Campaign

StartDayLTE applies the LTE predicate on the "start_day" field.

func StartDayNEQ

func StartDayNEQ(v time.Time) predicate.Campaign

StartDayNEQ applies the NEQ predicate on the "start_day" field.

func StartDayNotIn

func StartDayNotIn(vs ...time.Time) predicate.Campaign

StartDayNotIn applies the NotIn predicate on the "start_day" field.

func TotalSlot

func TotalSlot(v int64) predicate.Campaign

TotalSlot applies equality check predicate on the "total_slot" field. It's identical to TotalSlotEQ.

func TotalSlotEQ

func TotalSlotEQ(v int64) predicate.Campaign

TotalSlotEQ applies the EQ predicate on the "total_slot" field.

func TotalSlotGT

func TotalSlotGT(v int64) predicate.Campaign

TotalSlotGT applies the GT predicate on the "total_slot" field.

func TotalSlotGTE

func TotalSlotGTE(v int64) predicate.Campaign

TotalSlotGTE applies the GTE predicate on the "total_slot" field.

func TotalSlotIn

func TotalSlotIn(vs ...int64) predicate.Campaign

TotalSlotIn applies the In predicate on the "total_slot" field.

func TotalSlotLT

func TotalSlotLT(v int64) predicate.Campaign

TotalSlotLT applies the LT predicate on the "total_slot" field.

func TotalSlotLTE

func TotalSlotLTE(v int64) predicate.Campaign

TotalSlotLTE applies the LTE predicate on the "total_slot" field.

func TotalSlotNEQ

func TotalSlotNEQ(v int64) predicate.Campaign

TotalSlotNEQ applies the NEQ predicate on the "total_slot" field.

func TotalSlotNotIn

func TotalSlotNotIn(vs ...int64) predicate.Campaign

TotalSlotNotIn applies the NotIn predicate on the "total_slot" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Campaign

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Campaign

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Campaign

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Campaign

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Campaign

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Campaign

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Campaign

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Campaign

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Campaign

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL