Documentation
¶
Index ¶
- Constants
- Variables
- func AddonID(v string) predicate.PlanAddon
- func AddonIDContains(v string) predicate.PlanAddon
- func AddonIDContainsFold(v string) predicate.PlanAddon
- func AddonIDEQ(v string) predicate.PlanAddon
- func AddonIDEqualFold(v string) predicate.PlanAddon
- func AddonIDGT(v string) predicate.PlanAddon
- func AddonIDGTE(v string) predicate.PlanAddon
- func AddonIDHasPrefix(v string) predicate.PlanAddon
- func AddonIDHasSuffix(v string) predicate.PlanAddon
- func AddonIDIn(vs ...string) predicate.PlanAddon
- func AddonIDLT(v string) predicate.PlanAddon
- func AddonIDLTE(v string) predicate.PlanAddon
- func AddonIDNEQ(v string) predicate.PlanAddon
- func AddonIDNotIn(vs ...string) predicate.PlanAddon
- func And(predicates ...predicate.PlanAddon) predicate.PlanAddon
- func AnnotationsIsNil() predicate.PlanAddon
- func AnnotationsNotNil() predicate.PlanAddon
- func CreatedAt(v time.Time) predicate.PlanAddon
- func CreatedAtEQ(v time.Time) predicate.PlanAddon
- func CreatedAtGT(v time.Time) predicate.PlanAddon
- func CreatedAtGTE(v time.Time) predicate.PlanAddon
- func CreatedAtIn(vs ...time.Time) predicate.PlanAddon
- func CreatedAtLT(v time.Time) predicate.PlanAddon
- func CreatedAtLTE(v time.Time) predicate.PlanAddon
- func CreatedAtNEQ(v time.Time) predicate.PlanAddon
- func CreatedAtNotIn(vs ...time.Time) predicate.PlanAddon
- func DeletedAt(v time.Time) predicate.PlanAddon
- func DeletedAtEQ(v time.Time) predicate.PlanAddon
- func DeletedAtGT(v time.Time) predicate.PlanAddon
- func DeletedAtGTE(v time.Time) predicate.PlanAddon
- func DeletedAtIn(vs ...time.Time) predicate.PlanAddon
- func DeletedAtIsNil() predicate.PlanAddon
- func DeletedAtLT(v time.Time) predicate.PlanAddon
- func DeletedAtLTE(v time.Time) predicate.PlanAddon
- func DeletedAtNEQ(v time.Time) predicate.PlanAddon
- func DeletedAtNotIn(vs ...time.Time) predicate.PlanAddon
- func DeletedAtNotNil() predicate.PlanAddon
- func FromPlanPhase(v string) predicate.PlanAddon
- func FromPlanPhaseContains(v string) predicate.PlanAddon
- func FromPlanPhaseContainsFold(v string) predicate.PlanAddon
- func FromPlanPhaseEQ(v string) predicate.PlanAddon
- func FromPlanPhaseEqualFold(v string) predicate.PlanAddon
- func FromPlanPhaseGT(v string) predicate.PlanAddon
- func FromPlanPhaseGTE(v string) predicate.PlanAddon
- func FromPlanPhaseHasPrefix(v string) predicate.PlanAddon
- func FromPlanPhaseHasSuffix(v string) predicate.PlanAddon
- func FromPlanPhaseIn(vs ...string) predicate.PlanAddon
- func FromPlanPhaseLT(v string) predicate.PlanAddon
- func FromPlanPhaseLTE(v string) predicate.PlanAddon
- func FromPlanPhaseNEQ(v string) predicate.PlanAddon
- func FromPlanPhaseNotIn(vs ...string) predicate.PlanAddon
- func HasAddon() predicate.PlanAddon
- func HasAddonWith(preds ...predicate.Addon) predicate.PlanAddon
- func HasPlan() predicate.PlanAddon
- func HasPlanWith(preds ...predicate.Plan) predicate.PlanAddon
- func ID(id string) predicate.PlanAddon
- func IDContainsFold(id string) predicate.PlanAddon
- func IDEQ(id string) predicate.PlanAddon
- func IDEqualFold(id string) predicate.PlanAddon
- func IDGT(id string) predicate.PlanAddon
- func IDGTE(id string) predicate.PlanAddon
- func IDIn(ids ...string) predicate.PlanAddon
- func IDLT(id string) predicate.PlanAddon
- func IDLTE(id string) predicate.PlanAddon
- func IDNEQ(id string) predicate.PlanAddon
- func IDNotIn(ids ...string) predicate.PlanAddon
- func MaxQuantity(v int) predicate.PlanAddon
- func MaxQuantityEQ(v int) predicate.PlanAddon
- func MaxQuantityGT(v int) predicate.PlanAddon
- func MaxQuantityGTE(v int) predicate.PlanAddon
- func MaxQuantityIn(vs ...int) predicate.PlanAddon
- func MaxQuantityIsNil() predicate.PlanAddon
- func MaxQuantityLT(v int) predicate.PlanAddon
- func MaxQuantityLTE(v int) predicate.PlanAddon
- func MaxQuantityNEQ(v int) predicate.PlanAddon
- func MaxQuantityNotIn(vs ...int) predicate.PlanAddon
- func MaxQuantityNotNil() predicate.PlanAddon
- func MetadataIsNil() predicate.PlanAddon
- func MetadataNotNil() predicate.PlanAddon
- func Namespace(v string) predicate.PlanAddon
- func NamespaceContains(v string) predicate.PlanAddon
- func NamespaceContainsFold(v string) predicate.PlanAddon
- func NamespaceEQ(v string) predicate.PlanAddon
- func NamespaceEqualFold(v string) predicate.PlanAddon
- func NamespaceGT(v string) predicate.PlanAddon
- func NamespaceGTE(v string) predicate.PlanAddon
- func NamespaceHasPrefix(v string) predicate.PlanAddon
- func NamespaceHasSuffix(v string) predicate.PlanAddon
- func NamespaceIn(vs ...string) predicate.PlanAddon
- func NamespaceLT(v string) predicate.PlanAddon
- func NamespaceLTE(v string) predicate.PlanAddon
- func NamespaceNEQ(v string) predicate.PlanAddon
- func NamespaceNotIn(vs ...string) predicate.PlanAddon
- func Not(p predicate.PlanAddon) predicate.PlanAddon
- func Or(predicates ...predicate.PlanAddon) predicate.PlanAddon
- func PlanID(v string) predicate.PlanAddon
- func PlanIDContains(v string) predicate.PlanAddon
- func PlanIDContainsFold(v string) predicate.PlanAddon
- func PlanIDEQ(v string) predicate.PlanAddon
- func PlanIDEqualFold(v string) predicate.PlanAddon
- func PlanIDGT(v string) predicate.PlanAddon
- func PlanIDGTE(v string) predicate.PlanAddon
- func PlanIDHasPrefix(v string) predicate.PlanAddon
- func PlanIDHasSuffix(v string) predicate.PlanAddon
- func PlanIDIn(vs ...string) predicate.PlanAddon
- func PlanIDLT(v string) predicate.PlanAddon
- func PlanIDLTE(v string) predicate.PlanAddon
- func PlanIDNEQ(v string) predicate.PlanAddon
- func PlanIDNotIn(vs ...string) predicate.PlanAddon
- func UpdatedAt(v time.Time) predicate.PlanAddon
- func UpdatedAtEQ(v time.Time) predicate.PlanAddon
- func UpdatedAtGT(v time.Time) predicate.PlanAddon
- func UpdatedAtGTE(v time.Time) predicate.PlanAddon
- func UpdatedAtIn(vs ...time.Time) predicate.PlanAddon
- func UpdatedAtLT(v time.Time) predicate.PlanAddon
- func UpdatedAtLTE(v time.Time) predicate.PlanAddon
- func UpdatedAtNEQ(v time.Time) predicate.PlanAddon
- func UpdatedAtNotIn(vs ...time.Time) predicate.PlanAddon
- func ValidColumn(column string) bool
- type OrderOption
- func ByAddonField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAddonID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFromPlanPhase(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxQuantity(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByPlanField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPlanID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the planaddon type in the database. Label = "plan_addon" // 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" // FieldAnnotations holds the string denoting the annotations field in the database. FieldAnnotations = "annotations" // 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" // FieldPlanID holds the string denoting the plan_id field in the database. FieldPlanID = "plan_id" // FieldAddonID holds the string denoting the addon_id field in the database. FieldAddonID = "addon_id" // FieldFromPlanPhase holds the string denoting the from_plan_phase field in the database. FieldFromPlanPhase = "from_plan_phase" // FieldMaxQuantity holds the string denoting the max_quantity field in the database. FieldMaxQuantity = "max_quantity" // EdgePlan holds the string denoting the plan edge name in mutations. EdgePlan = "plan" // EdgeAddon holds the string denoting the addon edge name in mutations. EdgeAddon = "addon" // Table holds the table name of the planaddon in the database. Table = "plan_addons" // PlanTable is the table that holds the plan relation/edge. PlanTable = "plan_addons" // PlanInverseTable is the table name for the Plan entity. // It exists in this package in order to avoid circular dependency with the "plan" package. PlanInverseTable = "plans" // PlanColumn is the table column denoting the plan relation/edge. PlanColumn = "plan_id" // AddonTable is the table that holds the addon relation/edge. AddonTable = "plan_addons" // AddonInverseTable is the table name for the Addon entity. // It exists in this package in order to avoid circular dependency with the "addon" package. AddonInverseTable = "addons" // AddonColumn is the table column denoting the addon relation/edge. AddonColumn = "addon_id" )
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 // PlanIDValidator is a validator for the "plan_id" field. It is called by the builders before save. PlanIDValidator func(string) error // AddonIDValidator is a validator for the "addon_id" field. It is called by the builders before save. AddonIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldNamespace, FieldMetadata, FieldAnnotations, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldPlanID, FieldAddonID, FieldFromPlanPhase, FieldMaxQuantity, }
Columns holds all SQL columns for planaddon fields.
Functions ¶
func AddonID ¶
AddonID applies equality check predicate on the "addon_id" field. It's identical to AddonIDEQ.
func AddonIDContains ¶
AddonIDContains applies the Contains predicate on the "addon_id" field.
func AddonIDContainsFold ¶
AddonIDContainsFold applies the ContainsFold predicate on the "addon_id" field.
func AddonIDEqualFold ¶
AddonIDEqualFold applies the EqualFold predicate on the "addon_id" field.
func AddonIDGTE ¶
AddonIDGTE applies the GTE predicate on the "addon_id" field.
func AddonIDHasPrefix ¶
AddonIDHasPrefix applies the HasPrefix predicate on the "addon_id" field.
func AddonIDHasSuffix ¶
AddonIDHasSuffix applies the HasSuffix predicate on the "addon_id" field.
func AddonIDLTE ¶
AddonIDLTE applies the LTE predicate on the "addon_id" field.
func AddonIDNEQ ¶
AddonIDNEQ applies the NEQ predicate on the "addon_id" field.
func AddonIDNotIn ¶
AddonIDNotIn applies the NotIn predicate on the "addon_id" field.
func AnnotationsIsNil ¶
AnnotationsIsNil applies the IsNil predicate on the "annotations" field.
func AnnotationsNotNil ¶
AnnotationsNotNil applies the NotNil predicate on the "annotations" 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 FromPlanPhase ¶
FromPlanPhase applies equality check predicate on the "from_plan_phase" field. It's identical to FromPlanPhaseEQ.
func FromPlanPhaseContains ¶
FromPlanPhaseContains applies the Contains predicate on the "from_plan_phase" field.
func FromPlanPhaseContainsFold ¶
FromPlanPhaseContainsFold applies the ContainsFold predicate on the "from_plan_phase" field.
func FromPlanPhaseEQ ¶
FromPlanPhaseEQ applies the EQ predicate on the "from_plan_phase" field.
func FromPlanPhaseEqualFold ¶
FromPlanPhaseEqualFold applies the EqualFold predicate on the "from_plan_phase" field.
func FromPlanPhaseGT ¶
FromPlanPhaseGT applies the GT predicate on the "from_plan_phase" field.
func FromPlanPhaseGTE ¶
FromPlanPhaseGTE applies the GTE predicate on the "from_plan_phase" field.
func FromPlanPhaseHasPrefix ¶
FromPlanPhaseHasPrefix applies the HasPrefix predicate on the "from_plan_phase" field.
func FromPlanPhaseHasSuffix ¶
FromPlanPhaseHasSuffix applies the HasSuffix predicate on the "from_plan_phase" field.
func FromPlanPhaseIn ¶
FromPlanPhaseIn applies the In predicate on the "from_plan_phase" field.
func FromPlanPhaseLT ¶
FromPlanPhaseLT applies the LT predicate on the "from_plan_phase" field.
func FromPlanPhaseLTE ¶
FromPlanPhaseLTE applies the LTE predicate on the "from_plan_phase" field.
func FromPlanPhaseNEQ ¶
FromPlanPhaseNEQ applies the NEQ predicate on the "from_plan_phase" field.
func FromPlanPhaseNotIn ¶
FromPlanPhaseNotIn applies the NotIn predicate on the "from_plan_phase" field.
func HasAddonWith ¶
HasAddonWith applies the HasEdge predicate on the "addon" edge with a given conditions (other predicates).
func HasPlanWith ¶
HasPlanWith applies the HasEdge predicate on the "plan" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MaxQuantity ¶
MaxQuantity applies equality check predicate on the "max_quantity" field. It's identical to MaxQuantityEQ.
func MaxQuantityEQ ¶
MaxQuantityEQ applies the EQ predicate on the "max_quantity" field.
func MaxQuantityGT ¶
MaxQuantityGT applies the GT predicate on the "max_quantity" field.
func MaxQuantityGTE ¶
MaxQuantityGTE applies the GTE predicate on the "max_quantity" field.
func MaxQuantityIn ¶
MaxQuantityIn applies the In predicate on the "max_quantity" field.
func MaxQuantityIsNil ¶
MaxQuantityIsNil applies the IsNil predicate on the "max_quantity" field.
func MaxQuantityLT ¶
MaxQuantityLT applies the LT predicate on the "max_quantity" field.
func MaxQuantityLTE ¶
MaxQuantityLTE applies the LTE predicate on the "max_quantity" field.
func MaxQuantityNEQ ¶
MaxQuantityNEQ applies the NEQ predicate on the "max_quantity" field.
func MaxQuantityNotIn ¶
MaxQuantityNotIn applies the NotIn predicate on the "max_quantity" field.
func MaxQuantityNotNil ¶
MaxQuantityNotNil applies the NotNil predicate on the "max_quantity" 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 PlanID ¶
PlanID applies equality check predicate on the "plan_id" field. It's identical to PlanIDEQ.
func PlanIDContains ¶
PlanIDContains applies the Contains predicate on the "plan_id" field.
func PlanIDContainsFold ¶
PlanIDContainsFold applies the ContainsFold predicate on the "plan_id" field.
func PlanIDEqualFold ¶
PlanIDEqualFold applies the EqualFold predicate on the "plan_id" field.
func PlanIDHasPrefix ¶
PlanIDHasPrefix applies the HasPrefix predicate on the "plan_id" field.
func PlanIDHasSuffix ¶
PlanIDHasSuffix applies the HasSuffix predicate on the "plan_id" field.
func PlanIDNotIn ¶
PlanIDNotIn applies the NotIn predicate on the "plan_id" 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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the PlanAddon queries.
func ByAddonField ¶
func ByAddonField(field string, opts ...sql.OrderTermOption) OrderOption
ByAddonField orders the results by addon field.
func ByAddonID ¶
func ByAddonID(opts ...sql.OrderTermOption) OrderOption
ByAddonID orders the results by the addon_id 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 ByFromPlanPhase ¶
func ByFromPlanPhase(opts ...sql.OrderTermOption) OrderOption
ByFromPlanPhase orders the results by the from_plan_phase field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMaxQuantity ¶
func ByMaxQuantity(opts ...sql.OrderTermOption) OrderOption
ByMaxQuantity orders the results by the max_quantity field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByPlanField ¶
func ByPlanField(field string, opts ...sql.OrderTermOption) OrderOption
ByPlanField orders the results by plan field.
func ByPlanID ¶
func ByPlanID(opts ...sql.OrderTermOption) OrderOption
ByPlanID orders the results by the plan_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.