Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Search) predicate.Search
- func Claimed(v bool) predicate.Search
- func ClaimedEQ(v bool) predicate.Search
- func ClaimedNEQ(v bool) predicate.Search
- func Greatness(v int) predicate.Search
- func GreatnessEQ(v int) predicate.Search
- func GreatnessGT(v int) predicate.Search
- func GreatnessGTE(v int) predicate.Search
- func GreatnessIn(vs ...int) predicate.Search
- func GreatnessIsNil() predicate.Search
- func GreatnessLT(v int) predicate.Search
- func GreatnessLTE(v int) predicate.Search
- func GreatnessNEQ(v int) predicate.Search
- func GreatnessNotIn(vs ...int) predicate.Search
- func GreatnessNotNil() predicate.Search
- func HasDope() predicate.Search
- func HasDopeWith(preds ...predicate.Dope) predicate.Search
- func HasHustler() predicate.Search
- func HasHustlerWith(preds ...predicate.Hustler) predicate.Search
- func HasItem() predicate.Search
- func HasItemWith(preds ...predicate.Item) predicate.Search
- func ID(id string) predicate.Search
- func IDEQ(id string) predicate.Search
- func IDGT(id string) predicate.Search
- func IDGTE(id string) predicate.Search
- func IDIn(ids ...string) predicate.Search
- func IDLT(id string) predicate.Search
- func IDLTE(id string) predicate.Search
- func IDNEQ(id string) predicate.Search
- func IDNotIn(ids ...string) predicate.Search
- func LastSalePrice(v schema.BigInt) predicate.Search
- func LastSalePriceEQ(v schema.BigInt) predicate.Search
- func LastSalePriceGT(v schema.BigInt) predicate.Search
- func LastSalePriceGTE(v schema.BigInt) predicate.Search
- func LastSalePriceIn(vs ...schema.BigInt) predicate.Search
- func LastSalePriceLT(v schema.BigInt) predicate.Search
- func LastSalePriceLTE(v schema.BigInt) predicate.Search
- func LastSalePriceNEQ(v schema.BigInt) predicate.Search
- func LastSalePriceNotIn(vs ...schema.BigInt) predicate.Search
- func Not(p predicate.Search) predicate.Search
- func Opened(v bool) predicate.Search
- func OpenedEQ(v bool) predicate.Search
- func OpenedNEQ(v bool) predicate.Search
- func Or(predicates ...predicate.Search) predicate.Search
- func SaleActive(v bool) predicate.Search
- func SaleActiveEQ(v bool) predicate.Search
- func SaleActiveNEQ(v bool) predicate.Search
- func SalePrice(v schema.BigInt) predicate.Search
- func SalePriceEQ(v schema.BigInt) predicate.Search
- func SalePriceGT(v schema.BigInt) predicate.Search
- func SalePriceGTE(v schema.BigInt) predicate.Search
- func SalePriceIn(vs ...schema.BigInt) predicate.Search
- func SalePriceLT(v schema.BigInt) predicate.Search
- func SalePriceLTE(v schema.BigInt) predicate.Search
- func SalePriceNEQ(v schema.BigInt) predicate.Search
- func SalePriceNotIn(vs ...schema.BigInt) predicate.Search
- func TypeEQ(v Type) predicate.Search
- func TypeIn(vs ...Type) predicate.Search
- func TypeNEQ(v Type) predicate.Search
- func TypeNotIn(vs ...Type) predicate.Search
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the search type in the database. Label = "search" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldGreatness holds the string denoting the greatness field in the database. FieldGreatness = "greatness" // FieldClaimed holds the string denoting the claimed field in the database. FieldClaimed = "claimed" // FieldOpened holds the string denoting the opened field in the database. FieldOpened = "opened" // FieldSaleActive holds the string denoting the sale_active field in the database. FieldSaleActive = "sale_active" // FieldSalePrice holds the string denoting the sale_price field in the database. FieldSalePrice = "sale_price" // FieldLastSalePrice holds the string denoting the last_sale_price field in the database. FieldLastSalePrice = "last_sale_price" // EdgeDope holds the string denoting the dope edge name in mutations. EdgeDope = "dope" // EdgeItem holds the string denoting the item edge name in mutations. EdgeItem = "item" // EdgeHustler holds the string denoting the hustler edge name in mutations. EdgeHustler = "hustler" // Table holds the table name of the search in the database. Table = "search_index" // DopeTable is the table that holds the dope relation/edge. DopeTable = "search_index" // DopeInverseTable is the table name for the Dope entity. // It exists in this package in order to avoid circular dependency with the "dope" package. DopeInverseTable = "dopes" // DopeColumn is the table column denoting the dope relation/edge. DopeColumn = "dope_index" // ItemTable is the table that holds the item relation/edge. ItemTable = "search_index" // ItemInverseTable is the table name for the Item entity. // It exists in this package in order to avoid circular dependency with the "item" package. ItemInverseTable = "items" // ItemColumn is the table column denoting the item relation/edge. ItemColumn = "item_index" // HustlerTable is the table that holds the hustler relation/edge. HustlerTable = "search_index" // HustlerInverseTable is the table name for the Hustler entity. // It exists in this package in order to avoid circular dependency with the "hustler" package. HustlerInverseTable = "hustlers" // HustlerColumn is the table column denoting the hustler relation/edge. HustlerColumn = "hustler_index" )
Variables ¶
var ( // DefaultSalePrice holds the default value on creation for the "sale_price" field. DefaultSalePrice func() schema.BigInt // DefaultLastSalePrice holds the default value on creation for the "last_sale_price" field. DefaultLastSalePrice func() schema.BigInt )
var Columns = []string{ FieldID, FieldType, FieldGreatness, FieldClaimed, FieldOpened, FieldSaleActive, FieldSalePrice, FieldLastSalePrice, }
Columns holds all SQL columns for search fields.
var ForeignKeys = []string{
"dope_index",
"hustler_index",
"item_index",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "search_index" table and are not defined as standalone fields in the schema.
Functions ¶
func Claimed ¶
Claimed applies equality check predicate on the "claimed" field. It's identical to ClaimedEQ.
func ClaimedNEQ ¶
ClaimedNEQ applies the NEQ predicate on the "claimed" field.
func Greatness ¶
Greatness applies equality check predicate on the "greatness" field. It's identical to GreatnessEQ.
func GreatnessEQ ¶
GreatnessEQ applies the EQ predicate on the "greatness" field.
func GreatnessGT ¶
GreatnessGT applies the GT predicate on the "greatness" field.
func GreatnessGTE ¶
GreatnessGTE applies the GTE predicate on the "greatness" field.
func GreatnessIn ¶
GreatnessIn applies the In predicate on the "greatness" field.
func GreatnessIsNil ¶
GreatnessIsNil applies the IsNil predicate on the "greatness" field.
func GreatnessLT ¶
GreatnessLT applies the LT predicate on the "greatness" field.
func GreatnessLTE ¶
GreatnessLTE applies the LTE predicate on the "greatness" field.
func GreatnessNEQ ¶
GreatnessNEQ applies the NEQ predicate on the "greatness" field.
func GreatnessNotIn ¶
GreatnessNotIn applies the NotIn predicate on the "greatness" field.
func GreatnessNotNil ¶
GreatnessNotNil applies the NotNil predicate on the "greatness" field.
func HasDopeWith ¶
HasDopeWith applies the HasEdge predicate on the "dope" edge with a given conditions (other predicates).
func HasHustler ¶
HasHustler applies the HasEdge predicate on the "hustler" edge.
func HasHustlerWith ¶
HasHustlerWith applies the HasEdge predicate on the "hustler" edge with a given conditions (other predicates).
func HasItemWith ¶
HasItemWith applies the HasEdge predicate on the "item" edge with a given conditions (other predicates).
func LastSalePrice ¶
LastSalePrice applies equality check predicate on the "last_sale_price" field. It's identical to LastSalePriceEQ.
func LastSalePriceEQ ¶
LastSalePriceEQ applies the EQ predicate on the "last_sale_price" field.
func LastSalePriceGT ¶
LastSalePriceGT applies the GT predicate on the "last_sale_price" field.
func LastSalePriceGTE ¶
LastSalePriceGTE applies the GTE predicate on the "last_sale_price" field.
func LastSalePriceIn ¶
LastSalePriceIn applies the In predicate on the "last_sale_price" field.
func LastSalePriceLT ¶
LastSalePriceLT applies the LT predicate on the "last_sale_price" field.
func LastSalePriceLTE ¶
LastSalePriceLTE applies the LTE predicate on the "last_sale_price" field.
func LastSalePriceNEQ ¶
LastSalePriceNEQ applies the NEQ predicate on the "last_sale_price" field.
func LastSalePriceNotIn ¶
LastSalePriceNotIn applies the NotIn predicate on the "last_sale_price" field.
func Opened ¶
Opened applies equality check predicate on the "opened" field. It's identical to OpenedEQ.
func SaleActive ¶
SaleActive applies equality check predicate on the "sale_active" field. It's identical to SaleActiveEQ.
func SaleActiveEQ ¶
SaleActiveEQ applies the EQ predicate on the "sale_active" field.
func SaleActiveNEQ ¶
SaleActiveNEQ applies the NEQ predicate on the "sale_active" field.
func SalePrice ¶
SalePrice applies equality check predicate on the "sale_price" field. It's identical to SalePriceEQ.
func SalePriceEQ ¶
SalePriceEQ applies the EQ predicate on the "sale_price" field.
func SalePriceGT ¶
SalePriceGT applies the GT predicate on the "sale_price" field.
func SalePriceGTE ¶
SalePriceGTE applies the GTE predicate on the "sale_price" field.
func SalePriceIn ¶
SalePriceIn applies the In predicate on the "sale_price" field.
func SalePriceLT ¶
SalePriceLT applies the LT predicate on the "sale_price" field.
func SalePriceLTE ¶
SalePriceLTE applies the LTE predicate on the "sale_price" field.
func SalePriceNEQ ¶
SalePriceNEQ applies the NEQ predicate on the "sale_price" field.
func SalePriceNotIn ¶
SalePriceNotIn applies the NotIn predicate on the "sale_price" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Type ¶
type Type string
Type defines the type for the "type" enum field.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.