balancesnapshot

package
v1.0.0-beta.160 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the balancesnapshot type in the database.
	Label = "balance_snapshot"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// 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"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldGrantBalances holds the string denoting the grant_balances field in the database.
	FieldGrantBalances = "grant_balances"
	// FieldBalance holds the string denoting the balance field in the database.
	FieldBalance = "balance"
	// FieldOverage holds the string denoting the overage field in the database.
	FieldOverage = "overage"
	// FieldAt holds the string denoting the at field in the database.
	FieldAt = "at"
	// EdgeEntitlement holds the string denoting the entitlement edge name in mutations.
	EdgeEntitlement = "entitlement"
	// Table holds the table name of the balancesnapshot in the database.
	Table = "balance_snapshots"
	// EntitlementTable is the table that holds the entitlement relation/edge.
	EntitlementTable = "balance_snapshots"
	// EntitlementInverseTable is the table name for the Entitlement entity.
	// It exists in this package in order to avoid circular dependency with the "entitlement" package.
	EntitlementInverseTable = "entitlements"
	// EntitlementColumn is the table column denoting the entitlement relation/edge.
	EntitlementColumn = "owner_id"
)

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// 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
)

Columns holds all SQL columns for balancesnapshot fields.

Functions

func And

And groups predicates with the AND operator between them.

func At

At applies equality check predicate on the "at" field. It's identical to AtEQ.

func AtEQ

AtEQ applies the EQ predicate on the "at" field.

func AtGT

AtGT applies the GT predicate on the "at" field.

func AtGTE

AtGTE applies the GTE predicate on the "at" field.

func AtIn

func AtIn(vs ...time.Time) predicate.BalanceSnapshot

AtIn applies the In predicate on the "at" field.

func AtLT

AtLT applies the LT predicate on the "at" field.

func AtLTE

AtLTE applies the LTE predicate on the "at" field.

func AtNEQ

AtNEQ applies the NEQ predicate on the "at" field.

func AtNotIn

func AtNotIn(vs ...time.Time) predicate.BalanceSnapshot

AtNotIn applies the NotIn predicate on the "at" field.

func Balance

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

func BalanceEQ

func BalanceEQ(v float64) predicate.BalanceSnapshot

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

func BalanceGT

func BalanceGT(v float64) predicate.BalanceSnapshot

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

func BalanceGTE

func BalanceGTE(v float64) predicate.BalanceSnapshot

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

func BalanceIn

func BalanceIn(vs ...float64) predicate.BalanceSnapshot

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

func BalanceLT

func BalanceLT(v float64) predicate.BalanceSnapshot

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

func BalanceLTE

func BalanceLTE(v float64) predicate.BalanceSnapshot

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

func BalanceNEQ

func BalanceNEQ(v float64) predicate.BalanceSnapshot

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

func BalanceNotIn

func BalanceNotIn(vs ...float64) predicate.BalanceSnapshot

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

func CreatedAt

func CreatedAt(v time.Time) predicate.BalanceSnapshot

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.BalanceSnapshot

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.BalanceSnapshot

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.BalanceSnapshot

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.BalanceSnapshot

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BalanceSnapshot

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BalanceSnapshot

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.BalanceSnapshot

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.BalanceSnapshot

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.BalanceSnapshot

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.BalanceSnapshot

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.BalanceSnapshot

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.BalanceSnapshot

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.BalanceSnapshot

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.BalanceSnapshot

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.BalanceSnapshot

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

func HasEntitlement

func HasEntitlement() predicate.BalanceSnapshot

HasEntitlement applies the HasEdge predicate on the "entitlement" edge.

func HasEntitlementWith

func HasEntitlementWith(preds ...predicate.Entitlement) predicate.BalanceSnapshot

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.BalanceSnapshot

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.BalanceSnapshot

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.BalanceSnapshot

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.BalanceSnapshot

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.BalanceSnapshot

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.BalanceSnapshot

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.BalanceSnapshot

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.BalanceSnapshot

IDNotIn applies the NotIn predicate on the ID field.

func Namespace

func Namespace(v string) predicate.BalanceSnapshot

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.BalanceSnapshot

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.BalanceSnapshot

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.BalanceSnapshot

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.BalanceSnapshot

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.BalanceSnapshot

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.BalanceSnapshot

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.BalanceSnapshot

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.BalanceSnapshot

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.BalanceSnapshot

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.BalanceSnapshot

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.BalanceSnapshot

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.BalanceSnapshot

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.BalanceSnapshot

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Overage

Overage applies equality check predicate on the "overage" field. It's identical to OverageEQ.

func OverageEQ

func OverageEQ(v float64) predicate.BalanceSnapshot

OverageEQ applies the EQ predicate on the "overage" field.

func OverageGT

func OverageGT(v float64) predicate.BalanceSnapshot

OverageGT applies the GT predicate on the "overage" field.

func OverageGTE

func OverageGTE(v float64) predicate.BalanceSnapshot

OverageGTE applies the GTE predicate on the "overage" field.

func OverageIn

func OverageIn(vs ...float64) predicate.BalanceSnapshot

OverageIn applies the In predicate on the "overage" field.

func OverageLT

func OverageLT(v float64) predicate.BalanceSnapshot

OverageLT applies the LT predicate on the "overage" field.

func OverageLTE

func OverageLTE(v float64) predicate.BalanceSnapshot

OverageLTE applies the LTE predicate on the "overage" field.

func OverageNEQ

func OverageNEQ(v float64) predicate.BalanceSnapshot

OverageNEQ applies the NEQ predicate on the "overage" field.

func OverageNotIn

func OverageNotIn(vs ...float64) predicate.BalanceSnapshot

OverageNotIn applies the NotIn predicate on the "overage" field.

func OwnerID

func OwnerID(v string) predicate.BalanceSnapshot

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.BalanceSnapshot

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.BalanceSnapshot

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.BalanceSnapshot

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.BalanceSnapshot

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.BalanceSnapshot

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.BalanceSnapshot

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.BalanceSnapshot

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.BalanceSnapshot

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.BalanceSnapshot

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.BalanceSnapshot

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.BalanceSnapshot

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.BalanceSnapshot

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.BalanceSnapshot

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.BalanceSnapshot

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.BalanceSnapshot

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.BalanceSnapshot

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.BalanceSnapshot

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.BalanceSnapshot

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BalanceSnapshot

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BalanceSnapshot

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

func UpdatedAtNotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the BalanceSnapshot queries.

func ByAt

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

ByAt orders the results by the at field.

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 ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByEntitlementField

func ByEntitlementField(field string, opts ...sql.OrderTermOption) OrderOption

ByEntitlementField orders the results by entitlement field.

func ByID

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

ByID orders the results by the id field.

func ByNamespace

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

ByNamespace orders the results by the namespace field.

func ByOverage

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

ByOverage orders the results by the overage field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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