grant

package
v1.0.0-beta.109 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the grant type in the database.
	Label = "grant"
	// 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"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// 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"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
	// FieldEffectiveAt holds the string denoting the effective_at field in the database.
	FieldEffectiveAt = "effective_at"
	// FieldExpiration holds the string denoting the expiration field in the database.
	FieldExpiration = "expiration"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldVoidedAt holds the string denoting the voided_at field in the database.
	FieldVoidedAt = "voided_at"
	// FieldResetMaxRollover holds the string denoting the reset_max_rollover field in the database.
	FieldResetMaxRollover = "reset_max_rollover"
	// FieldResetMinRollover holds the string denoting the reset_min_rollover field in the database.
	FieldResetMinRollover = "reset_min_rollover"
	// FieldRecurrencePeriod holds the string denoting the recurrence_period field in the database.
	FieldRecurrencePeriod = "recurrence_period"
	// FieldRecurrenceAnchor holds the string denoting the recurrence_anchor field in the database.
	FieldRecurrenceAnchor = "recurrence_anchor"
	// Table holds the table name of the grant in the database.
	Table = "grants"
)

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

Columns holds all SQL columns for grant fields.

Functions

func Amount

func Amount(v float64) predicate.Grant

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

func AmountEQ(v float64) predicate.Grant

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

func AmountGT(v float64) predicate.Grant

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v float64) predicate.Grant

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...float64) predicate.Grant

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v float64) predicate.Grant

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v float64) predicate.Grant

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v float64) predicate.Grant

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...float64) predicate.Grant

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

func And(predicates ...predicate.Grant) predicate.Grant

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Grant

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Grant

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Grant

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Grant

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Grant

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Grant

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Grant

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Grant

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Grant

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Grant

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Grant

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Grant

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Grant

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Grant

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Grant

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Grant

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

func EffectiveAt

func EffectiveAt(v time.Time) predicate.Grant

EffectiveAt applies equality check predicate on the "effective_at" field. It's identical to EffectiveAtEQ.

func EffectiveAtEQ

func EffectiveAtEQ(v time.Time) predicate.Grant

EffectiveAtEQ applies the EQ predicate on the "effective_at" field.

func EffectiveAtGT

func EffectiveAtGT(v time.Time) predicate.Grant

EffectiveAtGT applies the GT predicate on the "effective_at" field.

func EffectiveAtGTE

func EffectiveAtGTE(v time.Time) predicate.Grant

EffectiveAtGTE applies the GTE predicate on the "effective_at" field.

func EffectiveAtIn

func EffectiveAtIn(vs ...time.Time) predicate.Grant

EffectiveAtIn applies the In predicate on the "effective_at" field.

func EffectiveAtLT

func EffectiveAtLT(v time.Time) predicate.Grant

EffectiveAtLT applies the LT predicate on the "effective_at" field.

func EffectiveAtLTE

func EffectiveAtLTE(v time.Time) predicate.Grant

EffectiveAtLTE applies the LTE predicate on the "effective_at" field.

func EffectiveAtNEQ

func EffectiveAtNEQ(v time.Time) predicate.Grant

EffectiveAtNEQ applies the NEQ predicate on the "effective_at" field.

func EffectiveAtNotIn

func EffectiveAtNotIn(vs ...time.Time) predicate.Grant

EffectiveAtNotIn applies the NotIn predicate on the "effective_at" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Grant

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Grant

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Grant

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Grant

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Grant

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Grant

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Grant

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Grant

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Grant

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ID

func ID(id string) predicate.Grant

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Grant

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Grant

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Grant

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Grant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Grant

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Grant

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Grant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Grant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Grant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Grant

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Grant

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Grant

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Namespace

func Namespace(v string) predicate.Grant

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

func NamespaceContains

func NamespaceContains(v string) predicate.Grant

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

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Grant

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

func NamespaceEQ

func NamespaceEQ(v string) predicate.Grant

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

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Grant

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

func NamespaceGT

func NamespaceGT(v string) predicate.Grant

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

func NamespaceGTE

func NamespaceGTE(v string) predicate.Grant

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

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Grant

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

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Grant

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

func NamespaceIn

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

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

func NamespaceLT

func NamespaceLT(v string) predicate.Grant

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

