Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func HasOwner() predicate.Card
- func HasOwnerWith(preds ...predicate.User) predicate.Card
- func ID(id int) predicate.Card
- func IDEQ(id int) predicate.Card
- func IDGT(id int) predicate.Card
- func IDGTE(id int) predicate.Card
- func IDIn(ids ...int) predicate.Card
- func IDLT(id int) predicate.Card
- func IDLTE(id int) predicate.Card
- func IDNEQ(id int) predicate.Card
- func IDNotIn(ids ...int) predicate.Card
- func Not(p predicate.Card) predicate.Card
- func Number(v string) predicate.Card
- func NumberContains(v string) predicate.Card
- func NumberContainsFold(v string) predicate.Card
- func NumberEQ(v string) predicate.Card
- func NumberEqualFold(v string) predicate.Card
- func NumberGT(v string) predicate.Card
- func NumberGTE(v string) predicate.Card
- func NumberHasPrefix(v string) predicate.Card
- func NumberHasSuffix(v string) predicate.Card
- func NumberIn(vs ...string) predicate.Card
- func NumberIsNil() predicate.Card
- func NumberLT(v string) predicate.Card
- func NumberLTE(v string) predicate.Card
- func NumberNEQ(v string) predicate.Card
- func NumberNotIn(vs ...string) predicate.Card
- func NumberNotNil() predicate.Card
- func Or(predicates ...predicate.Card) predicate.Card
- func OwnerID(v int) predicate.Card
- func OwnerIDEQ(v int) predicate.Card
- func OwnerIDIn(vs ...int) predicate.Card
- func OwnerIDIsNil() predicate.Card
- func OwnerIDNEQ(v int) predicate.Card
- func OwnerIDNotIn(vs ...int) predicate.Card
- func OwnerIDNotNil() predicate.Card
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the card type in the database. Label = "card" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNumber holds the string denoting the number field in the database. FieldNumber = "number" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the card in the database. Table = "cards" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "cards" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" )
Variables ¶
var Columns = []string{ FieldID, FieldNumber, FieldOwnerID, }
Columns holds all SQL columns for card fields.
Functions ¶
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Number ¶ added in v0.9.0
Number applies equality check predicate on the "number" field. It's identical to NumberEQ.
func NumberContains ¶ added in v0.9.0
NumberContains applies the Contains predicate on the "number" field.
func NumberContainsFold ¶ added in v0.9.0
NumberContainsFold applies the ContainsFold predicate on the "number" field.
func NumberEqualFold ¶ added in v0.9.0
NumberEqualFold applies the EqualFold predicate on the "number" field.
func NumberHasPrefix ¶ added in v0.9.0
NumberHasPrefix applies the HasPrefix predicate on the "number" field.
func NumberHasSuffix ¶ added in v0.9.0
NumberHasSuffix applies the HasSuffix predicate on the "number" field.
func NumberIsNil ¶ added in v0.9.0
NumberIsNil applies the IsNil predicate on the "number" field.
func NumberNotIn ¶ added in v0.9.0
NumberNotIn applies the NotIn predicate on the "number" field.
func NumberNotNil ¶ added in v0.9.0
NumberNotNil applies the NotNil predicate on the "number" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDIsNil ¶
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.