cryptocurrency

package
v0.0.0-...-8b6722b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cryptocurrency type in the database.
	Label = "cryptocurrency"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldSymbol holds the string denoting the symbol field in the database.
	FieldSymbol = "symbol"
	// FieldIcon holds the string denoting the icon field in the database.
	FieldIcon = "icon"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAssetID holds the string denoting the asset_id field in the database.
	FieldAssetID = "asset_id"
	// EdgeAsset holds the string denoting the asset edge name in mutations.
	EdgeAsset = "asset"
	// EdgeBlockchains holds the string denoting the blockchains edge name in mutations.
	EdgeBlockchains = "blockchains"
	// Table holds the table name of the cryptocurrency in the database.
	Table = "cryptocurrencies"
	// AssetTable is the table that holds the asset relation/edge.
	AssetTable = "cryptocurrencies"
	// AssetInverseTable is the table name for the Asset entity.
	// It exists in this package in order to avoid circular dependency with the "asset" package.
	AssetInverseTable = "assets"
	// AssetColumn is the table column denoting the asset relation/edge.
	AssetColumn = "asset_id"
	// BlockchainsTable is the table that holds the blockchains relation/edge. The primary key declared below.
	BlockchainsTable = "blockchain_cryptocurrencies"
	// BlockchainsInverseTable is the table name for the Blockchain entity.
	// It exists in this package in order to avoid circular dependency with the "blockchain" package.
	BlockchainsInverseTable = "blockchains"
)

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
	// UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field.
	UpdateDefaultDeletedAt func() time.Time
	// SymbolValidator is a validator for the "symbol" field. It is called by the builders before save.
	SymbolValidator func(string) error
	// IconValidator is a validator for the "icon" field. It is called by the builders before save.
	IconValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() pulid.PULID
)
View Source
var (
	// BlockchainsPrimaryKey and BlockchainsColumn2 are the table columns denoting the
	// primary key for the blockchains relation (M2M).
	BlockchainsPrimaryKey = []string{"blockchain_id", "cryptocurrency_id"}
)

Columns holds all SQL columns for cryptocurrency fields.

Functions

func And

And groups predicates with the AND operator between them.

func AssetID

AssetID applies equality check predicate on the "asset_id" field. It's identical to AssetIDEQ.

func AssetIDContains

func AssetIDContains(v pulid.PULID) predicate.Cryptocurrency

AssetIDContains applies the Contains predicate on the "asset_id" field.

func AssetIDContainsFold

func AssetIDContainsFold(v pulid.PULID) predicate.Cryptocurrency

AssetIDContainsFold applies the ContainsFold predicate on the "asset_id" field.

func AssetIDEQ

func AssetIDEQ(v pulid.PULID) predicate.Cryptocurrency

AssetIDEQ applies the EQ predicate on the "asset_id" field.

func AssetIDEqualFold

func AssetIDEqualFold(v pulid.PULID) predicate.Cryptocurrency

AssetIDEqualFold applies the EqualFold predicate on the "asset_id" field.

func AssetIDGT

func AssetIDGT(v pulid.PULID) predicate.Cryptocurrency

AssetIDGT applies the GT predicate on the "asset_id" field.

func AssetIDGTE

func AssetIDGTE(v pulid.PULID) predicate.Cryptocurrency

AssetIDGTE applies the GTE predicate on the "asset_id" field.

func AssetIDHasPrefix

func AssetIDHasPrefix(v pulid.PULID) predicate.Cryptocurrency

AssetIDHasPrefix applies the HasPrefix predicate on the "asset_id" field.

func AssetIDHasSuffix

func AssetIDHasSuffix(v pulid.PULID) predicate.Cryptocurrency

AssetIDHasSuffix applies the HasSuffix predicate on the "asset_id" field.

func AssetIDIn

func AssetIDIn(vs ...pulid.PULID) predicate.Cryptocurrency

AssetIDIn applies the In predicate on the "asset_id" field.

func AssetIDLT

func AssetIDLT(v pulid.PULID) predicate.Cryptocurrency

AssetIDLT applies the LT predicate on the "asset_id" field.

func AssetIDLTE

func AssetIDLTE(v pulid.PULID) predicate.Cryptocurrency

AssetIDLTE applies the LTE predicate on the "asset_id" field.

func AssetIDNEQ

func AssetIDNEQ(v pulid.PULID) predicate.Cryptocurrency

AssetIDNEQ applies the NEQ predicate on the "asset_id" field.

func AssetIDNotIn

