Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BillingSequence) predicate.BillingSequence
- func CreatedAt(v time.Time) predicate.BillingSequence
- func CreatedAtEQ(v time.Time) predicate.BillingSequence
- func CreatedAtGT(v time.Time) predicate.BillingSequence
- func CreatedAtGTE(v time.Time) predicate.BillingSequence
- func CreatedAtIn(vs ...time.Time) predicate.BillingSequence
- func CreatedAtLT(v time.Time) predicate.BillingSequence
- func CreatedAtLTE(v time.Time) predicate.BillingSequence
- func CreatedAtNEQ(v time.Time) predicate.BillingSequence
- func CreatedAtNotIn(vs ...time.Time) predicate.BillingSequence
- func ID(id int) predicate.BillingSequence
- func IDEQ(id int) predicate.BillingSequence
- func IDGT(id int) predicate.BillingSequence
- func IDGTE(id int) predicate.BillingSequence
- func IDIn(ids ...int) predicate.BillingSequence
- func IDLT(id int) predicate.BillingSequence
- func IDLTE(id int) predicate.BillingSequence
- func IDNEQ(id int) predicate.BillingSequence
- func IDNotIn(ids ...int) predicate.BillingSequence
- func LastSequence(v int) predicate.BillingSequence
- func LastSequenceEQ(v int) predicate.BillingSequence
- func LastSequenceGT(v int) predicate.BillingSequence
- func LastSequenceGTE(v int) predicate.BillingSequence
- func LastSequenceIn(vs ...int) predicate.BillingSequence
- func LastSequenceLT(v int) predicate.BillingSequence
- func LastSequenceLTE(v int) predicate.BillingSequence
- func LastSequenceNEQ(v int) predicate.BillingSequence
- func LastSequenceNotIn(vs ...int) predicate.BillingSequence
- func Not(p predicate.BillingSequence) predicate.BillingSequence
- func Or(predicates ...predicate.BillingSequence) predicate.BillingSequence
- func SubscriptionID(v string) predicate.BillingSequence
- func SubscriptionIDContains(v string) predicate.BillingSequence
- func SubscriptionIDContainsFold(v string) predicate.BillingSequence
- func SubscriptionIDEQ(v string) predicate.BillingSequence
- func SubscriptionIDEqualFold(v string) predicate.BillingSequence
- func SubscriptionIDGT(v string) predicate.BillingSequence
- func SubscriptionIDGTE(v string) predicate.BillingSequence
- func SubscriptionIDHasPrefix(v string) predicate.BillingSequence
- func SubscriptionIDHasSuffix(v string) predicate.BillingSequence
- func SubscriptionIDIn(vs ...string) predicate.BillingSequence
- func SubscriptionIDLT(v string) predicate.BillingSequence
- func SubscriptionIDLTE(v string) predicate.BillingSequence
- func SubscriptionIDNEQ(v string) predicate.BillingSequence
- func SubscriptionIDNotIn(vs ...string) predicate.BillingSequence
- func TenantID(v string) predicate.BillingSequence
- func TenantIDContains(v string) predicate.BillingSequence
- func TenantIDContainsFold(v string) predicate.BillingSequence
- func TenantIDEQ(v string) predicate.BillingSequence
- func TenantIDEqualFold(v string) predicate.BillingSequence
- func TenantIDGT(v string) predicate.BillingSequence
- func TenantIDGTE(v string) predicate.BillingSequence
- func TenantIDHasPrefix(v string) predicate.BillingSequence
- func TenantIDHasSuffix(v string) predicate.BillingSequence
- func TenantIDIn(vs ...string) predicate.BillingSequence
- func TenantIDLT(v string) predicate.BillingSequence
- func TenantIDLTE(v string) predicate.BillingSequence
- func TenantIDNEQ(v string) predicate.BillingSequence
- func TenantIDNotIn(vs ...string) predicate.BillingSequence
- func UpdatedAt(v time.Time) predicate.BillingSequence
- func UpdatedAtEQ(v time.Time) predicate.BillingSequence
- func UpdatedAtGT(v time.Time) predicate.BillingSequence
- func UpdatedAtGTE(v time.Time) predicate.BillingSequence
- func UpdatedAtIn(vs ...time.Time) predicate.BillingSequence
- func UpdatedAtLT(v time.Time) predicate.BillingSequence
- func UpdatedAtLTE(v time.Time) predicate.BillingSequence
- func UpdatedAtNEQ(v time.Time) predicate.BillingSequence
- func UpdatedAtNotIn(vs ...time.Time) predicate.BillingSequence
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastSequence(opts ...sql.OrderTermOption) OrderOption
- func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the billingsequence type in the database. Label = "billing_sequence" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldSubscriptionID holds the string denoting the subscription_id field in the database. FieldSubscriptionID = "subscription_id" // FieldLastSequence holds the string denoting the last_sequence field in the database. FieldLastSequence = "last_sequence" // 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" // Table holds the table name of the billingsequence in the database. Table = "billing_sequences" )
Variables ¶
var ( // TenantIDValidator is a validator for the "tenant_id" field. It is called by the builders before save. TenantIDValidator func(string) error // SubscriptionIDValidator is a validator for the "subscription_id" field. It is called by the builders before save. SubscriptionIDValidator func(string) error // DefaultLastSequence holds the default value on creation for the "last_sequence" field. DefaultLastSequence int // 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 )
var Columns = []string{ FieldID, FieldTenantID, FieldSubscriptionID, FieldLastSequence, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for billingsequence fields.
Functions ¶
func And ¶
func And(predicates ...predicate.BillingSequence) predicate.BillingSequence
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.BillingSequence
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.BillingSequence
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.BillingSequence
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.BillingSequence
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.BillingSequence
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.BillingSequence
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.BillingSequence
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.BillingSequence
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.BillingSequence
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDEQ ¶
func IDEQ(id int) predicate.BillingSequence
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.BillingSequence
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.BillingSequence
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.BillingSequence
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.BillingSequence
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.BillingSequence
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.BillingSequence
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.BillingSequence
IDNotIn applies the NotIn predicate on the ID field.
func LastSequence ¶
func LastSequence(v int) predicate.BillingSequence
LastSequence applies equality check predicate on the "last_sequence" field. It's identical to LastSequenceEQ.
func LastSequenceEQ ¶
func LastSequenceEQ(v int) predicate.BillingSequence
LastSequenceEQ applies the EQ predicate on the "last_sequence" field.
func LastSequenceGT ¶
func LastSequenceGT(v int) predicate.BillingSequence
LastSequenceGT applies the GT predicate on the "last_sequence" field.
func LastSequenceGTE ¶
func LastSequenceGTE(v int) predicate.BillingSequence
LastSequenceGTE applies the GTE predicate on the "last_sequence" field.
func LastSequenceIn ¶
func LastSequenceIn(vs ...int) predicate.BillingSequence
LastSequenceIn applies the In predicate on the "last_sequence" field.
func LastSequenceLT ¶
func LastSequenceLT(v int) predicate.BillingSequence
LastSequenceLT applies the LT predicate on the "last_sequence" field.
func LastSequenceLTE ¶
func LastSequenceLTE(v int) predicate.BillingSequence
LastSequenceLTE applies the LTE predicate on the "last_sequence" field.
func LastSequenceNEQ ¶
func LastSequenceNEQ(v int) predicate.BillingSequence
LastSequenceNEQ applies the NEQ predicate on the "last_sequence" field.
func LastSequenceNotIn ¶
func LastSequenceNotIn(vs ...int) predicate.BillingSequence
LastSequenceNotIn applies the NotIn predicate on the "last_sequence" field.
func Not ¶
func Not(p predicate.BillingSequence) predicate.BillingSequence
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.BillingSequence) predicate.BillingSequence
Or groups predicates with the OR operator between them.
func SubscriptionID ¶
func SubscriptionID(v string) predicate.BillingSequence
SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ.
func SubscriptionIDContains ¶
func SubscriptionIDContains(v string) predicate.BillingSequence
SubscriptionIDContains applies the Contains predicate on the "subscription_id" field.
func SubscriptionIDContainsFold ¶
func SubscriptionIDContainsFold(v string) predicate.BillingSequence
SubscriptionIDContainsFold applies the ContainsFold predicate on the "subscription_id" field.
func SubscriptionIDEQ ¶
func SubscriptionIDEQ(v string) predicate.BillingSequence
SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field.
func SubscriptionIDEqualFold ¶
func SubscriptionIDEqualFold(v string) predicate.BillingSequence
SubscriptionIDEqualFold applies the EqualFold predicate on the "subscription_id" field.
func SubscriptionIDGT ¶
func SubscriptionIDGT(v string) predicate.BillingSequence
SubscriptionIDGT applies the GT predicate on the "subscription_id" field.
func SubscriptionIDGTE ¶
func SubscriptionIDGTE(v string) predicate.BillingSequence
SubscriptionIDGTE applies the GTE predicate on the "subscription_id" field.
func SubscriptionIDHasPrefix ¶
func SubscriptionIDHasPrefix(v string) predicate.BillingSequence
SubscriptionIDHasPrefix applies the HasPrefix predicate on the "subscription_id" field.
func SubscriptionIDHasSuffix ¶
func SubscriptionIDHasSuffix(v string) predicate.BillingSequence
SubscriptionIDHasSuffix applies the HasSuffix predicate on the "subscription_id" field.
func SubscriptionIDIn ¶
func SubscriptionIDIn(vs ...string) predicate.BillingSequence
SubscriptionIDIn applies the In predicate on the "subscription_id" field.
func SubscriptionIDLT ¶
func SubscriptionIDLT(v string) predicate.BillingSequence
SubscriptionIDLT applies the LT predicate on the "subscription_id" field.
func SubscriptionIDLTE ¶
func SubscriptionIDLTE(v string) predicate.BillingSequence
SubscriptionIDLTE applies the LTE predicate on the "subscription_id" field.
func SubscriptionIDNEQ ¶
func SubscriptionIDNEQ(v string) predicate.BillingSequence
SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field.
func SubscriptionIDNotIn ¶
func SubscriptionIDNotIn(vs ...string) predicate.BillingSequence
SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field.
func TenantID ¶
func TenantID(v string) predicate.BillingSequence
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
func TenantIDContains(v string) predicate.BillingSequence
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
func TenantIDContainsFold(v string) predicate.BillingSequence
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
func TenantIDEQ(v string) predicate.BillingSequence
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
func TenantIDEqualFold(v string) predicate.BillingSequence
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
func TenantIDGT(v string) predicate.BillingSequence
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
func TenantIDGTE(v string) predicate.BillingSequence
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
func TenantIDHasPrefix(v string) predicate.BillingSequence
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
func TenantIDHasSuffix(v string) predicate.BillingSequence
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
func TenantIDIn(vs ...string) predicate.BillingSequence
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
func TenantIDLT(v string) predicate.BillingSequence
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
func TenantIDLTE(v string) predicate.BillingSequence
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
func TenantIDNEQ(v string) predicate.BillingSequence
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
func TenantIDNotIn(vs ...string) predicate.BillingSequence
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.BillingSequence
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.BillingSequence
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.BillingSequence
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.BillingSequence
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.BillingSequence
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.BillingSequence
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.BillingSequence
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.BillingSequence
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.BillingSequence
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the BillingSequence queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastSequence ¶
func ByLastSequence(opts ...sql.OrderTermOption) OrderOption
ByLastSequence orders the results by the last_sequence field.
func BySubscriptionID ¶
func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption
BySubscriptionID orders the results by the subscription_id field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.