card

package
v0.0.0-...-3a46aa3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 2 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldMoney holds the string denoting the money field in the database.
	FieldMoney = "money"
	// Table holds the table name of the card in the database.
	Table = "cards"
)

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 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 Money

func Money(v string) predicate.Card

Money applies equality check predicate on the "money" field. It's identical to MoneyEQ.

func MoneyContains

func MoneyContains(v string) predicate.Card

MoneyContains applies the Contains predicate on the "money" field.

func MoneyContainsFold

func MoneyContainsFold(v string) predicate.Card

MoneyContainsFold applies the ContainsFold predicate on the "money" field.

func MoneyEQ

func MoneyEQ(v string) predicate.Card

MoneyEQ applies the EQ predicate on the "money" field.

func MoneyEqualFold

func MoneyEqualFold(v string) predicate.Card

MoneyEqualFold applies the EqualFold predicate on the "money" field.

func MoneyGT

func MoneyGT(v string) predicate.Card

MoneyGT applies the GT predicate on the "money" field.

func MoneyGTE

func MoneyGTE(v string) predicate.Card

MoneyGTE applies the GTE predicate on the "money" field.

func MoneyHasPrefix

func MoneyHasPrefix(v string) predicate.Card

MoneyHasPrefix applies the HasPrefix predicate on the "money" field.

func MoneyHasSuffix

func MoneyHasSuffix(v string) predicate.Card

MoneyHasSuffix applies the HasSuffix predicate on the "money" field.

func MoneyIn

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

MoneyIn applies the In predicate on the "money" field.

func MoneyLT

func MoneyLT(v string) predicate.Card

MoneyLT applies the LT predicate on the "money" field.

func MoneyLTE

func MoneyLTE(v string) predicate.Card

MoneyLTE applies the LTE predicate on the "money" field.

func MoneyNEQ

func MoneyNEQ(v string) predicate.Card

MoneyNEQ applies the NEQ predicate on the "money" field.

func MoneyNotIn

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

MoneyNotIn applies the NotIn predicate on the "money" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func UserID

func UserID(v string) predicate.Card

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.Card

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.Card

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.Card

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.Card

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.Card

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.Card

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.Card

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.Card

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

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

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.Card

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.Card

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.Card

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

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

UserIDNotIn applies the NotIn predicate on the "user_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