Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Listing
- func ActiveEQ(v bool) predicate.Listing
- func ActiveNEQ(v bool) predicate.Listing
- func And(predicates ...predicate.Listing) predicate.Listing
- func HasDope() predicate.Listing
- func HasDopeLastsales() predicate.Listing
- func HasDopeLastsalesWith(preds ...predicate.Dope) predicate.Listing
- func HasDopeWith(preds ...predicate.Dope) predicate.Listing
- func HasInputs() predicate.Listing
- func HasInputsWith(preds ...predicate.Amount) predicate.Listing
- func HasOutputs() predicate.Listing
- func HasOutputsWith(preds ...predicate.Amount) predicate.Listing
- func ID(id string) predicate.Listing
- func IDEQ(id string) predicate.Listing
- func IDGT(id string) predicate.Listing
- func IDGTE(id string) predicate.Listing
- func IDIn(ids ...string) predicate.Listing
- func IDLT(id string) predicate.Listing
- func IDLTE(id string) predicate.Listing
- func IDNEQ(id string) predicate.Listing
- func IDNotIn(ids ...string) predicate.Listing
- func Not(p predicate.Listing) predicate.Listing
- func Or(predicates ...predicate.Listing) predicate.Listing
- func SeaportOrderIsNil() predicate.Listing
- func SeaportOrderNotNil() predicate.Listing
- func SourceEQ(v Source) predicate.Listing
- func SourceIn(vs ...Source) predicate.Listing
- func SourceNEQ(v Source) predicate.Listing
- func SourceNotIn(vs ...Source) predicate.Listing
- func SourceValidator(s Source) error
- func ValidColumn(column string) bool
- func WyvernOrderIsNil() predicate.Listing
- func WyvernOrderNotNil() predicate.Listing
- type Source
Constants ¶
const ( // Label holds the string label denoting the listing type in the database. Label = "listing" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldWyvernOrder holds the string denoting the wyvern_order field in the database. FieldWyvernOrder = "wyvern_order" // FieldSeaportOrder holds the string denoting the seaport_order field in the database. FieldSeaportOrder = "seaport_order" // EdgeDope holds the string denoting the dope edge name in mutations. EdgeDope = "dope" // EdgeDopeLastsales holds the string denoting the dope_lastsales edge name in mutations. EdgeDopeLastsales = "dope_lastsales" // EdgeInputs holds the string denoting the inputs edge name in mutations. EdgeInputs = "inputs" // EdgeOutputs holds the string denoting the outputs edge name in mutations. EdgeOutputs = "outputs" // Table holds the table name of the listing in the database. Table = "listings" // DopeTable is the table that holds the dope relation/edge. DopeTable = "listings" // 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_listings" // DopeLastsalesTable is the table that holds the dope_lastsales relation/edge. DopeLastsalesTable = "dopes" // DopeLastsalesInverseTable is the table name for the Dope entity. // It exists in this package in order to avoid circular dependency with the "dope" package. DopeLastsalesInverseTable = "dopes" // DopeLastsalesColumn is the table column denoting the dope_lastsales relation/edge. DopeLastsalesColumn = "listing_dope_lastsales" // InputsTable is the table that holds the inputs relation/edge. InputsTable = "amounts" // InputsInverseTable is the table name for the Amount entity. // It exists in this package in order to avoid circular dependency with the "amount" package. InputsInverseTable = "amounts" // InputsColumn is the table column denoting the inputs relation/edge. InputsColumn = "listing_inputs" // OutputsTable is the table that holds the outputs relation/edge. OutputsTable = "amounts" // OutputsInverseTable is the table name for the Amount entity. // It exists in this package in order to avoid circular dependency with the "amount" package. OutputsInverseTable = "amounts" // OutputsColumn is the table column denoting the outputs relation/edge. OutputsColumn = "listing_outputs" )
Variables ¶
var Columns = []string{ FieldID, FieldActive, FieldSource, FieldWyvernOrder, FieldSeaportOrder, }
Columns holds all SQL columns for listing fields.
var ForeignKeys = []string{
"dope_listings",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "listings" table and are not defined as standalone fields in the schema.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func HasDopeLastsales ¶
HasDopeLastsales applies the HasEdge predicate on the "dope_lastsales" edge.
func HasDopeLastsalesWith ¶
HasDopeLastsalesWith applies the HasEdge predicate on the "dope_lastsales" edge with a given conditions (other predicates).
func HasDopeWith ¶
HasDopeWith applies the HasEdge predicate on the "dope" edge with a given conditions (other predicates).
func HasInputsWith ¶
HasInputsWith applies the HasEdge predicate on the "inputs" edge with a given conditions (other predicates).
func HasOutputs ¶
HasOutputs applies the HasEdge predicate on the "outputs" edge.
func HasOutputsWith ¶
HasOutputsWith applies the HasEdge predicate on the "outputs" edge with a given conditions (other predicates).
func SeaportOrderIsNil ¶
SeaportOrderIsNil applies the IsNil predicate on the "seaport_order" field.
func SeaportOrderNotNil ¶
SeaportOrderNotNil applies the NotNil predicate on the "seaport_order" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func SourceValidator ¶
SourceValidator is a validator for the "source" 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).
func WyvernOrderIsNil ¶
WyvernOrderIsNil applies the IsNil predicate on the "wyvern_order" field.
func WyvernOrderNotNil ¶
WyvernOrderNotNil applies the NotNil predicate on the "wyvern_order" field.
Types ¶
type Source ¶
type Source string
Source defines the type for the "source" enum field.
func (Source) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Source) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.