transaction

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 transaction type in the database.
	Label = "transaction"
	// 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"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// FieldUnits holds the string denoting the units field in the database.
	FieldUnits = "units"
	// FieldPricePerUnit holds the string denoting the price_per_unit field in the database.
	FieldPricePerUnit = "price_per_unit"
	// FieldBlockchainID holds the string denoting the blockchain_id field in the database.
	FieldBlockchainID = "blockchain_id"
	// FieldExchangeID holds the string denoting the exchange_id field in the database.
	FieldExchangeID = "exchange_id"
	// FieldPortfolioID holds the string denoting the portfolio_id field in the database.
	FieldPortfolioID = "portfolio_id"
	// FieldBaseAssetID holds the string denoting the base_asset_id field in the database.
	FieldBaseAssetID = "base_asset_id"
	// FieldQuoteAssetID holds the string denoting the quote_asset_id field in the database.
	FieldQuoteAssetID = "quote_asset_id"
	// EdgeTransactionType holds the string denoting the transaction_type edge name in mutations.
	EdgeTransactionType = "transaction_type"
	// EdgeBaseAsset holds the string denoting the base_asset edge name in mutations.
	EdgeBaseAsset = "base_asset"
	// EdgeQuoteAsset holds the string denoting the quote_asset edge name in mutations.
	EdgeQuoteAsset = "quote_asset"
	// EdgePortfolio holds the string denoting the portfolio edge name in mutations.
	EdgePortfolio = "portfolio"
	// EdgeExchange holds the string denoting the exchange edge name in mutations.
	EdgeExchange = "exchange"
	// EdgeBlockchain holds the string denoting the blockchain edge name in mutations.
	EdgeBlockchain = "blockchain"
	// Table holds the table name of the transaction in the database.
	Table = "transactions"
	// TransactionTypeTable is the table that holds the transaction_type relation/edge.
	TransactionTypeTable = "transactions"
	// TransactionTypeInverseTable is the table name for the TransactionType entity.
	// It exists in this package in order to avoid circular dependency with the "transactiontype" package.
	TransactionTypeInverseTable = "transaction_types"
	// TransactionTypeColumn is the table column denoting the transaction_type relation/edge.
	TransactionTypeColumn = "transaction_transaction_type"
	// BaseAssetTable is the table that holds the base_asset relation/edge.
	BaseAssetTable = "transactions"
	// BaseAssetInverseTable is the table name for the Asset entity.
	// It exists in this package in order to avoid circular dependency with the "asset" package.
	BaseAssetInverseTable = "assets"
	// BaseAssetColumn is the table column denoting the base_asset relation/edge.
	BaseAssetColumn = "base_asset_id"
	// QuoteAssetTable is the table that holds the quote_asset relation/edge.
	QuoteAssetTable = "transactions"
	// QuoteAssetInverseTable is the table name for the Asset entity.
	// It exists in this package in order to avoid circular dependency with the "asset" package.
	QuoteAssetInverseTable = "assets"
	// QuoteAssetColumn is the table column denoting the quote_asset relation/edge.
	QuoteAssetColumn = "quote_asset_id"
	// PortfolioTable is the table that holds the portfolio relation/edge.
	PortfolioTable = "transactions"
	// PortfolioInverseTable is the table name for the Portfolio entity.
	// It exists in this package in order to avoid circular dependency with the "portfolio" package.
	PortfolioInverseTable = "portfolios"
	// PortfolioColumn is the table column denoting the portfolio relation/edge.
	PortfolioColumn = "portfolio_id"
	// ExchangeTable is the table that holds the exchange relation/edge.
	ExchangeTable = "transactions"
	// ExchangeInverseTable is the table name for the Exchange entity.
	// It exists in this package in order to avoid circular dependency with the "exchange" package.
	ExchangeInverseTable = "exchanges"
	// ExchangeColumn is the table column denoting the exchange relation/edge.
	ExchangeColumn = "exchange_id"
	// BlockchainTable is the table that holds the blockchain relation/edge.
	BlockchainTable = "transactions"
	// BlockchainInverseTable is the table name for the Blockchain entity.
	// It exists in this package in order to avoid circular dependency with the "blockchain" package.
	BlockchainInverseTable = "blockchains"
	// BlockchainColumn is the table column denoting the blockchain relation/edge.
	BlockchainColumn = "blockchain_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 transaction fields.

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

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

