Documentation ¶
Index ¶
- Constants
- Variables
- func Amount(v schema.BigInt) predicate.Amount
- func AmountEQ(v schema.BigInt) predicate.Amount
- func AmountGT(v schema.BigInt) predicate.Amount
- func AmountGTE(v schema.BigInt) predicate.Amount
- func AmountIn(vs ...schema.BigInt) predicate.Amount
- func AmountLT(v schema.BigInt) predicate.Amount
- func AmountLTE(v schema.BigInt) predicate.Amount
- func AmountNEQ(v schema.BigInt) predicate.Amount
- func AmountNotIn(vs ...schema.BigInt) predicate.Amount
- func And(predicates ...predicate.Amount) predicate.Amount
- func AssetID(v schema.BigInt) predicate.Amount
- func AssetIDEQ(v schema.BigInt) predicate.Amount
- func AssetIDGT(v schema.BigInt) predicate.Amount
- func AssetIDGTE(v schema.BigInt) predicate.Amount
- func AssetIDIn(vs ...schema.BigInt) predicate.Amount
- func AssetIDLT(v schema.BigInt) predicate.Amount
- func AssetIDLTE(v schema.BigInt) predicate.Amount
- func AssetIDNEQ(v schema.BigInt) predicate.Amount
- func AssetIDNotIn(vs ...schema.BigInt) predicate.Amount
- func HasListingInput() predicate.Amount
- func HasListingInputWith(preds ...predicate.Listing) predicate.Amount
- func HasListingOutput() predicate.Amount
- func HasListingOutputWith(preds ...predicate.Listing) predicate.Amount
- func ID(id string) predicate.Amount
- func IDEQ(id string) predicate.Amount
- func IDGT(id string) predicate.Amount
- func IDGTE(id string) predicate.Amount
- func IDIn(ids ...string) predicate.Amount
- func IDLT(id string) predicate.Amount
- func IDLTE(id string) predicate.Amount
- func IDNEQ(id string) predicate.Amount
- func IDNotIn(ids ...string) predicate.Amount
- func Not(p predicate.Amount) predicate.Amount
- func Or(predicates ...predicate.Amount) predicate.Amount
- func TypeEQ(v Type) predicate.Amount
- func TypeIn(vs ...Type) predicate.Amount
- func TypeNEQ(v Type) predicate.Amount
- func TypeNotIn(vs ...Type) predicate.Amount
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the amount type in the database. Label = "amount" // 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" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldAssetID holds the string denoting the asset_id field in the database. FieldAssetID = "asset_id" // EdgeListingInput holds the string denoting the listing_input edge name in mutations. EdgeListingInput = "listing_input" // EdgeListingOutput holds the string denoting the listing_output edge name in mutations. EdgeListingOutput = "listing_output" // Table holds the table name of the amount in the database. Table = "amounts" // ListingInputTable is the table that holds the listing_input relation/edge. ListingInputTable = "amounts" // ListingInputInverseTable is the table name for the Listing entity. // It exists in this package in order to avoid circular dependency with the "listing" package. ListingInputInverseTable = "listings" // ListingInputColumn is the table column denoting the listing_input relation/edge. ListingInputColumn = "listing_inputs" // ListingOutputTable is the table that holds the listing_output relation/edge. ListingOutputTable = "amounts" // ListingOutputInverseTable is the table name for the Listing entity. // It exists in this package in order to avoid circular dependency with the "listing" package. ListingOutputInverseTable = "listings" // ListingOutputColumn is the table column denoting the listing_output relation/edge. ListingOutputColumn = "listing_outputs" )
Variables ¶
var ( // DefaultAmount holds the default value on creation for the "amount" field. DefaultAmount func() schema.BigInt // DefaultAssetID holds the default value on creation for the "asset_id" field. DefaultAssetID func() schema.BigInt )
var Columns = []string{ FieldID, FieldType, FieldAmount, FieldAssetID, }
Columns holds all SQL columns for amount fields.
var ForeignKeys = []string{
"listing_inputs",
"listing_outputs",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "amounts" table and are not defined as standalone fields in the schema.
Functions ¶
func Amount ¶
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountNotIn ¶
AmountNotIn applies the NotIn predicate on the "amount" field.
func AssetID ¶
AssetID applies equality check predicate on the "asset_id" field. It's identical to AssetIDEQ.
func AssetIDGTE ¶
AssetIDGTE applies the GTE predicate on the "asset_id" field.
func AssetIDLTE ¶
AssetIDLTE applies the LTE predicate on the "asset_id" field.
func AssetIDNEQ ¶
AssetIDNEQ applies the NEQ predicate on the "asset_id" field.
func AssetIDNotIn ¶
AssetIDNotIn applies the NotIn predicate on the "asset_id" field.
func HasListingInput ¶
HasListingInput applies the HasEdge predicate on the "listing_input" edge.
func HasListingInputWith ¶
HasListingInputWith applies the HasEdge predicate on the "listing_input" edge with a given conditions (other predicates).
func HasListingOutput ¶
HasListingOutput applies the HasEdge predicate on the "listing_output" edge.
func HasListingOutputWith ¶
HasListingOutputWith applies the HasEdge predicate on the "listing_output" edge with a given conditions (other predicates).
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.
const ( TypeDOPE Type = "DOPE" TypeETH Type = "ETH" TypeEQUIPMENT Type = "EQUIPMENT" TypeHUSTLER Type = "HUSTLER" TypePAPER Type = "PAPER" TypeTURF Type = "TURF" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.