listing

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: 6 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for listing fields.

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

func Active(v bool) predicate.Listing

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Listing

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Listing

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.Listing) predicate.Listing

And groups predicates with the AND operator between them.

func HasDope

func HasDope() predicate.Listing

HasDope applies the HasEdge predicate on the "dope" edge.

func HasDopeLastsales

func HasDopeLastsales() predicate.Listing

HasDopeLastsales applies the HasEdge predicate on the "dope_lastsales" edge.

func HasDopeLastsalesWith

func HasDopeLastsalesWith(preds ...predicate.Dope) predicate.Listing

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

func HasDopeWith

func HasDopeWith(preds ...predicate.Dope) predicate.Listing

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

func HasInputs

func HasInputs() predicate.Listing

HasInputs applies the HasEdge predicate on the "inputs" edge.

func HasInputsWith

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

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

func HasOutputs

func HasOutputs() predicate.Listing

HasOutputs applies the HasEdge predicate on the "outputs" edge.

func HasOutputsWith

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

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

func ID

func ID(id string) predicate.Listing

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Listing

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Listing

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Listing

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Listing

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Listing

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Listing

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Listing) predicate.Listing

Or groups predicates with the OR operator between them.

func SeaportOrderIsNil

func SeaportOrderIsNil() predicate.Listing

SeaportOrderIsNil applies the IsNil predicate on the "seaport_order" field.

func SeaportOrderNotNil

func SeaportOrderNotNil() predicate.Listing

SeaportOrderNotNil applies the NotNil predicate on the "seaport_order" field.

func SourceEQ

func SourceEQ(v Source) predicate.Listing

SourceEQ applies the EQ predicate on the "source" field.

func SourceIn

func SourceIn(vs ...Source) predicate.Listing

SourceIn applies the In predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v Source) predicate.Listing

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...Source) predicate.Listing

SourceNotIn applies the NotIn predicate on the "source" field.

func SourceValidator

func SourceValidator(s Source) error

SourceValidator is a validator for the "source" 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).

func WyvernOrderIsNil

func WyvernOrderIsNil() predicate.Listing

WyvernOrderIsNil applies the IsNil predicate on the "wyvern_order" field.

func WyvernOrderNotNil

func WyvernOrderNotNil() predicate.Listing

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.

const (
	SourceOPENSEA  Source = "OPENSEA"
	SourceSWAPMEET Source = "SWAPMEET"
)

Source values.

func (Source) MarshalGQL

func (s Source) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Source) String

func (s Source) String() string

func (*Source) UnmarshalGQL

func (s *Source) 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