Functions

func And

func And(predicates ...predicate.Transaction) predicate.Transaction

And groups predicates with the AND operator between them.

func BaseAssetID

func BaseAssetID(v pulid.PULID) predicate.Transaction

BaseAssetID applies equality check predicate on the "base_asset_id" field. It's identical to BaseAssetIDEQ.

func BaseAssetIDContains

func BaseAssetIDContains(v pulid.PULID) predicate.Transaction

BaseAssetIDContains applies the Contains predicate on the "base_asset_id" field.

func BaseAssetIDContainsFold

func BaseAssetIDContainsFold(v pulid.PULID) predicate.Transaction

BaseAssetIDContainsFold applies the ContainsFold predicate on the "base_asset_id" field.

func BaseAssetIDEQ

func BaseAssetIDEQ(v pulid.PULID) predicate.Transaction

BaseAssetIDEQ applies the EQ predicate on the "base_asset_id" field.

func BaseAssetIDEqualFold

func BaseAssetIDEqualFold(v pulid.PULID) predicate.Transaction

BaseAssetIDEqualFold applies the EqualFold predicate on the "base_asset_id" field.

func BaseAssetIDGT

func BaseAssetIDGT(v pulid.PULID) predicate.Transaction

BaseAssetIDGT applies the GT predicate on the "base_asset_id" field.

func BaseAssetIDGTE

func BaseAssetIDGTE(v pulid.PULID) predicate.Transaction

BaseAssetIDGTE applies the GTE predicate on the "base_asset_id" field.

func BaseAssetIDHasPrefix

func BaseAssetIDHasPrefix(v pulid.PULID) predicate.Transaction

BaseAssetIDHasPrefix applies the HasPrefix predicate on the "base_asset_id" field.

func BaseAssetIDHasSuffix

func BaseAssetIDHasSuffix(v pulid.PULID) predicate.Transaction

BaseAssetIDHasSuffix applies the HasSuffix predicate on the "base_asset_id" field.

func BaseAssetIDIn

func BaseAssetIDIn(vs ...pulid.PULID) predicate.Transaction

BaseAssetIDIn applies the In predicate on the "base_asset_id" field.

func BaseAssetIDLT

func BaseAssetIDLT(v pulid.PULID) predicate.Transaction

BaseAssetIDLT applies the LT predicate on the "base_asset_id" field.

func BaseAssetIDLTE

func BaseAssetIDLTE(v pulid.PULID) predicate.Transaction

BaseAssetIDLTE applies the LTE predicate on the "base_asset_id" field.

func BaseAssetIDNEQ

func BaseAssetIDNEQ(v pulid.PULID) predicate.Transaction

BaseAssetIDNEQ applies the NEQ predicate on the "base_asset_id" field.

func BaseAssetIDNotIn

func BaseAssetIDNotIn(vs ...pulid.PULID) predicate.Transaction

BaseAssetIDNotIn applies the NotIn predicate on the "base_asset_id" field.

func BlockchainID

func BlockchainID(v pulid.PULID) predicate.Transaction

BlockchainID applies equality check predicate on the "blockchain_id" field. It's identical to BlockchainIDEQ.

func BlockchainIDContains

func BlockchainIDContains(v pulid.PULID) predicate.Transaction

BlockchainIDContains applies the Contains predicate on the "blockchain_id" field.

func BlockchainIDContainsFold

func BlockchainIDContainsFold(v pulid.PULID) predicate.Transaction

BlockchainIDContainsFold applies the ContainsFold predicate on the "blockchain_id" field.

func BlockchainIDEQ

func BlockchainIDEQ(v pulid.PULID) predicate.Transaction

BlockchainIDEQ applies the EQ predicate on the "blockchain_id" field.

func BlockchainIDEqualFold

func BlockchainIDEqualFold(v pulid.PULID) predicate.Transaction

