icoround

package
v0.0.0-...-5b7c39b Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the icoround type in the database.
	Label = "ico_round"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldRoundID holds the string denoting the round_id field in the database.
	FieldRoundID = "round_id"
	// FieldSubRound holds the string denoting the sub_round field in the database.
	FieldSubRound = "sub_round"
	// FieldPrice holds the string denoting the price field in the database.
	FieldPrice = "price"
	// FieldNumToken holds the string denoting the num_token field in the database.
	FieldNumToken = "num_token"
	// FieldBoughtToken holds the string denoting the bought_token field in the database.
	FieldBoughtToken = "bought_token"
	// FieldStartAt holds the string denoting the start_at field in the database.
	FieldStartAt = "start_at"
	// FieldEndAt holds the string denoting the end_at field in the database.
	FieldEndAt = "end_at"
	// FieldIsClose holds the string denoting the is_close field in the database.
	FieldIsClose = "is_close"
	// Table holds the table name of the icoround in the database.
	Table = "ico_rounds"
)

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
	// DefaultIsClose holds the default value on creation for the "is_close" field.
	DefaultIsClose bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
)

Columns holds all SQL columns for icoround fields.

Functions

func And

func And(predicates ...predicate.IcoRound) predicate.IcoRound

And groups predicates with the AND operator between them.

func BoughtToken

func BoughtToken(v string) predicate.IcoRound

BoughtToken applies equality check predicate on the "bought_token" field. It's identical to BoughtTokenEQ.

func BoughtTokenContains

func BoughtTokenContains(v string) predicate.IcoRound

BoughtTokenContains applies the Contains predicate on the "bought_token" field.

func BoughtTokenContainsFold

func BoughtTokenContainsFold(v string) predicate.IcoRound

BoughtTokenContainsFold applies the ContainsFold predicate on the "bought_token" field.

func BoughtTokenEQ

func BoughtTokenEQ(v string) predicate.IcoRound

BoughtTokenEQ applies the EQ predicate on the "bought_token" field.

func BoughtTokenEqualFold

func BoughtTokenEqualFold(v string) predicate.IcoRound

BoughtTokenEqualFold applies the EqualFold predicate on the "bought_token" field.

func BoughtTokenGT

func BoughtTokenGT(v string) predicate.IcoRound

BoughtTokenGT applies the GT predicate on the "bought_token" field.

func BoughtTokenGTE

func BoughtTokenGTE(v string) predicate.IcoRound

BoughtTokenGTE applies the GTE predicate on the "bought_token" field.

func BoughtTokenHasPrefix

func BoughtTokenHasPrefix(v string) predicate.IcoRound

BoughtTokenHasPrefix applies the HasPrefix predicate on the "bought_token" field.

func BoughtTokenHasSuffix

func BoughtTokenHasSuffix(v string) predicate.IcoRound

BoughtTokenHasSuffix applies the HasSuffix predicate on the "bought_token" field.

func BoughtTokenIn

func BoughtTokenIn(vs ...string) predicate.IcoRound

BoughtTokenIn applies the In predicate on the "bought_token" field.

func BoughtTokenLT

func BoughtTokenLT(v string) predicate.IcoRound

BoughtTokenLT applies the LT predicate on the "bought_token" field.

func BoughtTokenLTE

func BoughtTokenLTE(v string) predicate.IcoRound

BoughtTokenLTE applies the LTE predicate on the "bought_token" field.

func BoughtTokenNEQ

func BoughtTokenNEQ(v string) predicate.IcoRound

BoughtTokenNEQ applies the NEQ predicate on the "bought_token" field.

func BoughtTokenNotIn

func BoughtTokenNotIn(vs ...string) predicate.IcoRound

BoughtTokenNotIn applies the NotIn predicate on the "bought_token" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.IcoRound

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.IcoRound

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.IcoRound

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.IcoRound

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.IcoRound

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.IcoRound

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.IcoRound

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

func CreatedAtNotIn

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

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

func EndAt

func EndAt(v time.Time) predicate.IcoRound

EndAt applies equality check predicate on the "end_at" field. It's identical to EndAtEQ.

