pool

package
v0.0.0-...-11b8a5d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the pool type in the database.
	Label = "pool"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// FieldShares holds the string denoting the shares field in the database.
	FieldShares = "shares"
	// FieldBlockNumber holds the string denoting the block_number field in the database.
	FieldBlockNumber = "block_number"
	// FieldScore holds the string denoting the score field in the database.
	FieldScore = "score"
	// EdgePoolPasses holds the string denoting the pool_passes edge name in mutations.
	EdgePoolPasses = "pool_passes"
	// EdgeSqueak holds the string denoting the squeak edge name in mutations.
	EdgeSqueak = "squeak"
	// Table holds the table name of the pool in the database.
	Table = "pools"
	// PoolPassesTable is the table that holds the pool_passes relation/edge.
	PoolPassesTable = "pool_passes"
	// PoolPassesInverseTable is the table name for the PoolPass entity.
	// It exists in this package in order to avoid circular dependency with the "poolpass" package.
	PoolPassesInverseTable = "pool_passes"
	// PoolPassesColumn is the table column denoting the pool_passes relation/edge.
	PoolPassesColumn = "pool_pool_passes"
	// SqueakTable is the table that holds the squeak relation/edge.
	SqueakTable = "pools"
	// SqueakInverseTable is the table name for the Squeak entity.
	// It exists in this package in order to avoid circular dependency with the "squeak" package.
	SqueakInverseTable = "squeaks"
	// SqueakColumn is the table column denoting the squeak relation/edge.
	SqueakColumn = "squeak_pool"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for pool fields.

View Source
var ForeignKeys = []string{
	"squeak_pool",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "pools" table and are not defined as standalone fields in the schema.

Functions

func Amount

func Amount(v *types.Uint256) predicate.Pool

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

func AmountEQ(v *types.Uint256) predicate.Pool

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

func AmountGT(v *types.Uint256) predicate.Pool

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v *types.Uint256) predicate.Pool

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...*types.Uint256) predicate.Pool

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v *types.Uint256) predicate.Pool

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v *types.Uint256) predicate.Pool

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v *types.Uint256) predicate.Pool

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...*types.Uint256) predicate.Pool

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

func And(predicates ...predicate.Pool) predicate.Pool

And groups predicates with the AND operator between them.

func BlockNumber

func BlockNumber(v *types.Uint256) predicate.Pool

BlockNumber applies equality check predicate on the "block_number" field. It's identical to BlockNumberEQ.

func BlockNumberEQ

func BlockNumberEQ(v *types.Uint256) predicate.Pool

BlockNumberEQ applies the EQ predicate on the "block_number" field.

func BlockNumberGT

func BlockNumberGT(v *types.Uint256) predicate.Pool

BlockNumberGT applies the GT predicate on the "block_number" field.

func BlockNumberGTE

func BlockNumberGTE(v *types.Uint256) predicate.Pool

BlockNumberGTE applies the GTE predicate on the "block_number" field.

func BlockNumberIn

func BlockNumberIn(vs ...*types.Uint256) predicate.Pool

BlockNumberIn applies the In predicate on the "block_number" field.

func BlockNumberLT

func BlockNumberLT(v *types.Uint256) predicate.Pool

BlockNumberLT applies the LT predicate on the "block_number" field.

func BlockNumberLTE

func BlockNumberLTE(v *types.Uint256) predicate.Pool

BlockNumberLTE applies the LTE predicate on the "block_number" field.

func BlockNumberNEQ

func BlockNumberNEQ(v *types.Uint256) predicate.Pool

BlockNumberNEQ applies the NEQ predicate on the "block_number" field.

func BlockNumberNotIn

func BlockNumberNotIn(vs ...*types.Uint256) predicate.Pool

BlockNumberNotIn applies the NotIn predicate on the "block_number" field.

func CreateTime

func CreateTime(v time.Time) predicate.Pool

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Pool

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Pool

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Pool

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Pool

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Pool

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Pool

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Pool

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Pool

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasPoolPasses

func HasPoolPasses() predicate.Pool

HasPoolPasses applies the HasEdge predicate on the "pool_passes" edge.

func HasPoolPassesWith

func HasPoolPassesWith(preds ...predicate.PoolPass) predicate.Pool

HasPoolPassesWith applies the HasEdge predicate on the "pool_passes" edge with a given conditions (other predicates).

func HasSqueak

func HasSqueak() predicate.Pool

HasSqueak applies the HasEdge predicate on the "squeak" edge.

func HasSqueakWith

func HasSqueakWith(preds ...predicate.Squeak) predicate.Pool

HasSqueakWith applies the HasEdge predicate on the "squeak" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Pool

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Pool

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Pool

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Pool

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Pool

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Pool

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Pool

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Pool) predicate.Pool

Or groups predicates with the OR operator between them.

func Score

func Score(v int) predicate.Pool

Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.

func ScoreEQ

func ScoreEQ(v int) predicate.Pool

ScoreEQ applies the EQ predicate on the "score" field.

func ScoreGT

func ScoreGT(v int) predicate.Pool

ScoreGT applies the GT predicate on the "score" field.

func ScoreGTE

func ScoreGTE(v int) predicate.Pool

ScoreGTE applies the GTE predicate on the "score" field.

func ScoreIn

func ScoreIn(vs ...int) predicate.Pool

ScoreIn applies the In predicate on the "score" field.

func ScoreLT

func ScoreLT(v int) predicate.Pool

ScoreLT applies the LT predicate on the "score" field.

func ScoreLTE

func ScoreLTE(v int) predicate.Pool

ScoreLTE applies the LTE predicate on the "score" field.

func ScoreNEQ

func ScoreNEQ(v int) predicate.Pool

ScoreNEQ applies the NEQ predicate on the "score" field.

func ScoreNotIn

func ScoreNotIn(vs ...int) predicate.Pool

ScoreNotIn applies the NotIn predicate on the "score" field.

func Shares

func Shares(v *types.Uint256) predicate.Pool

Shares applies equality check predicate on the "shares" field. It's identical to SharesEQ.

func SharesEQ

func SharesEQ(v *types.Uint256) predicate.Pool

SharesEQ applies the EQ predicate on the "shares" field.

func SharesGT

func SharesGT(v *types.Uint256) predicate.Pool

SharesGT applies the GT predicate on the "shares" field.

func SharesGTE

func SharesGTE(v *types.Uint256) predicate.Pool

SharesGTE applies the GTE predicate on the "shares" field.

func SharesIn

func SharesIn(vs ...*types.Uint256) predicate.Pool

SharesIn applies the In predicate on the "shares" field.

func SharesLT

func SharesLT(v *types.Uint256) predicate.Pool

SharesLT applies the LT predicate on the "shares" field.

func SharesLTE

func SharesLTE(v *types.Uint256) predicate.Pool

SharesLTE applies the LTE predicate on the "shares" field.

func SharesNEQ

func SharesNEQ(v *types.Uint256) predicate.Pool

SharesNEQ applies the NEQ predicate on the "shares" field.

func SharesNotIn

func SharesNotIn(vs ...*types.Uint256) predicate.Pool

SharesNotIn applies the NotIn predicate on the "shares" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Pool

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Pool

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Pool

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Pool

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Pool

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Pool

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Pool

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Pool

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Pool

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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