Documentation
¶
Index ¶
- Constants
- Variables
- func Amount(v int32) predicate.CreditType
- func AmountEQ(v int32) predicate.CreditType
- func AmountGT(v int32) predicate.CreditType
- func AmountGTE(v int32) predicate.CreditType
- func AmountIn(vs ...int32) predicate.CreditType
- func AmountLT(v int32) predicate.CreditType
- func AmountLTE(v int32) predicate.CreditType
- func AmountNEQ(v int32) predicate.CreditType
- func AmountNotIn(vs ...int32) predicate.CreditType
- func And(predicates ...predicate.CreditType) predicate.CreditType
- func Annual(v bool) predicate.CreditType
- func AnnualEQ(v bool) predicate.CreditType
- func AnnualNEQ(v bool) predicate.CreditType
- func CreatedAt(v time.Time) predicate.CreditType
- func CreatedAtEQ(v time.Time) predicate.CreditType
- func CreatedAtGT(v time.Time) predicate.CreditType
- func CreatedAtGTE(v time.Time) predicate.CreditType
- func CreatedAtIn(vs ...time.Time) predicate.CreditType
- func CreatedAtLT(v time.Time) predicate.CreditType
- func CreatedAtLTE(v time.Time) predicate.CreditType
- func CreatedAtNEQ(v time.Time) predicate.CreditType
- func CreatedAtNotIn(vs ...time.Time) predicate.CreditType
- func Description(v string) predicate.CreditType
- func DescriptionContains(v string) predicate.CreditType
- func DescriptionContainsFold(v string) predicate.CreditType
- func DescriptionEQ(v string) predicate.CreditType
- func DescriptionEqualFold(v string) predicate.CreditType
- func DescriptionGT(v string) predicate.CreditType
- func DescriptionGTE(v string) predicate.CreditType
- func DescriptionHasPrefix(v string) predicate.CreditType
- func DescriptionHasSuffix(v string) predicate.CreditType
- func DescriptionIn(vs ...string) predicate.CreditType
- func DescriptionIsNil() predicate.CreditType
- func DescriptionLT(v string) predicate.CreditType
- func DescriptionLTE(v string) predicate.CreditType
- func DescriptionNEQ(v string) predicate.CreditType
- func DescriptionNotIn(vs ...string) predicate.CreditType
- func DescriptionNotNil() predicate.CreditType
- func HasCredits() predicate.CreditType
- func HasCreditsWith(preds ...predicate.Credit) predicate.CreditType
- func ID(id uuid.UUID) predicate.CreditType
- func IDEQ(id uuid.UUID) predicate.CreditType
- func IDGT(id uuid.UUID) predicate.CreditType
- func IDGTE(id uuid.UUID) predicate.CreditType
- func IDIn(ids ...uuid.UUID) predicate.CreditType
- func IDLT(id uuid.UUID) predicate.CreditType
- func IDLTE(id uuid.UUID) predicate.CreditType
- func IDNEQ(id uuid.UUID) predicate.CreditType
- func IDNotIn(ids ...uuid.UUID) predicate.CreditType
- func Name(v string) predicate.CreditType
- func NameContains(v string) predicate.CreditType
- func NameContainsFold(v string) predicate.CreditType
- func NameEQ(v string) predicate.CreditType
- func NameEqualFold(v string) predicate.CreditType
- func NameGT(v string) predicate.CreditType
- func NameGTE(v string) predicate.CreditType
- func NameHasPrefix(v string) predicate.CreditType
- func NameHasSuffix(v string) predicate.CreditType
- func NameIn(vs ...string) predicate.CreditType
- func NameLT(v string) predicate.CreditType
- func NameLTE(v string) predicate.CreditType
- func NameNEQ(v string) predicate.CreditType
- func NameNotIn(vs ...string) predicate.CreditType
- func Not(p predicate.CreditType) predicate.CreditType
- func Or(predicates ...predicate.CreditType) predicate.CreditType
- func StripeProductID(v string) predicate.CreditType
- func StripeProductIDContains(v string) predicate.CreditType
- func StripeProductIDContainsFold(v string) predicate.CreditType
- func StripeProductIDEQ(v string) predicate.CreditType
- func StripeProductIDEqualFold(v string) predicate.CreditType
- func StripeProductIDGT(v string) predicate.CreditType
- func StripeProductIDGTE(v string) predicate.CreditType
- func StripeProductIDHasPrefix(v string) predicate.CreditType
- func StripeProductIDHasSuffix(v string) predicate.CreditType
- func StripeProductIDIn(vs ...string) predicate.CreditType
- func StripeProductIDIsNil() predicate.CreditType
- func StripeProductIDLT(v string) predicate.CreditType
- func StripeProductIDLTE(v string) predicate.CreditType
- func StripeProductIDNEQ(v string) predicate.CreditType
- func StripeProductIDNotIn(vs ...string) predicate.CreditType
- func StripeProductIDNotNil() predicate.CreditType
- func TypeEQ(v Type) predicate.CreditType
- func TypeIn(vs ...Type) predicate.CreditType
- func TypeNEQ(v Type) predicate.CreditType
- func TypeNotIn(vs ...Type) predicate.CreditType
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.CreditType
- func UpdatedAtEQ(v time.Time) predicate.CreditType
- func UpdatedAtGT(v time.Time) predicate.CreditType
- func UpdatedAtGTE(v time.Time) predicate.CreditType
- func UpdatedAtIn(vs ...time.Time) predicate.CreditType
- func UpdatedAtLT(v time.Time) predicate.CreditType
- func UpdatedAtLTE(v time.Time) predicate.CreditType
- func UpdatedAtNEQ(v time.Time) predicate.CreditType
- func UpdatedAtNotIn(vs ...time.Time) predicate.CreditType
- func ValidColumn(column string) bool
- type OrderOption
- func ByAmount(opts ...sql.OrderTermOption) OrderOption
- func ByAnnual(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCredits(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreditsCount(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStripeProductID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the credittype type in the database. Label = "credit_type" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldStripeProductID holds the string denoting the stripe_product_id field in the database. FieldStripeProductID = "stripe_product_id" // FieldAnnual holds the string denoting the annual field in the database. FieldAnnual = "annual" // FieldType holds the string denoting the type field in the database. FieldType = "type" // 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" // EdgeCredits holds the string denoting the credits edge name in mutations. EdgeCredits = "credits" // Table holds the table name of the credittype in the database. Table = "credit_types" // CreditsTable is the table that holds the credits relation/edge. CreditsTable = "credits" // CreditsInverseTable is the table name for the Credit entity. // It exists in this package in order to avoid circular dependency with the "credit" package. CreditsInverseTable = "credits" // CreditsColumn is the table column denoting the credits relation/edge. CreditsColumn = "credit_type_id" )
Variables ¶
var ( // DefaultAnnual holds the default value on creation for the "annual" field. DefaultAnnual bool // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldAmount, FieldStripeProductID, FieldAnnual, FieldType, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for credittype fields.
Functions ¶
func Amount ¶
func Amount(v int32) predicate.CreditType
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountEQ ¶
func AmountEQ(v int32) predicate.CreditType
AmountEQ applies the EQ predicate on the "amount" field.
func AmountGT ¶
func AmountGT(v int32) predicate.CreditType
AmountGT applies the GT predicate on the "amount" field.
func AmountGTE ¶
func AmountGTE(v int32) predicate.CreditType
AmountGTE applies the GTE predicate on the "amount" field.
func AmountIn ¶
func AmountIn(vs ...int32) predicate.CreditType
AmountIn applies the In predicate on the "amount" field.
func AmountLT ¶
func AmountLT(v int32) predicate.CreditType
AmountLT applies the LT predicate on the "amount" field.
func AmountLTE ¶
func AmountLTE(v int32) predicate.CreditType
AmountLTE applies the LTE predicate on the "amount" field.
func AmountNEQ ¶
func AmountNEQ(v int32) predicate.CreditType
AmountNEQ applies the NEQ predicate on the "amount" field.
func AmountNotIn ¶
func AmountNotIn(vs ...int32) predicate.CreditType
AmountNotIn applies the NotIn predicate on the "amount" field.
func And ¶
func And(predicates ...predicate.CreditType) predicate.CreditType
And groups predicates with the AND operator between them.
func Annual ¶
func Annual(v bool) predicate.CreditType
Annual applies equality check predicate on the "annual" field. It's identical to AnnualEQ.
func AnnualEQ ¶
func AnnualEQ(v bool) predicate.CreditType
AnnualEQ applies the EQ predicate on the "annual" field.
func AnnualNEQ ¶
func AnnualNEQ(v bool) predicate.CreditType
AnnualNEQ applies the NEQ predicate on the "annual" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.CreditType
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.CreditType
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.CreditType
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.CreditType
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.CreditType
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.CreditType
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.CreditType
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.CreditType
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.CreditType
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
func Description(v string) predicate.CreditType
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.CreditType
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.CreditType
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.CreditType
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.CreditType
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.CreditType
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.CreditType
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.CreditType
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.CreditType
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.CreditType
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.CreditType
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.CreditType
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.CreditType
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.CreditType
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.CreditType
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.CreditType
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasCredits ¶
func HasCredits() predicate.CreditType
HasCredits applies the HasEdge predicate on the "credits" edge.
func HasCreditsWith ¶
func HasCreditsWith(preds ...predicate.Credit) predicate.CreditType
HasCreditsWith applies the HasEdge predicate on the "credits" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.CreditType
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.CreditType
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.CreditType
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.CreditType
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.CreditType
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.CreditType
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.CreditType
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.CreditType
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.CreditType
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.CreditType
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.CreditType
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.CreditType
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.CreditType
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.CreditType
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.CreditType
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.CreditType
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.CreditType
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.CreditType
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.CreditType
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.CreditType
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.CreditType
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.CreditType
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.CreditType) predicate.CreditType
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CreditType) predicate.CreditType
Or groups predicates with the OR operator between them.
func StripeProductID ¶
func StripeProductID(v string) predicate.CreditType
StripeProductID applies equality check predicate on the "stripe_product_id" field. It's identical to StripeProductIDEQ.
func StripeProductIDContains ¶
func StripeProductIDContains(v string) predicate.CreditType
StripeProductIDContains applies the Contains predicate on the "stripe_product_id" field.
func StripeProductIDContainsFold ¶
func StripeProductIDContainsFold(v string) predicate.CreditType
StripeProductIDContainsFold applies the ContainsFold predicate on the "stripe_product_id" field.
func StripeProductIDEQ ¶
func StripeProductIDEQ(v string) predicate.CreditType
StripeProductIDEQ applies the EQ predicate on the "stripe_product_id" field.
func StripeProductIDEqualFold ¶
func StripeProductIDEqualFold(v string) predicate.CreditType
StripeProductIDEqualFold applies the EqualFold predicate on the "stripe_product_id" field.
func StripeProductIDGT ¶
func StripeProductIDGT(v string) predicate.CreditType
StripeProductIDGT applies the GT predicate on the "stripe_product_id" field.
func StripeProductIDGTE ¶
func StripeProductIDGTE(v string) predicate.CreditType
StripeProductIDGTE applies the GTE predicate on the "stripe_product_id" field.
func StripeProductIDHasPrefix ¶
func StripeProductIDHasPrefix(v string) predicate.CreditType
StripeProductIDHasPrefix applies the HasPrefix predicate on the "stripe_product_id" field.
func StripeProductIDHasSuffix ¶
func StripeProductIDHasSuffix(v string) predicate.CreditType
StripeProductIDHasSuffix applies the HasSuffix predicate on the "stripe_product_id" field.
func StripeProductIDIn ¶
func StripeProductIDIn(vs ...string) predicate.CreditType
StripeProductIDIn applies the In predicate on the "stripe_product_id" field.
func StripeProductIDIsNil ¶
func StripeProductIDIsNil() predicate.CreditType
StripeProductIDIsNil applies the IsNil predicate on the "stripe_product_id" field.
func StripeProductIDLT ¶
func StripeProductIDLT(v string) predicate.CreditType
StripeProductIDLT applies the LT predicate on the "stripe_product_id" field.
func StripeProductIDLTE ¶
func StripeProductIDLTE(v string) predicate.CreditType
StripeProductIDLTE applies the LTE predicate on the "stripe_product_id" field.
func StripeProductIDNEQ ¶
func StripeProductIDNEQ(v string) predicate.CreditType
StripeProductIDNEQ applies the NEQ predicate on the "stripe_product_id" field.
func StripeProductIDNotIn ¶
func StripeProductIDNotIn(vs ...string) predicate.CreditType
StripeProductIDNotIn applies the NotIn predicate on the "stripe_product_id" field.
func StripeProductIDNotNil ¶
func StripeProductIDNotNil() predicate.CreditType
StripeProductIDNotNil applies the NotNil predicate on the "stripe_product_id" field.
func TypeEQ ¶
func TypeEQ(v Type) predicate.CreditType
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.CreditType
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.CreditType
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.CreditType
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.CreditType
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.CreditType
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.CreditType
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.CreditType
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.CreditType
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.CreditType
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.CreditType
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.CreditType
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.CreditType
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 CreditType queries.
func ByAmount ¶
func ByAmount(opts ...sql.OrderTermOption) OrderOption
ByAmount orders the results by the amount field.
func ByAnnual ¶
func ByAnnual(opts ...sql.OrderTermOption) OrderOption
ByAnnual orders the results by the annual field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCredits ¶
func ByCredits(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCredits orders the results by credits terms.
func ByCreditsCount ¶
func ByCreditsCount(opts ...sql.OrderTermOption) OrderOption
ByCreditsCount orders the results by credits count.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStripeProductID ¶
func ByStripeProductID(opts ...sql.OrderTermOption) OrderOption
ByStripeProductID orders the results by the stripe_product_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.