Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Launchpad) predicate.Launchpad
- func HasProject() predicate.Launchpad
- func HasProjectWith(preds ...predicate.Project) predicate.Launchpad
- func ID(id int) predicate.Launchpad
- func IDEQ(id int) predicate.Launchpad
- func IDGT(id int) predicate.Launchpad
- func IDGTE(id int) predicate.Launchpad
- func IDIn(ids ...int) predicate.Launchpad
- func IDLT(id int) predicate.Launchpad
- func IDLTE(id int) predicate.Launchpad
- func IDNEQ(id int) predicate.Launchpad
- func IDNotIn(ids ...int) predicate.Launchpad
- func IsCanceled(v bool) predicate.Launchpad
- func IsCanceledEQ(v bool) predicate.Launchpad
- func IsCanceledNEQ(v bool) predicate.Launchpad
- func IsReady(v bool) predicate.Launchpad
- func IsReadyEQ(v bool) predicate.Launchpad
- func IsReadyNEQ(v bool) predicate.Launchpad
- func IsSoldOut(v bool) predicate.Launchpad
- func IsSoldOutEQ(v bool) predicate.Launchpad
- func IsSoldOutNEQ(v bool) predicate.Launchpad
- func Not(p predicate.Launchpad) predicate.Launchpad
- func Or(predicates ...predicate.Launchpad) predicate.Launchpad
- func PublicSaleOpen(v bool) predicate.Launchpad
- func PublicSaleOpenEQ(v bool) predicate.Launchpad
- func PublicSaleOpenNEQ(v bool) predicate.Launchpad
- func ValidColumn(column string) bool
- func WhitelistedSaleOpen(v bool) predicate.Launchpad
- func WhitelistedSaleOpenEQ(v bool) predicate.Launchpad
- func WhitelistedSaleOpenNEQ(v bool) predicate.Launchpad
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsCanceled(opts ...sql.OrderTermOption) OrderOption
- func ByIsReady(opts ...sql.OrderTermOption) OrderOption
- func ByIsSoldOut(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPublicSaleOpen(opts ...sql.OrderTermOption) OrderOption
- func ByWhitelistedSaleOpen(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldIsReady, FieldMinterContract, FieldWhitelistedSaleOpen, FieldPublicSaleOpen, FieldIsSoldOut, FieldIsCanceled, }
Columns holds all SQL columns for launchpad fields.
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 HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func IsCanceled ¶
IsCanceled applies equality check predicate on the "is_canceled" field. It's identical to IsCanceledEQ.
func IsCanceledEQ ¶
IsCanceledEQ applies the EQ predicate on the "is_canceled" field.
func IsCanceledNEQ ¶
IsCanceledNEQ applies the NEQ predicate on the "is_canceled" field.
func IsReady ¶
IsReady applies equality check predicate on the "is_ready" field. It's identical to IsReadyEQ.
func IsReadyNEQ ¶
IsReadyNEQ applies the NEQ predicate on the "is_ready" field.
func IsSoldOut ¶
IsSoldOut applies equality check predicate on the "is_sold_out" field. It's identical to IsSoldOutEQ.
func IsSoldOutEQ ¶
IsSoldOutEQ applies the EQ predicate on the "is_sold_out" field.
func IsSoldOutNEQ ¶
IsSoldOutNEQ applies the NEQ predicate on the "is_sold_out" field.
func PublicSaleOpen ¶
PublicSaleOpen applies equality check predicate on the "public_sale_open" field. It's identical to PublicSaleOpenEQ.
func PublicSaleOpenEQ ¶
PublicSaleOpenEQ applies the EQ predicate on the "public_sale_open" field.
func PublicSaleOpenNEQ ¶
PublicSaleOpenNEQ applies the NEQ predicate on the "public_sale_open" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WhitelistedSaleOpen ¶
WhitelistedSaleOpen applies equality check predicate on the "whitelisted_sale_open" field. It's identical to WhitelistedSaleOpenEQ.
func WhitelistedSaleOpenEQ ¶
WhitelistedSaleOpenEQ applies the EQ predicate on the "whitelisted_sale_open" field.
func WhitelistedSaleOpenNEQ ¶
WhitelistedSaleOpenNEQ applies the NEQ predicate on the "whitelisted_sale_open" field.
Types ¶
type OrderOption ¶
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.