card

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for card fields.

Functions

func And

func And(predicates ...predicate.Card) predicate.Card

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.Card

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Card

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

func ID

func ID(id int) predicate.Card

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Card

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Card

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Card

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Card

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Card

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Card

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Card

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Card

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Number added in v0.9.0

func Number(v string) predicate.Card

Number applies equality check predicate on the "number" field. It's identical to NumberEQ.

func NumberContains added in v0.9.0

func NumberContains(v string) predicate.Card

NumberContains applies the Contains predicate on the "number" field.

func NumberContainsFold added in v0.9.0

func NumberContainsFold(v string) predicate.Card

NumberContainsFold applies the ContainsFold predicate on the "number" field.

func NumberEQ added in v0.9.0

func NumberEQ(v string) predicate.Card

NumberEQ applies the EQ predicate on the "number" field.

func NumberEqualFold added in v0.9.0

func NumberEqualFold(v string) predicate.Card

NumberEqualFold applies the EqualFold predicate on the "number" field.

func NumberGT added in v0.9.0

func NumberGT(v string) predicate.Card

NumberGT applies the GT predicate on the "number" field.

func NumberGTE added in v0.9.0

func NumberGTE(v string) predicate.Card

NumberGTE applies the GTE predicate on the "number" field.

func NumberHasPrefix added in v0.9.0

func NumberHasPrefix(v string) predicate.Card

NumberHasPrefix applies the HasPrefix predicate on the "number" field.

func NumberHasSuffix added in v0.9.0

func NumberHasSuffix(v string) predicate.Card

NumberHasSuffix applies the HasSuffix predicate on the "number" field.

func NumberIn added in v0.9.0

func NumberIn(vs ...string) predicate.Card

NumberIn applies the In predicate on the "number" field.

func NumberIsNil added in v0.9.0

func NumberIsNil() predicate.Card

NumberIsNil applies the IsNil predicate on the "number" field.

func NumberLT added in v0.9.0

func NumberLT(v string) predicate.Card

NumberLT applies the LT predicate on the "number" field.

func NumberLTE added in v0.9.0

func NumberLTE(v string) predicate.Card

NumberLTE applies the LTE predicate on the "number" field.

func NumberNEQ added in v0.9.0

func NumberNEQ(v string) predicate.Card

NumberNEQ applies the NEQ predicate on the "number" field.

func NumberNotIn added in v0.9.0

func NumberNotIn(vs ...string) predicate.Card

NumberNotIn applies the NotIn predicate on the "number" field.

func NumberNotNil added in v0.9.0

func NumberNotNil() predicate.Card

NumberNotNil applies the NotNil predicate on the "number" field.

func Or

func Or(predicates ...predicate.Card) predicate.Card

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int) predicate.Card

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.Card

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...int) predicate.Card

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Card

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.Card

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...int) predicate.Card

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Card

OwnerIDNotNil applies the NotNil predicate on the "owner_id" 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