func EndAtEQ

func EndAtEQ(v time.Time) predicate.IcoRound

EndAtEQ applies the EQ predicate on the "end_at" field.

func EndAtGT

func EndAtGT(v time.Time) predicate.IcoRound

EndAtGT applies the GT predicate on the "end_at" field.

func EndAtGTE

func EndAtGTE(v time.Time) predicate.IcoRound

EndAtGTE applies the GTE predicate on the "end_at" field.

func EndAtIn

func EndAtIn(vs ...time.Time) predicate.IcoRound

EndAtIn applies the In predicate on the "end_at" field.

func EndAtIsNil

func EndAtIsNil() predicate.IcoRound

EndAtIsNil applies the IsNil predicate on the "end_at" field.

func EndAtLT

func EndAtLT(v time.Time) predicate.IcoRound

EndAtLT applies the LT predicate on the "end_at" field.

func EndAtLTE

func EndAtLTE(v time.Time) predicate.IcoRound

EndAtLTE applies the LTE predicate on the "end_at" field.

func EndAtNEQ

func EndAtNEQ(v time.Time) predicate.IcoRound

EndAtNEQ applies the NEQ predicate on the "end_at" field.

func EndAtNotIn

func EndAtNotIn(vs ...time.Time) predicate.IcoRound

EndAtNotIn applies the NotIn predicate on the "end_at" field.

func EndAtNotNil

func EndAtNotNil() predicate.IcoRound

EndAtNotNil applies the NotNil predicate on the "end_at" field.

func ID

func ID(id xid.ID) predicate.IcoRound

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.IcoRound

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.IcoRound

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.IcoRound

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.IcoRound

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.IcoRound

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.IcoRound

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.IcoRound

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.IcoRound

IDNotIn applies the NotIn predicate on the ID field.

func IsClose

func IsClose(v bool) predicate.IcoRound

IsClose applies equality check predicate on the "is_close" field. It's identical to IsCloseEQ.

func IsCloseEQ

func IsCloseEQ(v bool) predicate.IcoRound

IsCloseEQ applies the EQ predicate on the "is_close" field.

func IsCloseNEQ

func IsCloseNEQ(v bool) predicate.IcoRound

IsCloseNEQ applies the NEQ predicate on the "is_close" field.

func Not

Not applies the not operator on the given predicate.

func NumToken

func NumToken(v string) predicate.IcoRound

NumToken applies equality check predicate on the "num_token" field. It's identical to NumTokenEQ.

func NumTokenContains

func NumTokenContains(v string) predicate.IcoRound

NumTokenContains applies the Contains predicate on the "num_token" field.

func NumTokenContainsFold

func NumTokenContainsFold(v string) predicate.IcoRound

NumTokenContainsFold applies the ContainsFold predicate on the "num_token" field.

func NumTokenEQ

func NumTokenEQ(v string) predicate.IcoRound

NumTokenEQ applies the EQ predicate on the "num_token" field.

func NumTokenEqualFold

func NumTokenEqualFold(v string) predicate.IcoRound

NumTokenEqualFold applies the EqualFold predicate on the "num_token" field.

func NumTokenGT

func NumTokenGT(v string) predicate.IcoRound

NumTokenGT applies the GT predicate on the "num_token" field.

func NumTokenGTE

func NumTokenGTE(v string) predicate.IcoRound

NumTokenGTE applies the GTE predicate on the "num_token" field.

func NumTokenHasPrefix

func NumTokenHasPrefix(v string) predicate.IcoRound

NumTokenHasPrefix applies the HasPrefix predicate on the "num_token" field.

func NumTokenHasSuffix

func NumTokenHasSuffix(v string) predicate.IcoRound

NumTokenHasSuffix applies the HasSuffix predicate on the "num_token" field.

func NumTokenIn

func NumTokenIn(vs ...string) predicate.IcoRound

NumTokenIn applies the In predicate on the "num_token" field.

func NumTokenLT

func NumTokenLT(v string) predicate.IcoRound

NumTokenLT applies the LT predicate on the "num_token" field.

func NumTokenLTE

func NumTokenLTE(v string) predicate.IcoRound

