dope

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dope type in the database.
	Label = "dope"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldScore holds the string denoting the score field in the database.
	FieldScore = "score"
	// FieldRank holds the string denoting the rank field in the database.
	FieldRank = "rank"
	// FieldOrder holds the string denoting the order field in the database.
	FieldOrder = "order"
	// EdgeWallet holds the string denoting the wallet edge name in mutations.
	EdgeWallet = "wallet"
	// EdgeLastSale holds the string denoting the last_sale edge name in mutations.
	EdgeLastSale = "last_sale"
	// EdgeListings holds the string denoting the listings edge name in mutations.
	EdgeListings = "listings"
	// EdgeItems holds the string denoting the items edge name in mutations.
	EdgeItems = "items"
	// EdgeIndex holds the string denoting the index edge name in mutations.
	EdgeIndex = "index"
	// Table holds the table name of the dope in the database.
	Table = "dopes"
	// WalletTable is the table that holds the wallet relation/edge.
	WalletTable = "dopes"
	// WalletInverseTable is the table name for the Wallet entity.
	// It exists in this package in order to avoid circular dependency with the "wallet" package.
	WalletInverseTable = "wallets"
	// WalletColumn is the table column denoting the wallet relation/edge.
	WalletColumn = "wallet_dopes"
	// LastSaleTable is the table that holds the last_sale relation/edge.
	LastSaleTable = "dopes"
	// LastSaleInverseTable is the table name for the Listing entity.
	// It exists in this package in order to avoid circular dependency with the "listing" package.
	LastSaleInverseTable = "listings"
	// LastSaleColumn is the table column denoting the last_sale relation/edge.
	LastSaleColumn = "listing_dope_lastsales"
	// ListingsTable is the table that holds the listings relation/edge.
	ListingsTable = "listings"
	// ListingsInverseTable is the table name for the Listing entity.
	// It exists in this package in order to avoid circular dependency with the "listing" package.
	ListingsInverseTable = "listings"
	// ListingsColumn is the table column denoting the listings relation/edge.
	ListingsColumn = "dope_listings"
	// ItemsTable is the table that holds the items relation/edge. The primary key declared below.
	ItemsTable = "dope_items"
	// ItemsInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	ItemsInverseTable = "items"
	// IndexTable is the table that holds the index relation/edge.
	IndexTable = "search_index"
	// IndexInverseTable is the table name for the Search entity.
	// It exists in this package in order to avoid circular dependency with the "search" package.
	IndexInverseTable = "search_index"
	// IndexColumn is the table column denoting the index relation/edge.
	IndexColumn = "dope_index"
)

Variables

View Source
var (
	// DefaultClaimed holds the default value on creation for the "claimed" field.
	DefaultClaimed bool
	// DefaultOpened holds the default value on creation for the "opened" field.
	DefaultOpened bool
)

Columns holds all SQL columns for dope fields.