func NamespaceLTE

func NamespaceLTE(v string) predicate.Grant

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

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Grant

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

func NamespaceNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Grant) predicate.Grant

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v credit.GrantOwner) predicate.Grant

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

func OwnerIDContains

func OwnerIDContains(v credit.GrantOwner) predicate.Grant

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

func OwnerIDContainsFold

func OwnerIDContainsFold(v credit.GrantOwner) predicate.Grant

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

func OwnerIDEQ

func OwnerIDEQ(v credit.GrantOwner) predicate.Grant

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

func OwnerIDEqualFold

func OwnerIDEqualFold(v credit.GrantOwner) predicate.Grant

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

func OwnerIDGT

func OwnerIDGT(v credit.GrantOwner) predicate.Grant

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

func OwnerIDGTE

func OwnerIDGTE(v credit.GrantOwner) predicate.Grant

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

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v credit.GrantOwner) predicate.Grant

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

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v credit.GrantOwner) predicate.Grant

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

func OwnerIDIn

func OwnerIDIn(vs ...credit.GrantOwner) predicate.Grant

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

func OwnerIDLT

func OwnerIDLT(v credit.GrantOwner) predicate.Grant

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

func OwnerIDLTE

func OwnerIDLTE(v credit.GrantOwner) predicate.Grant

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

func OwnerIDNEQ

func OwnerIDNEQ(v credit.GrantOwner) predicate.Grant

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

func OwnerIDNotIn

func OwnerIDNotIn(vs ...credit.GrantOwner) predicate.Grant

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

func Priority

func Priority(v uint8) predicate.Grant

Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.

func PriorityEQ

func PriorityEQ(v uint8) predicate.Grant

PriorityEQ applies the EQ predicate on the "priority" field.

func PriorityGT

func PriorityGT(v uint8) predicate.Grant

PriorityGT applies the GT predicate on the "priority" field.

func PriorityGTE

func PriorityGTE(v uint8) predicate.Grant

PriorityGTE applies the GTE predicate on the "priority" field.

func PriorityIn

func PriorityIn(vs ...uint8) predicate.Grant

PriorityIn applies the In predicate on the "priority" field.

func PriorityLT

func PriorityLT(v uint8) predicate.Grant

PriorityLT applies the LT predicate on the "priority" field.

func PriorityLTE

func PriorityLTE(v uint8) predicate.Grant

PriorityLTE applies the LTE predicate on the "priority" field.

func PriorityNEQ

func PriorityNEQ(v uint8) predicate.Grant

PriorityNEQ applies the NEQ predicate on the "priority" field.

func PriorityNotIn

func PriorityNotIn(vs ...uint8) predicate.Grant

PriorityNotIn applies the NotIn predicate on the "priority" field.

func RecurrenceAnchor

func RecurrenceAnchor(v time.Time) predicate.Grant

RecurrenceAnchor applies equality check predicate on the "recurrence_anchor" field. It's identical to RecurrenceAnchorEQ.

func RecurrenceAnchorEQ

func RecurrenceAnchorEQ(v time.Time) predicate.Grant

RecurrenceAnchorEQ applies the EQ predicate on the "recurrence_anchor" field.

func RecurrenceAnchorGT

func RecurrenceAnchorGT(v time.Time) predicate.Grant

RecurrenceAnchorGT applies the GT predicate on the "recurrence_anchor" field.

func RecurrenceAnchorGTE

func RecurrenceAnchorGTE(v time.Time) predicate.Grant

RecurrenceAnchorGTE applies the GTE predicate on the "recurrence_anchor" field.

func RecurrenceAnchorIn

func RecurrenceAnchorIn(vs ...time.Time) predicate.Grant

RecurrenceAnchorIn applies the In predicate on the "recurrence_anchor" field.

func RecurrenceAnchorIsNil

func RecurrenceAnchorIsNil() predicate.Grant

RecurrenceAnchorIsNil applies the IsNil predicate on the "recurrence_anchor" field.

func RecurrenceAnchorLT

func RecurrenceAnchorLT(v time.Time) predicate.Grant

RecurrenceAnchorLT applies the LT predicate on the "recurrence_anchor" field.

func RecurrenceAnchorLTE

func RecurrenceAnchorLTE(v time.Time) predicate.Grant