NumTokenLTE applies the LTE predicate on the "num_token" field.

func NumTokenNEQ

func NumTokenNEQ(v string) predicate.IcoRound

NumTokenNEQ applies the NEQ predicate on the "num_token" field.

func NumTokenNotIn

func NumTokenNotIn(vs ...string) predicate.IcoRound

NumTokenNotIn applies the NotIn predicate on the "num_token" field.

func Or

func Or(predicates ...predicate.IcoRound) predicate.IcoRound

Or groups predicates with the OR operator between them.

func Price

func Price(v string) predicate.IcoRound

Price applies equality check predicate on the "price" field. It's identical to PriceEQ.

func PriceContains

func PriceContains(v string) predicate.IcoRound

PriceContains applies the Contains predicate on the "price" field.

func PriceContainsFold

func PriceContainsFold(v string) predicate.IcoRound

PriceContainsFold applies the ContainsFold predicate on the "price" field.

func PriceEQ

func PriceEQ(v string) predicate.IcoRound

PriceEQ applies the EQ predicate on the "price" field.

func PriceEqualFold

func PriceEqualFold(v string) predicate.IcoRound

PriceEqualFold applies the EqualFold predicate on the "price" field.

func PriceGT

func PriceGT(v string) predicate.IcoRound

PriceGT applies the GT predicate on the "price" field.

func PriceGTE

func PriceGTE(v string) predicate.IcoRound

PriceGTE applies the GTE predicate on the "price" field.

func PriceHasPrefix

func PriceHasPrefix(v string) predicate.IcoRound

PriceHasPrefix applies the HasPrefix predicate on the "price" field.

func PriceHasSuffix

func PriceHasSuffix(v string) predicate.IcoRound

PriceHasSuffix applies the HasSuffix predicate on the "price" field.

func PriceIn

func PriceIn(vs ...string) predicate.IcoRound

PriceIn applies the In predicate on the "price" field.

func PriceLT

func PriceLT(v string) predicate.IcoRound

PriceLT applies the LT predicate on the "price" field.

func PriceLTE

func PriceLTE(v string) predicate.IcoRound

PriceLTE applies the LTE predicate on the "price" field.

func PriceNEQ

func PriceNEQ(v string) predicate.IcoRound

PriceNEQ applies the NEQ predicate on the "price" field.

func PriceNotIn

func PriceNotIn(vs ...string) predicate.IcoRound

PriceNotIn applies the NotIn predicate on the "price" field.

func RoundID

func RoundID(v int32) predicate.IcoRound

RoundID applies equality check predicate on the "round_id" field. It's identical to RoundIDEQ.

func RoundIDEQ

func RoundIDEQ(v int32) predicate.IcoRound

RoundIDEQ applies the EQ predicate on the "round_id" field.

func RoundIDGT

func RoundIDGT(v int32) predicate.IcoRound

RoundIDGT applies the GT predicate on the "round_id" field.

func RoundIDGTE

func RoundIDGTE(v int32) predicate.IcoRound

RoundIDGTE applies the GTE predicate on the "round_id" field.

func RoundIDIn

func RoundIDIn(vs ...int32) predicate.IcoRound

RoundIDIn applies the In predicate on the "round_id" field.

func RoundIDLT

func RoundIDLT(v int32) predicate.IcoRound

RoundIDLT applies the LT predicate on the "round_id" field.

func RoundIDLTE

func RoundIDLTE(v int32) predicate.IcoRound

RoundIDLTE applies the LTE predicate on the "round_id" field.

func RoundIDNEQ

func RoundIDNEQ(v int32) predicate.IcoRound

RoundIDNEQ applies the NEQ predicate on the "round_id" field.

func RoundIDNotIn

func RoundIDNotIn(vs ...int32) predicate.IcoRound

RoundIDNotIn applies the NotIn predicate on the "round_id" field.

func StartAt

func StartAt(v time.Time) predicate.IcoRound

StartAt applies equality check predicate on the "start_at" field. It's identical to StartAtEQ.

func StartAtEQ

func StartAtEQ(v time.Time) predicate.IcoRound

