launchpad

package
v0.0.0-...-2ff182f Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the launchpad type in the database.
	Label = "launchpad"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIsReady holds the string denoting the is_ready field in the database.
	FieldIsReady = "is_ready"
	// FieldMinterContract holds the string denoting the minter_contract field in the database.
	FieldMinterContract = "minter_contract"
	// FieldWhitelistedSaleOpen holds the string denoting the whitelisted_sale_open field in the database.
	FieldWhitelistedSaleOpen = "whitelisted_sale_open"
	// FieldPublicSaleOpen holds the string denoting the public_sale_open field in the database.
	FieldPublicSaleOpen = "public_sale_open"
	// FieldIsSoldOut holds the string denoting the is_sold_out field in the database.
	FieldIsSoldOut = "is_sold_out"
	// FieldIsCanceled holds the string denoting the is_canceled field in the database.
	FieldIsCanceled = "is_canceled"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// Table holds the table name of the launchpad in the database.
	Table = "launchpads"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "launchpads"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_launchpad"
)

Variables

View Source
var (
	// DefaultIsReady holds the default value on creation for the "is_ready" field.
	DefaultIsReady bool
	// DefaultWhitelistedSaleOpen holds the default value on creation for the "whitelisted_sale_open" field.
	DefaultWhitelistedSaleOpen bool
	// DefaultPublicSaleOpen holds the default value on creation for the "public_sale_open" field.
	DefaultPublicSaleOpen bool
	// DefaultIsSoldOut holds the default value on creation for the "is_sold_out" field.
	DefaultIsSoldOut bool
	// DefaultIsCanceled holds the default value on creation for the "is_canceled" field.
	DefaultIsCanceled bool
)

Columns holds all SQL columns for launchpad fields.

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

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

Functions

func And

func And(predicates ...predicate.Launchpad) predicate.Launchpad

And groups predicates with the AND operator between them.

func HasProject

func HasProject() predicate.Launchpad

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Launchpad

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

func ID

func ID(id int) predicate.Launchpad

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Launchpad

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Launchpad

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Launchpad

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Launchpad

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Launchpad

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Launchpad

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsCanceled

func IsCanceled(v bool) predicate.Launchpad

IsCanceled applies equality check predicate on the "is_canceled" field. It's identical to IsCanceledEQ.

func IsCanceledEQ

func IsCanceledEQ(v bool) predicate.Launchpad

IsCanceledEQ applies the EQ predicate on the "is_canceled" field.

func IsCanceledNEQ

func IsCanceledNEQ(v bool) predicate.Launchpad

IsCanceledNEQ applies the NEQ predicate on the "is_canceled" field.

func IsReady

func IsReady(v bool) predicate.Launchpad

IsReady applies equality check predicate on the "is_ready" field. It's identical to IsReadyEQ.

func IsReadyEQ

func IsReadyEQ(v bool) predicate.Launchpad

IsReadyEQ applies the EQ predicate on the "is_ready" field.

func IsReadyNEQ

func IsReadyNEQ(v bool) predicate.Launchpad

IsReadyNEQ applies the NEQ predicate on the "is_ready" field.

func IsSoldOut

func IsSoldOut(v bool) predicate.Launchpad

IsSoldOut applies equality check predicate on the "is_sold_out" field. It's identical to IsSoldOutEQ.

func IsSoldOutEQ

func IsSoldOutEQ(v bool) predicate.Launchpad

IsSoldOutEQ applies the EQ predicate on the "is_sold_out" field.

func IsSoldOutNEQ

func IsSoldOutNEQ(v bool) predicate.Launchpad

IsSoldOutNEQ applies the NEQ predicate on the "is_sold_out" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Launchpad) predicate.Launchpad

Or groups predicates with the OR operator between them.

func PublicSaleOpen

func PublicSaleOpen(v bool) predicate.Launchpad

PublicSaleOpen applies equality check predicate on the "public_sale_open" field. It's identical to PublicSaleOpenEQ.

func PublicSaleOpenEQ

func PublicSaleOpenEQ(v bool) predicate.Launchpad

PublicSaleOpenEQ applies the EQ predicate on the "public_sale_open" field.

func PublicSaleOpenNEQ

func PublicSaleOpenNEQ(v bool) predicate.Launchpad

PublicSaleOpenNEQ applies the NEQ predicate on the "public_sale_open" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WhitelistedSaleOpen

func WhitelistedSaleOpen(v bool) predicate.Launchpad

WhitelistedSaleOpen applies equality check predicate on the "whitelisted_sale_open" field. It's identical to WhitelistedSaleOpenEQ.

func WhitelistedSaleOpenEQ

func WhitelistedSaleOpenEQ(v bool) predicate.Launchpad

WhitelistedSaleOpenEQ applies the EQ predicate on the "whitelisted_sale_open" field.

func WhitelistedSaleOpenNEQ

func WhitelistedSaleOpenNEQ(v bool) predicate.Launchpad

WhitelistedSaleOpenNEQ applies the NEQ predicate on the "whitelisted_sale_open" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Launchpad queries.

func ByID

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

ByID orders the results by the id field.

func ByIsCanceled

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

ByIsCanceled orders the results by the is_canceled field.

func ByIsReady

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

ByIsReady orders the results by the is_ready field.

func ByIsSoldOut

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

ByIsSoldOut orders the results by the is_sold_out field.

func ByProjectField

func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption

ByProjectField orders the results by project field.

func ByPublicSaleOpen

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

ByPublicSaleOpen orders the results by the public_sale_open field.

func ByWhitelistedSaleOpen

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

ByWhitelistedSaleOpen orders the results by the whitelisted_sale_open field.

Jump to

Keyboard shortcuts

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