BlockchainIDEqualFold applies the EqualFold predicate on the "blockchain_id" field.

func BlockchainIDGT

func BlockchainIDGT(v pulid.PULID) predicate.Transaction

BlockchainIDGT applies the GT predicate on the "blockchain_id" field.

func BlockchainIDGTE

func BlockchainIDGTE(v pulid.PULID) predicate.Transaction

BlockchainIDGTE applies the GTE predicate on the "blockchain_id" field.

func BlockchainIDHasPrefix

func BlockchainIDHasPrefix(v pulid.PULID) predicate.Transaction

BlockchainIDHasPrefix applies the HasPrefix predicate on the "blockchain_id" field.

func BlockchainIDHasSuffix

func BlockchainIDHasSuffix(v pulid.PULID) predicate.Transaction

BlockchainIDHasSuffix applies the HasSuffix predicate on the "blockchain_id" field.

func BlockchainIDIn

func BlockchainIDIn(vs ...pulid.PULID) predicate.Transaction

BlockchainIDIn applies the In predicate on the "blockchain_id" field.

func BlockchainIDIsNil

func BlockchainIDIsNil() predicate.Transaction

BlockchainIDIsNil applies the IsNil predicate on the "blockchain_id" field.

func BlockchainIDLT

func BlockchainIDLT(v pulid.PULID) predicate.Transaction

BlockchainIDLT applies the LT predicate on the "blockchain_id" field.

func BlockchainIDLTE

func BlockchainIDLTE(v pulid.PULID) predicate.Transaction

BlockchainIDLTE applies the LTE predicate on the "blockchain_id" field.

func BlockchainIDNEQ

func BlockchainIDNEQ(v pulid.PULID) predicate.Transaction

BlockchainIDNEQ applies the NEQ predicate on the "blockchain_id" field.

func BlockchainIDNotIn

func BlockchainIDNotIn(vs ...pulid.PULID) predicate.Transaction

BlockchainIDNotIn applies the NotIn predicate on the "blockchain_id" field.

func BlockchainIDNotNil

func BlockchainIDNotNil() predicate.Transaction

BlockchainIDNotNil applies the NotNil predicate on the "blockchain_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Transaction

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Transaction

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Transaction

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Transaction

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Transaction

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Transaction

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Transaction

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Transaction

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Transaction

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Transaction

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Transaction

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Transaction

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Transaction

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Transaction

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Transaction

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Transaction

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

func ExchangeID

func ExchangeID(v pulid.PULID) predicate.Transaction

ExchangeID applies equality check predicate on the "exchange_id" field. It's identical to ExchangeIDEQ.

func ExchangeIDContains

func ExchangeIDContains(v pulid.PULID) predicate.Transaction

ExchangeIDContains applies the Contains predicate on the "exchange_id" field.

func ExchangeIDContainsFold

func ExchangeIDContainsFold(v pulid.PULID) predicate.Transaction

ExchangeIDContainsFold applies the ContainsFold predicate on the "exchange_id" field.

func ExchangeIDEQ

func ExchangeIDEQ(v pulid.PULID) predicate.Transaction

ExchangeIDEQ applies the EQ predicate on the "exchange_id" field.

func ExchangeIDEqualFold

func ExchangeIDEqualFold(v pulid.PULID) predicate.Transaction

ExchangeIDEqualFold applies the EqualFold predicate on the "exchange_id" field.

func ExchangeIDGT

func ExchangeIDGT(v pulid.PULID) predicate.Transaction

ExchangeIDGT applies the GT predicate on the "exchange_id" field.

func ExchangeIDGTE

func ExchangeIDGTE(v pulid.PULID) predicate.Transaction

ExchangeIDGTE applies the GTE predicate on the "exchange_id" field.

func ExchangeIDHasPrefix

func ExchangeIDHasPrefix(v pulid.PULID) predicate.Transaction

ExchangeIDHasPrefix applies the HasPrefix predicate on the "exchange_id" field.

func ExchangeIDHasSuffix

func ExchangeIDHasSuffix(v pulid.PULID) predicate.Transaction