RecurrenceAnchorLTE applies the LTE predicate on the "recurrence_anchor" field.

func RecurrenceAnchorNEQ

func RecurrenceAnchorNEQ(v time.Time) predicate.Grant

RecurrenceAnchorNEQ applies the NEQ predicate on the "recurrence_anchor" field.

func RecurrenceAnchorNotIn

func RecurrenceAnchorNotIn(vs ...time.Time) predicate.Grant

RecurrenceAnchorNotIn applies the NotIn predicate on the "recurrence_anchor" field.

func RecurrenceAnchorNotNil

func RecurrenceAnchorNotNil() predicate.Grant

RecurrenceAnchorNotNil applies the NotNil predicate on the "recurrence_anchor" field.

func RecurrencePeriodEQ

func RecurrencePeriodEQ(v recurrence.RecurrenceInterval) predicate.Grant

RecurrencePeriodEQ applies the EQ predicate on the "recurrence_period" field.

func RecurrencePeriodIn

func RecurrencePeriodIn(vs ...recurrence.RecurrenceInterval) predicate.Grant

RecurrencePeriodIn applies the In predicate on the "recurrence_period" field.

func RecurrencePeriodIsNil

func RecurrencePeriodIsNil() predicate.Grant

RecurrencePeriodIsNil applies the IsNil predicate on the "recurrence_period" field.

func RecurrencePeriodNEQ

func RecurrencePeriodNEQ(v recurrence.RecurrenceInterval) predicate.Grant

RecurrencePeriodNEQ applies the NEQ predicate on the "recurrence_period" field.

func RecurrencePeriodNotIn

func RecurrencePeriodNotIn(vs ...recurrence.RecurrenceInterval) predicate.Grant

RecurrencePeriodNotIn applies the NotIn predicate on the "recurrence_period" field.

func RecurrencePeriodNotNil

func RecurrencePeriodNotNil() predicate.Grant

RecurrencePeriodNotNil applies the NotNil predicate on the "recurrence_period" field.

func RecurrencePeriodValidator

func RecurrencePeriodValidator(rp recurrence.RecurrenceInterval) error

RecurrencePeriodValidator is a validator for the "recurrence_period" field enum values. It is called by the builders before save.

func ResetMaxRollover

func ResetMaxRollover(v float64) predicate.Grant

ResetMaxRollover applies equality check predicate on the "reset_max_rollover" field. It's identical to ResetMaxRolloverEQ.

func ResetMaxRolloverEQ

func ResetMaxRolloverEQ(v float64) predicate.Grant

ResetMaxRolloverEQ applies the EQ predicate on the "reset_max_rollover" field.

func ResetMaxRolloverGT

func ResetMaxRolloverGT(v float64) predicate.Grant

ResetMaxRolloverGT applies the GT predicate on the "reset_max_rollover" field.

func ResetMaxRolloverGTE

func ResetMaxRolloverGTE(v float64) predicate.Grant

ResetMaxRolloverGTE applies the GTE predicate on the "reset_max_rollover" field.

func ResetMaxRolloverIn

func ResetMaxRolloverIn(vs ...float64) predicate.Grant

ResetMaxRolloverIn applies the In predicate on the "reset_max_rollover" field.

func ResetMaxRolloverLT

func ResetMaxRolloverLT(v float64) predicate.Grant

ResetMaxRolloverLT applies the LT predicate on the "reset_max_rollover" field.

func ResetMaxRolloverLTE

func ResetMaxRolloverLTE(v float64) predicate.Grant

ResetMaxRolloverLTE applies the LTE predicate on the "reset_max_rollover" field.

func ResetMaxRolloverNEQ

func ResetMaxRolloverNEQ(v float64) predicate.Grant

ResetMaxRolloverNEQ applies the NEQ predicate on the "reset_max_rollover" field.

func ResetMaxRolloverNotIn

func ResetMaxRolloverNotIn(vs ...float64) predicate.Grant

ResetMaxRolloverNotIn applies the NotIn predicate on the "reset_max_rollover" field.

func ResetMinRollover

func ResetMinRollover(v float64) predicate.Grant

ResetMinRollover applies equality check predicate on the "reset_min_rollover" field. It's identical to ResetMinRolloverEQ.