StartAtEQ applies the EQ predicate on the "start_at" field.

func StartAtGT

func StartAtGT(v time.Time) predicate.IcoRound

StartAtGT applies the GT predicate on the "start_at" field.

func StartAtGTE

func StartAtGTE(v time.Time) predicate.IcoRound

StartAtGTE applies the GTE predicate on the "start_at" field.

func StartAtIn

func StartAtIn(vs ...time.Time) predicate.IcoRound

StartAtIn applies the In predicate on the "start_at" field.

func StartAtIsNil

func StartAtIsNil() predicate.IcoRound

StartAtIsNil applies the IsNil predicate on the "start_at" field.

func StartAtLT

func StartAtLT(v time.Time) predicate.IcoRound

StartAtLT applies the LT predicate on the "start_at" field.

func StartAtLTE

func StartAtLTE(v time.Time) predicate.IcoRound

StartAtLTE applies the LTE predicate on the "start_at" field.

func StartAtNEQ

func StartAtNEQ(v time.Time) predicate.IcoRound

StartAtNEQ applies the NEQ predicate on the "start_at" field.

func StartAtNotIn

func StartAtNotIn(vs ...time.Time) predicate.IcoRound

StartAtNotIn applies the NotIn predicate on the "start_at" field.

func StartAtNotNil

func StartAtNotNil() predicate.IcoRound

StartAtNotNil applies the NotNil predicate on the "start_at" field.

func SubRound

func SubRound(v int32) predicate.IcoRound

SubRound applies equality check predicate on the "sub_round" field. It's identical to SubRoundEQ.

func SubRoundEQ

func SubRoundEQ(v int32) predicate.IcoRound

SubRoundEQ applies the EQ predicate on the "sub_round" field.

func SubRoundGT

func SubRoundGT(v int32) predicate.IcoRound

SubRoundGT applies the GT predicate on the "sub_round" field.

func SubRoundGTE

func SubRoundGTE(v int32) predicate.IcoRound

SubRoundGTE applies the GTE predicate on the "sub_round" field.

func SubRoundIn

func SubRoundIn(vs ...int32) predicate.IcoRound

SubRoundIn applies the In predicate on the "sub_round" field.

func SubRoundLT

func SubRoundLT(v int32) predicate.IcoRound

SubRoundLT applies the LT predicate on the "sub_round" field.

func SubRoundLTE

func SubRoundLTE(v int32) predicate.IcoRound

SubRoundLTE applies the LTE predicate on the "sub_round" field.

func SubRoundNEQ

func SubRoundNEQ(v int32) predicate.IcoRound

SubRoundNEQ applies the NEQ predicate on the "sub_round" field.

func SubRoundNotIn

func SubRoundNotIn(vs ...int32) predicate.IcoRound

SubRoundNotIn applies the NotIn predicate on the "sub_round" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.IcoRound

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.IcoRound

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.IcoRound

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.IcoRound

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.IcoRound

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.IcoRound

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.IcoRound

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

func UpdatedAtNotIn

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

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 IcoRound queries.

func ByBoughtToken

func ByBoughtToken(opts ...sql.OrderTermOption) OrderOption

ByBoughtToken orders the results by the bought_token field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByEndAt

func ByEndAt(opts ...sql.OrderTermOption) OrderOption

ByEndAt orders the results by the end_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIsClose

func ByIsClose(opts ...sql.OrderTermOption) OrderOption

ByIsClose orders the results by the is_close field.

func ByNumToken

func ByNumToken(opts ...sql.OrderTermOption) OrderOption

ByNumToken orders the results by the num_token field.

func ByPrice

func ByPrice(opts ...sql.OrderTermOption) OrderOption

ByPrice orders the results by the price field.

func ByRoundID

func ByRoundID(opts ...sql.OrderTermOption) OrderOption

ByRoundID orders the results by the round_id field.

func ByStartAt

func ByStartAt(opts ...sql.OrderTermOption) OrderOption

ByStartAt orders the results by the start_at field.

func BySubRound

func BySubRound(opts ...sql.OrderTermOption) OrderOption

BySubRound orders the results by the sub_round 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