asset

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 asset type in the database.
	Label = "asset"
	// 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"
	// EdgeAssetClass holds the string denoting the asset_class edge name in mutations.
	EdgeAssetClass = "asset_class"
	// EdgeCryptocurrency holds the string denoting the cryptocurrency edge name in mutations.
	EdgeCryptocurrency = "cryptocurrency"
	// EdgeDailyAssetPrices holds the string denoting the daily_asset_prices edge name in mutations.
	EdgeDailyAssetPrices = "daily_asset_prices"
	// Table holds the table name of the asset in the database.
	Table = "assets"
	// AssetClassTable is the table that holds the asset_class relation/edge.
	AssetClassTable = "assets"
	// AssetClassInverseTable is the table name for the AssetClass entity.
	// It exists in this package in order to avoid circular dependency with the "assetclass" package.
	AssetClassInverseTable = "asset_classes"
	// AssetClassColumn is the table column denoting the asset_class relation/edge.
	AssetClassColumn = "asset_asset_class"
	// CryptocurrencyTable is the table that holds the cryptocurrency relation/edge.
	CryptocurrencyTable = "cryptocurrencies"
	// CryptocurrencyInverseTable is the table name for the Cryptocurrency entity.
	// It exists in this package in order to avoid circular dependency with the "cryptocurrency" package.
	CryptocurrencyInverseTable = "cryptocurrencies"
	// CryptocurrencyColumn is the table column denoting the cryptocurrency relation/edge.
	CryptocurrencyColumn = "asset_id"
	// DailyAssetPricesTable is the table that holds the daily_asset_prices relation/edge.
	DailyAssetPricesTable = "daily_asset_prices"
	// DailyAssetPricesInverseTable is the table name for the DailyAssetPrice entity.
	// It exists in this package in order to avoid circular dependency with the "dailyassetprice" package.
	DailyAssetPricesInverseTable = "daily_asset_prices"
	// DailyAssetPricesColumn is the table column denoting the daily_asset_prices relation/edge.
	DailyAssetPricesColumn = "asset_id"
)

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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() pulid.PULID
)

Columns holds all SQL columns for asset fields.

View Source
var ForeignKeys = []string{
	"asset_asset_class",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "assets" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Asset) predicate.Asset

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Asset

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Asset

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Asset

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Asset

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Asset

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Asset

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Asset

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Asset

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Asset

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Asset

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Asset

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Asset

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Asset

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Asset

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Asset

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Asset

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

func HasAssetClass

func HasAssetClass() predicate.Asset

HasAssetClass applies the HasEdge predicate on the "asset_class" edge.

func HasAssetClassWith

func HasAssetClassWith(preds ...predicate.AssetClass) predicate.Asset

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

func HasCryptocurrency

func HasCryptocurrency() predicate.Asset

HasCryptocurrency applies the HasEdge predicate on the "cryptocurrency" edge.

func HasCryptocurrencyWith

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

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

func HasDailyAssetPrices

func HasDailyAssetPrices() predicate.Asset

HasDailyAssetPrices applies the HasEdge predicate on the "daily_asset_prices" edge.

func HasDailyAssetPricesWith

func HasDailyAssetPricesWith(preds ...predicate.DailyAssetPrice) predicate.Asset

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

func ID

func ID(id pulid.PULID) predicate.Asset

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id pulid.PULID) predicate.Asset

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id pulid.PULID) predicate.Asset

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id pulid.PULID) predicate.Asset

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id pulid.PULID) predicate.Asset

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id pulid.PULID) predicate.Asset

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pulid.PULID) predicate.Asset

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Asset) predicate.Asset

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Asset

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Asset

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Asset

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Asset

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Asset

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Asset

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Asset

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

func UpdatedAtNotIn

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

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