Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dope) predicate.Dope
- func Claimed(v bool) predicate.Dope
- func ClaimedEQ(v bool) predicate.Dope
- func ClaimedNEQ(v bool) predicate.Dope
- func HasIndex() predicate.Dope
- func HasIndexWith(preds ...predicate.Search) predicate.Dope
- func HasItems() predicate.Dope
- func HasItemsWith(preds ...predicate.Item) predicate.Dope
- func HasLastSale() predicate.Dope
- func HasLastSaleWith(preds ...predicate.Listing) predicate.Dope
- func HasListings() predicate.Dope
- func HasListingsWith(preds ...predicate.Listing) predicate.Dope
- func HasWallet() predicate.Dope
- func HasWalletWith(preds ...predicate.Wallet) predicate.Dope
- func ID(id string) predicate.Dope
- func IDEQ(id string) predicate.Dope
- func IDGT(id string) predicate.Dope
- func IDGTE(id string) predicate.Dope
- func IDIn(ids ...string) predicate.Dope
- func IDLT(id string) predicate.Dope
- func IDLTE(id string) predicate.Dope
- func IDNEQ(id string) predicate.Dope
- func IDNotIn(ids ...string) predicate.Dope
- func Not(p predicate.Dope) predicate.Dope
- func Opened(v bool) predicate.Dope
- func OpenedEQ(v bool) predicate.Dope
- func OpenedNEQ(v bool) predicate.Dope
- func Or(predicates ...predicate.Dope) predicate.Dope
- func Order(v int) predicate.Dope
- func OrderEQ(v int) predicate.Dope
- func OrderGT(v int) predicate.Dope
- func OrderGTE(v int) predicate.Dope
- func OrderIn(vs ...int) predicate.Dope
- func OrderLT(v int) predicate.Dope
- func OrderLTE(v int) predicate.Dope
- func OrderNEQ(v int) predicate.Dope
- func OrderNotIn(vs ...int) predicate.Dope
- func Rank(v int) predicate.Dope
- func RankEQ(v int) predicate.Dope
- func RankGT(v int) predicate.Dope
- func RankGTE(v int) predicate.Dope
- func RankIn(vs ...int) predicate.Dope
- func RankIsNil() predicate.Dope
- func RankLT(v int) predicate.Dope
- func RankLTE(v int) predicate.Dope
- func RankNEQ(v int) predicate.Dope
- func RankNotIn(vs ...int) predicate.Dope
- func RankNotNil() predicate.Dope
- func Score(v int) predicate.Dope
- func ScoreEQ(v int) predicate.Dope
- func ScoreGT(v int) predicate.Dope
- func ScoreGTE(v int) predicate.Dope
- func ScoreIn(vs ...int) predicate.Dope
- func ScoreIsNil() predicate.Dope
- func ScoreLT(v int) predicate.Dope
- func ScoreLTE(v int) predicate.Dope
- func ScoreNEQ(v int) predicate.Dope
- func ScoreNotIn(vs ...int) predicate.Dope
- func ScoreNotNil() predicate.Dope
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldClaimed, FieldOpened, FieldScore, FieldRank, FieldOrder, }
Columns holds all SQL columns for dope fields.
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.
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 Claimed ¶
Claimed applies equality check predicate on the "claimed" field. It's identical to ClaimedEQ.
func ClaimedNEQ ¶
ClaimedNEQ applies the NEQ predicate on the "claimed" field.
func HasIndexWith ¶
HasIndexWith applies the HasEdge predicate on the "index" edge with a given conditions (other predicates).
func HasItemsWith ¶
HasItemsWith applies the HasEdge predicate on the "items" edge with a given conditions (other predicates).
func HasLastSale ¶
HasLastSale applies the HasEdge predicate on the "last_sale" edge.
func HasLastSaleWith ¶
HasLastSaleWith applies the HasEdge predicate on the "last_sale" edge with a given conditions (other predicates).
func HasListings ¶
HasListings applies the HasEdge predicate on the "listings" edge.
func HasListingsWith ¶
HasListingsWith applies the HasEdge predicate on the "listings" edge with a given conditions (other predicates).
func HasWalletWith ¶
HasWalletWith applies the HasEdge predicate on the "wallet" edge with a given conditions (other predicates).
func Opened ¶
Opened applies equality check predicate on the "opened" field. It's identical to OpenedEQ.
func Order ¶
Order applies equality check predicate on the "order" field. It's identical to OrderEQ.
func OrderNotIn ¶
OrderNotIn applies the NotIn predicate on the "order" field.
func RankNotNil ¶
RankNotNil applies the NotNil predicate on the "rank" field.
func Score ¶
Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.
func ScoreIsNil ¶
ScoreIsNil applies the IsNil predicate on the "score" field.
func ScoreNotIn ¶
ScoreNotIn applies the NotIn predicate on the "score" field.
func ScoreNotNil ¶
ScoreNotNil applies the NotNil predicate on the "score" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.