View Source
var ForeignKeys = []string{
	"listing_dope_lastsales",
	"wallet_dopes",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "dopes" table and are not defined as standalone fields in the schema.

View Source
var (
	// ItemsPrimaryKey and ItemsColumn2 are the table columns denoting the
	// primary key for the items relation (M2M).
	ItemsPrimaryKey = []string{"dope_id", "item_id"}
)

Functions

func And

func And(predicates ...predicate.Dope) predicate.Dope

And groups predicates with the AND operator between them.

func Claimed

func Claimed(v bool) predicate.Dope

Claimed applies equality check predicate on the "claimed" field. It's identical to ClaimedEQ.

func ClaimedEQ

func ClaimedEQ(v bool) predicate.Dope

ClaimedEQ applies the EQ predicate on the "claimed" field.

func ClaimedNEQ

func ClaimedNEQ(v bool) predicate.Dope

ClaimedNEQ applies the NEQ predicate on the "claimed" field.

func HasIndex

func HasIndex() predicate.Dope

HasIndex applies the HasEdge predicate on the "index" edge.

func HasIndexWith

func HasIndexWith(preds ...predicate.Search) predicate.Dope

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

func HasItems

func HasItems() predicate.Dope

HasItems applies the HasEdge predicate on the "items" edge.

func HasItemsWith

func HasItemsWith(preds ...predicate.Item) predicate.Dope

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

func HasLastSale

func HasLastSale() predicate.Dope

HasLastSale applies the HasEdge predicate on the "last_sale" edge.

func HasLastSaleWith

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

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

func HasListings

func HasListings() predicate.Dope

HasListings applies the HasEdge predicate on the "listings" edge.

func HasListingsWith

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

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

func HasWallet

func HasWallet() predicate.Dope

HasWallet applies the HasEdge predicate on the "wallet" edge.

func HasWalletWith

func HasWalletWith(preds ...predicate.Wallet) predicate.Dope

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

func ID

func ID(id string) predicate.Dope

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Dope

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Dope

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Dope

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Dope

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Dope

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Dope

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Opened

func Opened(v bool) predicate.Dope

Opened applies equality check predicate on the "opened" field. It's identical to OpenedEQ.

func OpenedEQ

func OpenedEQ(v bool) predicate.Dope

OpenedEQ applies the EQ predicate on the "opened" field.

func OpenedNEQ

func OpenedNEQ(v bool) predicate.Dope

OpenedNEQ applies the NEQ predicate on the "opened" field.

func Or

func Or(predicates ...predicate.Dope) predicate.Dope

Or groups predicates with the OR operator between them.

func Order

func Order(v int) predicate.Dope

Order applies equality check predicate on the "order" field. It's identical to OrderEQ.

func OrderEQ

func OrderEQ(v int) predicate.Dope

OrderEQ applies the EQ predicate on the "order" field.

func OrderGT

func OrderGT(v int) predicate.Dope

OrderGT applies the GT predicate on the "order" field.

func OrderGTE

func OrderGTE(v int) predicate.Dope

OrderGTE applies the GTE predicate on the "order" field.

func OrderIn

func OrderIn(vs ...int) predicate.Dope

OrderIn applies the In predicate on the "order" field.

func OrderLT

func OrderLT(v int) predicate.Dope

OrderLT applies the LT predicate on the "order" field.

func OrderLTE

func OrderLTE(v int) predicate.Dope

OrderLTE applies the LTE predicate on the "order" field.

func OrderNEQ

func OrderNEQ(v int) predicate.Dope

OrderNEQ applies the NEQ predicate on the "order" field.

func OrderNotIn

func OrderNotIn(vs ...int) predicate.Dope

OrderNotIn applies the NotIn predicate on the "order" field.

func Rank

func Rank(v int) predicate.Dope

Rank applies equality check predicate on the "rank" field. It's identical to RankEQ.

func RankEQ

func RankEQ(v int) predicate.Dope

RankEQ applies the EQ predicate on the "rank" field.

func RankGT

func RankGT(v int) predicate.Dope

RankGT applies the GT predicate on the "rank" field.

func RankGTE

func RankGTE(v int) predicate.Dope

RankGTE applies the GTE predicate on the "rank" field.

func RankIn

func RankIn(vs ...int) predicate.Dope

RankIn applies the In predicate on the "rank" field.

func RankIsNil

func RankIsNil() predicate.Dope

RankIsNil applies the IsNil predicate on the "rank" field.

func RankLT

func RankLT(v int) predicate.Dope

RankLT applies the LT predicate on the "rank" field.

func RankLTE

func RankLTE(v int) predicate.Dope

RankLTE applies the LTE predicate on the "rank" field.

func RankNEQ

func RankNEQ(v int) predicate.Dope

RankNEQ applies the NEQ predicate on the "rank" field.

func RankNotIn

func RankNotIn(vs ...int) predicate.Dope

RankNotIn applies the NotIn predicate on the "rank" field.

func RankNotNil

func RankNotNil() predicate.Dope

RankNotNil applies the NotNil predicate on the "rank" field.

func Score

func Score(v int) predicate.Dope

Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.

func ScoreEQ

func ScoreEQ(v int) predicate.Dope

ScoreEQ applies the EQ predicate on the "score" field.

func ScoreGT

func ScoreGT(v int) predicate.Dope

ScoreGT applies the GT predicate on the "score" field.

func ScoreGTE

func ScoreGTE(v int) predicate.Dope

ScoreGTE applies the GTE predicate on the "score" field.

func ScoreIn

func ScoreIn(vs ...int) predicate.Dope

ScoreIn applies the In predicate on the "score" field.

func ScoreIsNil

func ScoreIsNil() predicate.Dope

ScoreIsNil applies the IsNil predicate on the "score" field.

func ScoreLT

func ScoreLT(v int) predicate.Dope

ScoreLT applies the LT predicate on the "score" field.

func ScoreLTE

func ScoreLTE(v int) predicate.Dope

ScoreLTE applies the LTE predicate on the "score" field.

func ScoreNEQ

func ScoreNEQ(v int) predicate.Dope

ScoreNEQ applies the NEQ predicate on the "score" field.

func ScoreNotIn

func ScoreNotIn(vs ...int) predicate.Dope

ScoreNotIn applies the NotIn predicate on the "score" field.

func ScoreNotNil

func ScoreNotNil() predicate.Dope

ScoreNotNil applies the NotNil predicate on the "score" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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