ExchangeIDHasSuffix applies the HasSuffix predicate on the "exchange_id" field.

func ExchangeIDIn

func ExchangeIDIn(vs ...pulid.PULID) predicate.Transaction

ExchangeIDIn applies the In predicate on the "exchange_id" field.

func ExchangeIDLT

func ExchangeIDLT(v pulid.PULID) predicate.Transaction

ExchangeIDLT applies the LT predicate on the "exchange_id" field.

func ExchangeIDLTE

func ExchangeIDLTE(v pulid.PULID) predicate.Transaction

ExchangeIDLTE applies the LTE predicate on the "exchange_id" field.

func ExchangeIDNEQ

func ExchangeIDNEQ(v pulid.PULID) predicate.Transaction

ExchangeIDNEQ applies the NEQ predicate on the "exchange_id" field.

func ExchangeIDNotIn

func ExchangeIDNotIn(vs ...pulid.PULID) predicate.Transaction

ExchangeIDNotIn applies the NotIn predicate on the "exchange_id" field.

func HasBaseAsset

func HasBaseAsset() predicate.Transaction

HasBaseAsset applies the HasEdge predicate on the "base_asset" edge.

func HasBaseAssetWith

func HasBaseAssetWith(preds ...predicate.Asset) predicate.Transaction

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

func HasBlockchain

func HasBlockchain() predicate.Transaction

HasBlockchain applies the HasEdge predicate on the "blockchain" edge.

func HasBlockchainWith

func HasBlockchainWith(preds ...predicate.Blockchain) predicate.Transaction

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

func HasExchange

func HasExchange() predicate.Transaction

HasExchange applies the HasEdge predicate on the "exchange" edge.

func HasExchangeWith

func HasExchangeWith(preds ...predicate.Exchange) predicate.Transaction

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

func HasPortfolio

func HasPortfolio() predicate.Transaction

HasPortfolio applies the HasEdge predicate on the "portfolio" edge.

func HasPortfolioWith

func HasPortfolioWith(preds ...predicate.Portfolio) predicate.Transaction

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

func HasQuoteAsset

func HasQuoteAsset() predicate.Transaction

HasQuoteAsset applies the HasEdge predicate on the "quote_asset" edge.

func HasQuoteAssetWith

func HasQuoteAssetWith(preds ...predicate.Asset) predicate.Transaction

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

func HasTransactionType

func HasTransactionType() predicate.Transaction

HasTransactionType applies the HasEdge predicate on the "transaction_type" edge.

func HasTransactionTypeWith

func HasTransactionTypeWith(preds ...predicate.TransactionType) predicate.Transaction

HasTransactionTypeWith applies the HasEdge predicate on the "transaction_type" 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

func IDGTE(id pulid.PULID) predicate.Transaction

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id pulid.PULID) predicate.Transaction

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id pulid.PULID) predicate.Transaction

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Transaction) predicate.Transaction

Or groups predicates with the OR operator between them.

func PortfolioID

func PortfolioID(v pulid.PULID) predicate.Transaction

PortfolioID applies equality check predicate on the "portfolio_id" field. It's identical to PortfolioIDEQ.

func PortfolioIDContains

func PortfolioIDContains(v pulid.PULID) predicate.Transaction

PortfolioIDContains applies the Contains predicate on the "portfolio_id" field.

func PortfolioIDContainsFold

func PortfolioIDContainsFold(v pulid.PULID) predicate.Transaction

PortfolioIDContainsFold applies the ContainsFold predicate on the "portfolio_id" field.

func PortfolioIDEQ

func PortfolioIDEQ(v pulid.PULID) predicate.Transaction

PortfolioIDEQ applies the EQ predicate on the "portfolio_id" field.

func PortfolioIDEqualFold

func PortfolioIDEqualFold(v pulid.PULID) predicate.Transaction

PortfolioIDEqualFold applies the EqualFold predicate on the "portfolio_id" field.

func PortfolioIDGT

func PortfolioIDGT(v pulid.PULID) predicate.Transaction

PortfolioIDGT applies the GT predicate on the "portfolio_id" field.

func PortfolioIDGTE

