userwallet

package
v0.0.0-...-5b7c39b Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the userwallet type in the database.
	Label = "user_wallet"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldSymbol holds the string denoting the symbol field in the database.
	FieldSymbol = "symbol"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldBalance holds the string denoting the balance field in the database.
	FieldBalance = "balance"
	// Table holds the table name of the userwallet in the database.
	Table = "user_wallets"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
)

Columns holds all SQL columns for userwallet fields.

Functions

func And

func And(predicates ...predicate.UserWallet) predicate.UserWallet

And groups predicates with the AND operator between them.

func Balance

func Balance(v string) predicate.UserWallet

Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.

func BalanceContains

func BalanceContains(v string) predicate.UserWallet

BalanceContains applies the Contains predicate on the "balance" field.

func BalanceContainsFold

func BalanceContainsFold(v string) predicate.UserWallet

BalanceContainsFold applies the ContainsFold predicate on the "balance" field.

func BalanceEQ

func BalanceEQ(v string) predicate.UserWallet

BalanceEQ applies the EQ predicate on the "balance" field.

func BalanceEqualFold

func BalanceEqualFold(v string) predicate.UserWallet

BalanceEqualFold applies the EqualFold predicate on the "balance" field.

func BalanceGT

func BalanceGT(v string) predicate.UserWallet

BalanceGT applies the GT predicate on the "balance" field.

func BalanceGTE

func BalanceGTE(v string) predicate.UserWallet

BalanceGTE applies the GTE predicate on the "balance" field.

func BalanceHasPrefix

func BalanceHasPrefix(v string) predicate.UserWallet

BalanceHasPrefix applies the HasPrefix predicate on the "balance" field.

func BalanceHasSuffix

func BalanceHasSuffix(v string) predicate.UserWallet

BalanceHasSuffix applies the HasSuffix predicate on the "balance" field.

func BalanceIn

func BalanceIn(vs ...string) predicate.UserWallet

BalanceIn applies the In predicate on the "balance" field.

func BalanceLT

func BalanceLT(v string) predicate.UserWallet

BalanceLT applies the LT predicate on the "balance" field.

func BalanceLTE

func BalanceLTE(v string) predicate.UserWallet

BalanceLTE applies the LTE predicate on the "balance" field.

func BalanceNEQ

func BalanceNEQ(v string) predicate.UserWallet

BalanceNEQ applies the NEQ predicate on the "balance" field.

func BalanceNotIn

func BalanceNotIn(vs ...string) predicate.UserWallet

BalanceNotIn applies the NotIn predicate on the "balance" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserWallet

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserWallet

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserWallet

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserWallet

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.UserWallet

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserWallet

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserWallet

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserWallet

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.UserWallet

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ID

func ID(id xid.ID) predicate.UserWallet

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.UserWallet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.UserWallet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.UserWallet

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.UserWallet

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.UserWallet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.UserWallet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.UserWallet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.UserWallet

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.UserWallet

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.UserWallet

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.UserWallet

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserWallet) predicate.UserWallet

Or groups predicates with the OR operator between them.

func Symbol

func Symbol(v string) predicate.UserWallet

Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.

func SymbolContains

func SymbolContains(v string) predicate.UserWallet

SymbolContains applies the Contains predicate on the "symbol" field.

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.UserWallet

SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.

func SymbolEQ

func SymbolEQ(v string) predicate.UserWallet

SymbolEQ applies the EQ predicate on the "symbol" field.

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.UserWallet

SymbolEqualFold applies the EqualFold predicate on the "symbol" field.

func SymbolGT

func SymbolGT(v string) predicate.UserWallet

SymbolGT applies the GT predicate on the "symbol" field.

func SymbolGTE

func SymbolGTE(v string) predicate.UserWallet

SymbolGTE applies the GTE predicate on the "symbol" field.

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.UserWallet

SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.UserWallet

SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.

func SymbolIn

func SymbolIn(vs ...string) predicate.UserWallet

SymbolIn applies the In predicate on the "symbol" field.

func SymbolLT

func SymbolLT(v string) predicate.UserWallet

SymbolLT applies the LT predicate on the "symbol" field.

func SymbolLTE

func SymbolLTE(v string) predicate.UserWallet

SymbolLTE applies the LTE predicate on the "symbol" field.

func SymbolNEQ

func SymbolNEQ(v string) predicate.UserWallet

SymbolNEQ applies the NEQ predicate on the "symbol" field.

func SymbolNotIn

func SymbolNotIn(vs ...string) predicate.UserWallet

SymbolNotIn applies the NotIn predicate on the "symbol" field.

func Type

func Type(v string) predicate.UserWallet

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.UserWallet

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.UserWallet

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.UserWallet

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.UserWallet

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.UserWallet

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.UserWallet

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.UserWallet

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.UserWallet

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.UserWallet

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.UserWallet

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.UserWallet

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.UserWallet

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.UserWallet

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UserWallet

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UserWallet

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UserWallet

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UserWallet

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.UserWallet

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UserWallet

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UserWallet

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UserWallet

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.UserWallet

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v string) predicate.UserWallet

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

func UserIDContains

func UserIDContains(v string) predicate.UserWallet

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

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.UserWallet

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

func UserIDEQ

func UserIDEQ(v string) predicate.UserWallet

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

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.UserWallet

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

func UserIDGT

func UserIDGT(v string) predicate.UserWallet

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

func UserIDGTE

func UserIDGTE(v string) predicate.UserWallet

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

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.UserWallet

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

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.UserWallet

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

func UserIDIn

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

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

func UserIDLT

func UserIDLT(v string) predicate.UserWallet

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

func UserIDLTE

func UserIDLTE(v string) predicate.UserWallet

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

func UserIDNEQ

func UserIDNEQ(v string) predicate.UserWallet

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

func UserIDNotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the UserWallet queries.

func ByBalance

func ByBalance(opts ...sql.OrderTermOption) OrderOption

ByBalance orders the results by the balance field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIsActive

func ByIsActive(opts ...sql.OrderTermOption) OrderOption

ByIsActive orders the results by the is_active field.

func BySymbol

func BySymbol(opts ...sql.OrderTermOption) OrderOption

BySymbol orders the results by the symbol field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUserID

func ByUserID(opts ...sql.OrderTermOption) OrderOption

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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