Documentation
¶
Index ¶
- Constants
- Variables
- func Amount(v float64) predicate.Grant
- func AmountEQ(v float64) predicate.Grant
- func AmountGT(v float64) predicate.Grant
- func AmountGTE(v float64) predicate.Grant
- func AmountIn(vs ...float64) predicate.Grant
- func AmountLT(v float64) predicate.Grant
- func AmountLTE(v float64) predicate.Grant
- func AmountNEQ(v float64) predicate.Grant
- func AmountNotIn(vs ...float64) predicate.Grant
- func And(predicates ...predicate.Grant) predicate.Grant
- func CreatedAt(v time.Time) predicate.Grant
- func CreatedAtEQ(v time.Time) predicate.Grant
- func CreatedAtGT(v time.Time) predicate.Grant
- func CreatedAtGTE(v time.Time) predicate.Grant
- func CreatedAtIn(vs ...time.Time) predicate.Grant
- func CreatedAtLT(v time.Time) predicate.Grant
- func CreatedAtLTE(v time.Time) predicate.Grant
- func CreatedAtNEQ(v time.Time) predicate.Grant
- func CreatedAtNotIn(vs ...time.Time) predicate.Grant
- func DeletedAt(v time.Time) predicate.Grant
- func DeletedAtEQ(v time.Time) predicate.Grant
- func DeletedAtGT(v time.Time) predicate.Grant
- func DeletedAtGTE(v time.Time) predicate.Grant
- func DeletedAtIn(vs ...time.Time) predicate.Grant
- func DeletedAtIsNil() predicate.Grant
- func DeletedAtLT(v time.Time) predicate.Grant
- func DeletedAtLTE(v time.Time) predicate.Grant
- func DeletedAtNEQ(v time.Time) predicate.Grant
- func DeletedAtNotIn(vs ...time.Time) predicate.Grant
- func DeletedAtNotNil() predicate.Grant
- func EffectiveAt(v time.Time) predicate.Grant
- func EffectiveAtEQ(v time.Time) predicate.Grant
- func EffectiveAtGT(v time.Time) predicate.Grant
- func EffectiveAtGTE(v time.Time) predicate.Grant
- func EffectiveAtIn(vs ...time.Time) predicate.Grant
- func EffectiveAtLT(v time.Time) predicate.Grant
- func EffectiveAtLTE(v time.Time) predicate.Grant
- func EffectiveAtNEQ(v time.Time) predicate.Grant
- func EffectiveAtNotIn(vs ...time.Time) predicate.Grant
- func ExpiresAt(v time.Time) predicate.Grant
- func ExpiresAtEQ(v time.Time) predicate.Grant
- func ExpiresAtGT(v time.Time) predicate.Grant
- func ExpiresAtGTE(v time.Time) predicate.Grant
- func ExpiresAtIn(vs ...time.Time) predicate.Grant
- func ExpiresAtLT(v time.Time) predicate.Grant
- func ExpiresAtLTE(v time.Time) predicate.Grant
- func ExpiresAtNEQ(v time.Time) predicate.Grant
- func ExpiresAtNotIn(vs ...time.Time) predicate.Grant
- func ID(id string) predicate.Grant
- func IDContainsFold(id string) predicate.Grant
- func IDEQ(id string) predicate.Grant
- func IDEqualFold(id string) predicate.Grant
- func IDGT(id string) predicate.Grant
- func IDGTE(id string) predicate.Grant
- func IDIn(ids ...string) predicate.Grant
- func IDLT(id string) predicate.Grant
- func IDLTE(id string) predicate.Grant
- func IDNEQ(id string) predicate.Grant
- func IDNotIn(ids ...string) predicate.Grant
- func MetadataIsNil() predicate.Grant
- func MetadataNotNil() predicate.Grant
- func Namespace(v string) predicate.Grant
- func NamespaceContains(v string) predicate.Grant
- func NamespaceContainsFold(v string) predicate.Grant
- func NamespaceEQ(v string) predicate.Grant
- func NamespaceEqualFold(v string) predicate.Grant
- func NamespaceGT(v string) predicate.Grant
- func NamespaceGTE(v string) predicate.Grant
- func NamespaceHasPrefix(v string) predicate.Grant
- func NamespaceHasSuffix(v string) predicate.Grant
- func NamespaceIn(vs ...string) predicate.Grant
- func NamespaceLT(v string) predicate.Grant
- func NamespaceLTE(v string) predicate.Grant
- func NamespaceNEQ(v string) predicate.Grant
- func NamespaceNotIn(vs ...string) predicate.Grant
- func Not(p predicate.Grant) predicate.Grant
- func Or(predicates ...predicate.Grant) predicate.Grant
- func OwnerID(v credit.GrantOwner) predicate.Grant
- func OwnerIDContains(v credit.GrantOwner) predicate.Grant
- func OwnerIDContainsFold(v credit.GrantOwner) predicate.Grant
- func OwnerIDEQ(v credit.GrantOwner) predicate.Grant
- func OwnerIDEqualFold(v credit.GrantOwner) predicate.Grant
- func OwnerIDGT(v credit.GrantOwner) predicate.Grant
- func OwnerIDGTE(v credit.GrantOwner) predicate.Grant
- func OwnerIDHasPrefix(v credit.GrantOwner) predicate.Grant
- func OwnerIDHasSuffix(v credit.GrantOwner) predicate.Grant
- func OwnerIDIn(vs ...credit.GrantOwner) predicate.Grant
- func OwnerIDLT(v credit.GrantOwner) predicate.Grant
- func OwnerIDLTE(v credit.GrantOwner) predicate.Grant
- func OwnerIDNEQ(v credit.GrantOwner) predicate.Grant
- func OwnerIDNotIn(vs ...credit.GrantOwner) predicate.Grant
- func Priority(v uint8) predicate.Grant
- func PriorityEQ(v uint8) predicate.Grant
- func PriorityGT(v uint8) predicate.Grant
- func PriorityGTE(v uint8) predicate.Grant
- func PriorityIn(vs ...uint8) predicate.Grant
- func PriorityLT(v uint8) predicate.Grant
- func PriorityLTE(v uint8) predicate.Grant
- func PriorityNEQ(v uint8) predicate.Grant
- func PriorityNotIn(vs ...uint8) predicate.Grant
- func RecurrenceAnchor(v time.Time) predicate.Grant
- func RecurrenceAnchorEQ(v time.Time) predicate.Grant
- func RecurrenceAnchorGT(v time.Time) predicate.Grant
- func RecurrenceAnchorGTE(v time.Time) predicate.Grant
- func RecurrenceAnchorIn(vs ...time.Time) predicate.Grant
- func RecurrenceAnchorIsNil() predicate.Grant
- func RecurrenceAnchorLT(v time.Time) predicate.Grant
- func RecurrenceAnchorLTE(v time.Time) predicate.Grant
- func RecurrenceAnchorNEQ(v time.Time) predicate.Grant
- func RecurrenceAnchorNotIn(vs ...time.Time) predicate.Grant
- func RecurrenceAnchorNotNil() predicate.Grant
- func RecurrencePeriodEQ(v credit.RecurrencePeriod) predicate.Grant
- func RecurrencePeriodIn(vs ...credit.RecurrencePeriod) predicate.Grant
- func RecurrencePeriodIsNil() predicate.Grant
- func RecurrencePeriodNEQ(v credit.RecurrencePeriod) predicate.Grant
- func RecurrencePeriodNotIn(vs ...credit.RecurrencePeriod) predicate.Grant
- func RecurrencePeriodNotNil() predicate.Grant
- func RecurrencePeriodValidator(rp credit.RecurrencePeriod) error
- func ResetMaxRollover(v float64) predicate.Grant
- func ResetMaxRolloverEQ(v float64) predicate.Grant
- func ResetMaxRolloverGT(v float64) predicate.Grant
- func ResetMaxRolloverGTE(v float64) predicate.Grant
- func ResetMaxRolloverIn(vs ...float64) predicate.Grant
- func ResetMaxRolloverLT(v float64) predicate.Grant
- func ResetMaxRolloverLTE(v float64) predicate.Grant
- func ResetMaxRolloverNEQ(v float64) predicate.Grant
- func ResetMaxRolloverNotIn(vs ...float64) predicate.Grant
- func UpdatedAt(v time.Time) predicate.Grant
- func UpdatedAtEQ(v time.Time) predicate.Grant
- func UpdatedAtGT(v time.Time) predicate.Grant
- func UpdatedAtGTE(v time.Time) predicate.Grant
- func UpdatedAtIn(vs ...time.Time) predicate.Grant
- func UpdatedAtLT(v time.Time) predicate.Grant
- func UpdatedAtLTE(v time.Time) predicate.Grant
- func UpdatedAtNEQ(v time.Time) predicate.Grant
- func UpdatedAtNotIn(vs ...time.Time) predicate.Grant
- func ValidColumn(column string) bool
- func VoidedAt(v time.Time) predicate.Grant
- func VoidedAtEQ(v time.Time) predicate.Grant
- func VoidedAtGT(v time.Time) predicate.Grant
- func VoidedAtGTE(v time.Time) predicate.Grant
- func VoidedAtIn(vs ...time.Time) predicate.Grant
- func VoidedAtIsNil() predicate.Grant
- func VoidedAtLT(v time.Time) predicate.Grant
- func VoidedAtLTE(v time.Time) predicate.Grant
- func VoidedAtNEQ(v time.Time) predicate.Grant
- func VoidedAtNotIn(vs ...time.Time) predicate.Grant
- func VoidedAtNotNil() predicate.Grant
- type OrderOption
- func ByAmount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEffectiveAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByPriority(opts ...sql.OrderTermOption) OrderOption
- func ByRecurrenceAnchor(opts ...sql.OrderTermOption) OrderOption
- func ByRecurrencePeriod(opts ...sql.OrderTermOption) OrderOption
- func ByResetMaxRollover(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVoidedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldNamespace, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldOwnerID, FieldAmount, FieldPriority, FieldEffectiveAt, FieldExpiration, FieldExpiresAt, FieldVoidedAt, FieldResetMaxRollover, FieldRecurrencePeriod, FieldRecurrenceAnchor, }
Columns holds all SQL columns for grant fields.
Functions ¶
func Amount ¶
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountNotIn ¶
AmountNotIn applies the NotIn predicate on the "amount" field.
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 EffectiveAt ¶
EffectiveAt applies equality check predicate on the "effective_at" field. It's identical to EffectiveAtEQ.
func EffectiveAtEQ ¶
EffectiveAtEQ applies the EQ predicate on the "effective_at" field.
func EffectiveAtGT ¶
EffectiveAtGT applies the GT predicate on the "effective_at" field.
func EffectiveAtGTE ¶
EffectiveAtGTE applies the GTE predicate on the "effective_at" field.
func EffectiveAtIn ¶
EffectiveAtIn applies the In predicate on the "effective_at" field.
func EffectiveAtLT ¶
EffectiveAtLT applies the LT predicate on the "effective_at" field.
func EffectiveAtLTE ¶
EffectiveAtLTE applies the LTE predicate on the "effective_at" field.
func EffectiveAtNEQ ¶
EffectiveAtNEQ applies the NEQ predicate on the "effective_at" field.
func EffectiveAtNotIn ¶
EffectiveAtNotIn applies the NotIn predicate on the "effective_at" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Namespace ¶
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
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 ¶
Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
func PriorityEQ ¶
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityGT ¶
PriorityGT applies the GT predicate on the "priority" field.
func PriorityGTE ¶
PriorityGTE applies the GTE predicate on the "priority" field.
func PriorityIn ¶
PriorityIn applies the In predicate on the "priority" field.
func PriorityLT ¶
PriorityLT applies the LT predicate on the "priority" field.
func PriorityLTE ¶
PriorityLTE applies the LTE predicate on the "priority" field.
func PriorityNEQ ¶
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
PriorityNotIn applies the NotIn predicate on the "priority" field.
func RecurrenceAnchor ¶
RecurrenceAnchor applies equality check predicate on the "recurrence_anchor" field. It's identical to RecurrenceAnchorEQ.
func RecurrenceAnchorEQ ¶
RecurrenceAnchorEQ applies the EQ predicate on the "recurrence_anchor" field.
func RecurrenceAnchorGT ¶
RecurrenceAnchorGT applies the GT predicate on the "recurrence_anchor" field.
func RecurrenceAnchorGTE ¶
RecurrenceAnchorGTE applies the GTE predicate on the "recurrence_anchor" field.
func RecurrenceAnchorIn ¶
RecurrenceAnchorIn applies the In predicate on the "recurrence_anchor" field.
func RecurrenceAnchorIsNil ¶
RecurrenceAnchorIsNil applies the IsNil predicate on the "recurrence_anchor" field.
func RecurrenceAnchorLT ¶
RecurrenceAnchorLT applies the LT predicate on the "recurrence_anchor" field.
func RecurrenceAnchorLTE ¶
RecurrenceAnchorLTE applies the LTE predicate on the "recurrence_anchor" field.
func RecurrenceAnchorNEQ ¶
RecurrenceAnchorNEQ applies the NEQ predicate on the "recurrence_anchor" field.
func RecurrenceAnchorNotIn ¶
RecurrenceAnchorNotIn applies the NotIn predicate on the "recurrence_anchor" field.
func RecurrenceAnchorNotNil ¶
RecurrenceAnchorNotNil applies the NotNil predicate on the "recurrence_anchor" field.
func RecurrencePeriodEQ ¶
func RecurrencePeriodEQ(v credit.RecurrencePeriod) predicate.Grant
RecurrencePeriodEQ applies the EQ predicate on the "recurrence_period" field.
func RecurrencePeriodIn ¶
func RecurrencePeriodIn(vs ...credit.RecurrencePeriod) predicate.Grant
RecurrencePeriodIn applies the In predicate on the "recurrence_period" field.
func RecurrencePeriodIsNil ¶
RecurrencePeriodIsNil applies the IsNil predicate on the "recurrence_period" field.
func RecurrencePeriodNEQ ¶
func RecurrencePeriodNEQ(v credit.RecurrencePeriod) predicate.Grant
RecurrencePeriodNEQ applies the NEQ predicate on the "recurrence_period" field.
func RecurrencePeriodNotIn ¶
func RecurrencePeriodNotIn(vs ...credit.RecurrencePeriod) predicate.Grant
RecurrencePeriodNotIn applies the NotIn predicate on the "recurrence_period" field.
func RecurrencePeriodNotNil ¶
RecurrencePeriodNotNil applies the NotNil predicate on the "recurrence_period" field.
func RecurrencePeriodValidator ¶
func RecurrencePeriodValidator(rp credit.RecurrencePeriod) error
RecurrencePeriodValidator is a validator for the "recurrence_period" field enum values. It is called by the builders before save.
func ResetMaxRollover ¶
ResetMaxRollover applies equality check predicate on the "reset_max_rollover" field. It's identical to ResetMaxRolloverEQ.
func ResetMaxRolloverEQ ¶
ResetMaxRolloverEQ applies the EQ predicate on the "reset_max_rollover" field.
func ResetMaxRolloverGT ¶
ResetMaxRolloverGT applies the GT predicate on the "reset_max_rollover" field.
func ResetMaxRolloverGTE ¶
ResetMaxRolloverGTE applies the GTE predicate on the "reset_max_rollover" field.
func ResetMaxRolloverIn ¶
ResetMaxRolloverIn applies the In predicate on the "reset_max_rollover" field.
func ResetMaxRolloverLT ¶
ResetMaxRolloverLT applies the LT predicate on the "reset_max_rollover" field.
func ResetMaxRolloverLTE ¶
ResetMaxRolloverLTE applies the LTE predicate on the "reset_max_rollover" field.
func ResetMaxRolloverNEQ ¶
ResetMaxRolloverNEQ applies the NEQ predicate on the "reset_max_rollover" field.
func ResetMaxRolloverNotIn ¶
ResetMaxRolloverNotIn applies the NotIn predicate on the "reset_max_rollover" field.
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).
func VoidedAt ¶
VoidedAt applies equality check predicate on the "voided_at" field. It's identical to VoidedAtEQ.
func VoidedAtEQ ¶
VoidedAtEQ applies the EQ predicate on the "voided_at" field.
func VoidedAtGT ¶
VoidedAtGT applies the GT predicate on the "voided_at" field.
func VoidedAtGTE ¶
VoidedAtGTE applies the GTE predicate on the "voided_at" field.
func VoidedAtIn ¶
VoidedAtIn applies the In predicate on the "voided_at" field.
func VoidedAtIsNil ¶
VoidedAtIsNil applies the IsNil predicate on the "voided_at" field.
func VoidedAtLT ¶
VoidedAtLT applies the LT predicate on the "voided_at" field.
func VoidedAtLTE ¶
VoidedAtLTE applies the LTE predicate on the "voided_at" field.
func VoidedAtNEQ ¶
VoidedAtNEQ applies the NEQ predicate on the "voided_at" field.
func VoidedAtNotIn ¶
VoidedAtNotIn applies the NotIn predicate on the "voided_at" field.
func VoidedAtNotNil ¶
VoidedAtNotNil applies the NotNil predicate on the "voided_at" field.
Types ¶
type OrderOption ¶
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 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.