Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Asset) predicate.Asset
- func CreatedAt(v time.Time) predicate.Asset
- func CreatedAtEQ(v time.Time) predicate.Asset
- func CreatedAtGT(v time.Time) predicate.Asset
- func CreatedAtGTE(v time.Time) predicate.Asset
- func CreatedAtIn(vs ...time.Time) predicate.Asset
- func CreatedAtLT(v time.Time) predicate.Asset
- func CreatedAtLTE(v time.Time) predicate.Asset
- func CreatedAtNEQ(v time.Time) predicate.Asset
- func CreatedAtNotIn(vs ...time.Time) predicate.Asset
- func DeletedAt(v time.Time) predicate.Asset
- func DeletedAtEQ(v time.Time) predicate.Asset
- func DeletedAtGT(v time.Time) predicate.Asset
- func DeletedAtGTE(v time.Time) predicate.Asset
- func DeletedAtIn(vs ...time.Time) predicate.Asset
- func DeletedAtIsNil() predicate.Asset
- func DeletedAtLT(v time.Time) predicate.Asset
- func DeletedAtLTE(v time.Time) predicate.Asset
- func DeletedAtNEQ(v time.Time) predicate.Asset
- func DeletedAtNotIn(vs ...time.Time) predicate.Asset
- func DeletedAtNotNil() predicate.Asset
- func HasAssetClass() predicate.Asset
- func HasAssetClassWith(preds ...predicate.AssetClass) predicate.Asset
- func HasCryptocurrency() predicate.Asset
- func HasCryptocurrencyWith(preds ...predicate.Cryptocurrency) predicate.Asset
- func HasDailyAssetPrices() predicate.Asset
- func HasDailyAssetPricesWith(preds ...predicate.DailyAssetPrice) predicate.Asset
- func ID(id pulid.PULID) predicate.Asset
- func IDEQ(id pulid.PULID) predicate.Asset
- func IDGT(id pulid.PULID) predicate.Asset
- func IDGTE(id pulid.PULID) predicate.Asset
- func IDIn(ids ...pulid.PULID) predicate.Asset
- func IDLT(id pulid.PULID) predicate.Asset
- func IDLTE(id pulid.PULID) predicate.Asset
- func IDNEQ(id pulid.PULID) predicate.Asset
- func IDNotIn(ids ...pulid.PULID) predicate.Asset
- func Not(p predicate.Asset) predicate.Asset
- func Or(predicates ...predicate.Asset) predicate.Asset
- func UpdatedAt(v time.Time) predicate.Asset
- func UpdatedAtEQ(v time.Time) predicate.Asset
- func UpdatedAtGT(v time.Time) predicate.Asset
- func UpdatedAtGTE(v time.Time) predicate.Asset
- func UpdatedAtIn(vs ...time.Time) predicate.Asset
- func UpdatedAtLT(v time.Time) predicate.Asset
- func UpdatedAtLTE(v time.Time) predicate.Asset
- func UpdatedAtNEQ(v time.Time) predicate.Asset
- func UpdatedAtNotIn(vs ...time.Time) predicate.Asset
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for asset fields.
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 CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasAssetClass ¶
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 ¶
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 ¶
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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.