amount

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for amount fields.

View Source
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

func Amount(v schema.BigInt) predicate.Amount

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

func AmountEQ(v schema.BigInt) predicate.Amount

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

func AmountGT(v schema.BigInt) predicate.Amount

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v schema.BigInt) predicate.Amount

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...schema.BigInt) predicate.Amount

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v schema.BigInt) predicate.Amount

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v schema.BigInt) predicate.Amount

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v schema.BigInt) predicate.Amount

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...schema.BigInt) predicate.Amount

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

func And(predicates ...predicate.Amount) predicate.Amount

And groups predicates with the AND operator between them.

func AssetID

func AssetID(v schema.BigInt) predicate.Amount

AssetID applies equality check predicate on the "asset_id" field. It's identical to AssetIDEQ.

func AssetIDEQ

func AssetIDEQ(v schema.BigInt) predicate.Amount

AssetIDEQ applies the EQ predicate on the "asset_id" field.

func AssetIDGT

func AssetIDGT(v schema.BigInt) predicate.Amount

AssetIDGT applies the GT predicate on the "asset_id" field.

func AssetIDGTE

func AssetIDGTE(v schema.BigInt) predicate.Amount

AssetIDGTE applies the GTE predicate on the "asset_id" field.

func AssetIDIn

func AssetIDIn(vs ...schema.BigInt) predicate.Amount

AssetIDIn applies the In predicate on the "asset_id" field.

func AssetIDLT

func AssetIDLT(v schema.BigInt) predicate.Amount

AssetIDLT applies the LT predicate on the "asset_id" field.

func AssetIDLTE

func AssetIDLTE(v schema.BigInt) predicate.Amount

AssetIDLTE applies the LTE predicate on the "asset_id" field.

func AssetIDNEQ

func AssetIDNEQ(v schema.BigInt) predicate.Amount

AssetIDNEQ applies the NEQ predicate on the "asset_id" field.

func AssetIDNotIn

func AssetIDNotIn(vs ...schema.BigInt) predicate.Amount

AssetIDNotIn applies the NotIn predicate on the "asset_id" field.

func HasListingInput

func HasListingInput() predicate.Amount

HasListingInput applies the HasEdge predicate on the "listing_input" edge.

func HasListingInputWith

func HasListingInputWith(preds ...predicate.Listing) predicate.Amount

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

func HasListingOutput

func HasListingOutput() predicate.Amount

HasListingOutput applies the HasEdge predicate on the "listing_output" edge.

func HasListingOutputWith

func HasListingOutputWith(preds ...predicate.Listing) predicate.Amount

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

func ID

func ID(id string) predicate.Amount

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Amount

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Amount

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Amount

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Amount

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Amount

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Amount

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Amount

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Amount

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Amount) predicate.Amount

Or groups predicates with the OR operator between them.

func TypeEQ

func TypeEQ(v Type) predicate.Amount

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Amount

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Amount

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Amount

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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