func ResetMinRolloverEQ

func ResetMinRolloverEQ(v float64) predicate.Grant

ResetMinRolloverEQ applies the EQ predicate on the "reset_min_rollover" field.

func ResetMinRolloverGT

func ResetMinRolloverGT(v float64) predicate.Grant

ResetMinRolloverGT applies the GT predicate on the "reset_min_rollover" field.

func ResetMinRolloverGTE

func ResetMinRolloverGTE(v float64) predicate.Grant

ResetMinRolloverGTE applies the GTE predicate on the "reset_min_rollover" field.

func ResetMinRolloverIn

func ResetMinRolloverIn(vs ...float64) predicate.Grant

ResetMinRolloverIn applies the In predicate on the "reset_min_rollover" field.

func ResetMinRolloverLT

func ResetMinRolloverLT(v float64) predicate.Grant

ResetMinRolloverLT applies the LT predicate on the "reset_min_rollover" field.

func ResetMinRolloverLTE

func ResetMinRolloverLTE(v float64) predicate.Grant

ResetMinRolloverLTE applies the LTE predicate on the "reset_min_rollover" field.

func ResetMinRolloverNEQ

func ResetMinRolloverNEQ(v float64) predicate.Grant

ResetMinRolloverNEQ applies the NEQ predicate on the "reset_min_rollover" field.

func ResetMinRolloverNotIn

func ResetMinRolloverNotIn(vs ...float64) predicate.Grant

ResetMinRolloverNotIn applies the NotIn predicate on the "reset_min_rollover" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Grant

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Grant

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Grant

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Grant

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Grant

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Grant

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Grant

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

func UpdatedAtNotIn

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

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

func VoidedAt

func VoidedAt(v time.Time) predicate.Grant

VoidedAt applies equality check predicate on the "voided_at" field. It's identical to VoidedAtEQ.

func VoidedAtEQ

func VoidedAtEQ(v time.Time) predicate.Grant

VoidedAtEQ applies the EQ predicate on the "voided_at" field.

func VoidedAtGT

func VoidedAtGT(v time.Time) predicate.Grant

VoidedAtGT applies the GT predicate on the "voided_at" field.

func VoidedAtGTE

func VoidedAtGTE(v time.Time) predicate.Grant

VoidedAtGTE applies the GTE predicate on the "voided_at" field.

func VoidedAtIn

func VoidedAtIn(vs ...time.Time) predicate.Grant

VoidedAtIn applies the In predicate on the "voided_at" field.

func VoidedAtIsNil

func VoidedAtIsNil() predicate.Grant

VoidedAtIsNil applies the IsNil predicate on the "voided_at" field.

func VoidedAtLT

func VoidedAtLT(v time.Time) predicate.Grant

VoidedAtLT applies the LT predicate on the "voided_at" field.

func VoidedAtLTE

func VoidedAtLTE(v time.Time) predicate.Grant

VoidedAtLTE applies the LTE predicate on the "voided_at" field.

func VoidedAtNEQ

func VoidedAtNEQ(v time.Time) predicate.Grant

VoidedAtNEQ applies the NEQ predicate on the "voided_at" field.

func VoidedAtNotIn

func VoidedAtNotIn(vs ...time.Time) predicate.Grant

VoidedAtNotIn applies the NotIn predicate on the "voided_at" field.

func VoidedAtNotNil

func VoidedAtNotNil() predicate.Grant

VoidedAtNotNil applies the NotNil predicate on the "voided_at" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Grant queries.

func ByAmount

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

ByAmount orders the results by the amount 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 ByEffectiveAt

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

ByEffectiveAt orders the results by the effective_at field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at 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 ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByPriority

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

ByPriority orders the results by the priority field.

func ByRecurrenceAnchor

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

ByRecurrenceAnchor orders the results by the recurrence_anchor field.

func ByRecurrencePeriod

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

ByRecurrencePeriod orders the results by the recurrence_period field.

func ByResetMaxRollover

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

ByResetMaxRollover orders the results by the reset_max_rollover field.

func ByResetMinRollover

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

ByResetMinRollover orders the results by the reset_min_rollover field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVoidedAt

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

ByVoidedAt orders the results by the voided_at field.

Jump to

Keyboard shortcuts

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