func PortfolioIDGTE(v pulid.PULID) predicate.Transaction

PortfolioIDGTE applies the GTE predicate on the "portfolio_id" field.

func PortfolioIDHasPrefix

func PortfolioIDHasPrefix(v pulid.PULID) predicate.Transaction

PortfolioIDHasPrefix applies the HasPrefix predicate on the "portfolio_id" field.

func PortfolioIDHasSuffix

func PortfolioIDHasSuffix(v pulid.PULID) predicate.Transaction

PortfolioIDHasSuffix applies the HasSuffix predicate on the "portfolio_id" field.

func PortfolioIDIn

func PortfolioIDIn(vs ...pulid.PULID) predicate.Transaction

PortfolioIDIn applies the In predicate on the "portfolio_id" field.

func PortfolioIDLT

func PortfolioIDLT(v pulid.PULID) predicate.Transaction

PortfolioIDLT applies the LT predicate on the "portfolio_id" field.

func PortfolioIDLTE

func PortfolioIDLTE(v pulid.PULID) predicate.Transaction

PortfolioIDLTE applies the LTE predicate on the "portfolio_id" field.

func PortfolioIDNEQ

func PortfolioIDNEQ(v pulid.PULID) predicate.Transaction

PortfolioIDNEQ applies the NEQ predicate on the "portfolio_id" field.

func PortfolioIDNotIn

func PortfolioIDNotIn(vs ...pulid.PULID) predicate.Transaction

PortfolioIDNotIn applies the NotIn predicate on the "portfolio_id" field.

func PricePerUnit

func PricePerUnit(v float64) predicate.Transaction

PricePerUnit applies equality check predicate on the "price_per_unit" field. It's identical to PricePerUnitEQ.

func PricePerUnitEQ

func PricePerUnitEQ(v float64) predicate.Transaction

PricePerUnitEQ applies the EQ predicate on the "price_per_unit" field.

func PricePerUnitGT

func PricePerUnitGT(v float64) predicate.Transaction

PricePerUnitGT applies the GT predicate on the "price_per_unit" field.

func PricePerUnitGTE

func PricePerUnitGTE(v float64) predicate.Transaction

PricePerUnitGTE applies the GTE predicate on the "price_per_unit" field.

func PricePerUnitIn

func PricePerUnitIn(vs ...float64) predicate.Transaction

PricePerUnitIn applies the In predicate on the "price_per_unit" field.

func PricePerUnitLT

func PricePerUnitLT(v float64) predicate.Transaction

PricePerUnitLT applies the LT predicate on the "price_per_unit" field.

func PricePerUnitLTE

func PricePerUnitLTE(v float64) predicate.Transaction

PricePerUnitLTE applies the LTE predicate on the "price_per_unit" field.

func PricePerUnitNEQ

func PricePerUnitNEQ(v float64) predicate.Transaction

PricePerUnitNEQ applies the NEQ predicate on the "price_per_unit" field.

func PricePerUnitNotIn

func PricePerUnitNotIn(vs ...float64) predicate.Transaction

PricePerUnitNotIn applies the NotIn predicate on the "price_per_unit" field.

func QuoteAssetID

func QuoteAssetID(v pulid.PULID) predicate.Transaction

QuoteAssetID applies equality check predicate on the "quote_asset_id" field. It's identical to QuoteAssetIDEQ.

func QuoteAssetIDContains

func QuoteAssetIDContains(v pulid.PULID) predicate.Transaction

QuoteAssetIDContains applies the Contains predicate on the "quote_asset_id" field.

func QuoteAssetIDContainsFold

func QuoteAssetIDContainsFold(v pulid.PULID) predicate.Transaction

QuoteAssetIDContainsFold applies the ContainsFold predicate on the "quote_asset_id" field.

func QuoteAssetIDEQ

func QuoteAssetIDEQ(v pulid.PULID) predicate.Transaction

QuoteAssetIDEQ applies the EQ predicate on the "quote_asset_id" field.

func QuoteAssetIDEqualFold

func QuoteAssetIDEqualFold(v pulid.PULID) predicate.Transaction