func AssetIDNotIn(vs ...pulid.PULID) predicate.Cryptocurrency

AssetIDNotIn applies the NotIn predicate on the "asset_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Cryptocurrency

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Cryptocurrency

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Cryptocurrency

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Cryptocurrency

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Cryptocurrency

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Cryptocurrency

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Cryptocurrency

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Cryptocurrency

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Cryptocurrency

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Cryptocurrency

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Cryptocurrency

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Cryptocurrency

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Cryptocurrency

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Cryptocurrency

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Cryptocurrency

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Cryptocurrency

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Cryptocurrency

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Cryptocurrency

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasAsset

func HasAsset() predicate.Cryptocurrency

HasAsset applies the HasEdge predicate on the "asset" edge.

func HasAssetWith

func HasAssetWith(preds ...predicate.Asset) predicate.Cryptocurrency

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

func HasBlockchains

func HasBlockchains() predicate.Cryptocurrency

HasBlockchains applies the HasEdge predicate on the "blockchains" edge.

func HasBlockchainsWith

func HasBlockchainsWith(preds ...predicate.Blockchain) predicate.Cryptocurrency

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...pulid.PULID) predicate.Cryptocurrency

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...pulid.PULID) predicate.Cryptocurrency

IDNotIn applies the NotIn predicate on the ID field.

func Icon

Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.

func IconContains

func IconContains(v string) predicate.Cryptocurrency

IconContains applies the Contains predicate on the "icon" field.

func IconContainsFold

func IconContainsFold(v string) predicate.Cryptocurrency

IconContainsFold applies the ContainsFold predicate on the "icon" field.

func IconEQ

IconEQ applies the EQ predicate on the "icon" field.

func IconEqualFold

func IconEqualFold(v string) predicate.Cryptocurrency

IconEqualFold applies the EqualFold predicate on the "icon" field.

func IconGT

IconGT applies the GT predicate on the "icon" field.

func IconGTE

func IconGTE(v string) predicate.Cryptocurrency

IconGTE applies the GTE predicate on the "icon" field.

func IconHasPrefix

func IconHasPrefix(v string) predicate.Cryptocurrency

IconHasPrefix applies the HasPrefix predicate on the "icon" field.

func IconHasSuffix

func IconHasSuffix(v string) predicate.Cryptocurrency

IconHasSuffix applies the HasSuffix predicate on the "icon" field.

func IconIn

func IconIn(vs ...string) predicate.Cryptocurrency

IconIn applies the In predicate on the "icon" field.

func IconIsNil

func IconIsNil() predicate.Cryptocurrency

IconIsNil applies the IsNil predicate on the "icon" field.

func IconLT

IconLT applies the LT predicate on the "icon" field.

func IconLTE

func IconLTE(v string) predicate.Cryptocurrency

IconLTE applies the LTE predicate on the "icon" field.

func IconNEQ

func IconNEQ(v string) predicate.Cryptocurrency

IconNEQ applies the NEQ predicate on the "icon" field.

func IconNotIn

func IconNotIn(vs ...string) predicate.Cryptocurrency

IconNotIn applies the NotIn predicate on the "icon" field.

func IconNotNil

func IconNotNil() predicate.Cryptocurrency

IconNotNil applies the NotNil predicate on the "icon" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Cryptocurrency

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Cryptocurrency

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Cryptocurrency

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Cryptocurrency

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Cryptocurrency

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Cryptocurrency

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Cryptocurrency

NameIn applies the In predicate on the "name" field.

func NameLT

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Cryptocurrency

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Cryptocurrency

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Cryptocurrency

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Symbol

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

func SymbolContains

func SymbolContains(v string) predicate.Cryptocurrency

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

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.Cryptocurrency

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

func SymbolEQ

func SymbolEQ(v string) predicate.Cryptocurrency

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

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.Cryptocurrency

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

func SymbolGT

func SymbolGT(v string) predicate.Cryptocurrency

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

func SymbolGTE

func SymbolGTE(v string) predicate.Cryptocurrency

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

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.Cryptocurrency

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

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.Cryptocurrency

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

func SymbolIn

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

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

func SymbolLT

func SymbolLT(v string) predicate.Cryptocurrency

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

func SymbolLTE

func SymbolLTE(v string) predicate.Cryptocurrency

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

func SymbolNEQ

func SymbolNEQ(v string) predicate.Cryptocurrency

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

func SymbolNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Cryptocurrency

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Cryptocurrency

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Cryptocurrency

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Cryptocurrency

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Cryptocurrency

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Cryptocurrency

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Cryptocurrency

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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