QuoteAssetIDEqualFold applies the EqualFold predicate on the "quote_asset_id" field.

func QuoteAssetIDGT

func QuoteAssetIDGT(v pulid.PULID) predicate.Transaction

QuoteAssetIDGT applies the GT predicate on the "quote_asset_id" field.

func QuoteAssetIDGTE

func QuoteAssetIDGTE(v pulid.PULID) predicate.Transaction

QuoteAssetIDGTE applies the GTE predicate on the "quote_asset_id" field.

func QuoteAssetIDHasPrefix

func QuoteAssetIDHasPrefix(v pulid.PULID) predicate.Transaction

QuoteAssetIDHasPrefix applies the HasPrefix predicate on the "quote_asset_id" field.

func QuoteAssetIDHasSuffix

func QuoteAssetIDHasSuffix(v pulid.PULID) predicate.Transaction

QuoteAssetIDHasSuffix applies the HasSuffix predicate on the "quote_asset_id" field.

func QuoteAssetIDIn

func QuoteAssetIDIn(vs ...pulid.PULID) predicate.Transaction

QuoteAssetIDIn applies the In predicate on the "quote_asset_id" field.

func QuoteAssetIDIsNil

func QuoteAssetIDIsNil() predicate.Transaction

QuoteAssetIDIsNil applies the IsNil predicate on the "quote_asset_id" field.

func QuoteAssetIDLT

func QuoteAssetIDLT(v pulid.PULID) predicate.Transaction

QuoteAssetIDLT applies the LT predicate on the "quote_asset_id" field.

func QuoteAssetIDLTE

func QuoteAssetIDLTE(v pulid.PULID) predicate.Transaction

QuoteAssetIDLTE applies the LTE predicate on the "quote_asset_id" field.

func QuoteAssetIDNEQ

func QuoteAssetIDNEQ(v pulid.PULID) predicate.Transaction

QuoteAssetIDNEQ applies the NEQ predicate on the "quote_asset_id" field.

func QuoteAssetIDNotIn

func QuoteAssetIDNotIn(vs ...pulid.PULID) predicate.Transaction

QuoteAssetIDNotIn applies the NotIn predicate on the "quote_asset_id" field.

func QuoteAssetIDNotNil

func QuoteAssetIDNotNil() predicate.Transaction

QuoteAssetIDNotNil applies the NotNil predicate on the "quote_asset_id" field.

func Time

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v time.Time) predicate.Transaction

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v time.Time) predicate.Transaction

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v time.Time) predicate.Transaction

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...time.Time) predicate.Transaction

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v time.Time) predicate.Transaction

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v time.Time) predicate.Transaction

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v time.Time) predicate.Transaction

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...time.Time) predicate.Transaction

TimeNotIn applies the NotIn predicate on the "time" field.

func Units

func Units(v int) predicate.Transaction

Units applies equality check predicate on the "units" field. It's identical to UnitsEQ.

func UnitsEQ

func UnitsEQ(v int) predicate.Transaction

UnitsEQ applies the EQ predicate on the "units" field.

func UnitsGT

func UnitsGT(v int) predicate.Transaction

UnitsGT applies the GT predicate on the "units" field.

func UnitsGTE

func UnitsGTE(v int) predicate.Transaction

UnitsGTE applies the GTE predicate on the "units" field.

func UnitsIn

func UnitsIn(vs ...int) predicate.Transaction

UnitsIn applies the In predicate on the "units" field.

func UnitsLT

func UnitsLT(v int) predicate.Transaction

UnitsLT applies the LT predicate on the "units" field.

func UnitsLTE

func UnitsLTE(v int) predicate.Transaction

UnitsLTE applies the LTE predicate on the "units" field.

func UnitsNEQ

func UnitsNEQ(v int) predicate.Transaction

UnitsNEQ applies the NEQ predicate on the "units" field.

func UnitsNotIn

func UnitsNotIn(vs ...int) predicate.Transaction

UnitsNotIn applies the NotIn predicate on the "units" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Transaction

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Transaction

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Transaction

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Transaction

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Transaction

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Transaction

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Transaction

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

func UpdatedAtNotIn

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

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