Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Feature) predicate.Feature
- func ArchivedAt(v time.Time) predicate.Feature
- func ArchivedAtEQ(v time.Time) predicate.Feature
- func ArchivedAtGT(v time.Time) predicate.Feature
- func ArchivedAtGTE(v time.Time) predicate.Feature
- func ArchivedAtIn(vs ...time.Time) predicate.Feature
- func ArchivedAtIsNil() predicate.Feature
- func ArchivedAtLT(v time.Time) predicate.Feature
- func ArchivedAtLTE(v time.Time) predicate.Feature
- func ArchivedAtNEQ(v time.Time) predicate.Feature
- func ArchivedAtNotIn(vs ...time.Time) predicate.Feature
- func ArchivedAtNotNil() predicate.Feature
- func CreatedAt(v time.Time) predicate.Feature
- func CreatedAtEQ(v time.Time) predicate.Feature
- func CreatedAtGT(v time.Time) predicate.Feature
- func CreatedAtGTE(v time.Time) predicate.Feature
- func CreatedAtIn(vs ...time.Time) predicate.Feature
- func CreatedAtLT(v time.Time) predicate.Feature
- func CreatedAtLTE(v time.Time) predicate.Feature
- func CreatedAtNEQ(v time.Time) predicate.Feature
- func CreatedAtNotIn(vs ...time.Time) predicate.Feature
- func DeletedAt(v time.Time) predicate.Feature
- func DeletedAtEQ(v time.Time) predicate.Feature
- func DeletedAtGT(v time.Time) predicate.Feature
- func DeletedAtGTE(v time.Time) predicate.Feature
- func DeletedAtIn(vs ...time.Time) predicate.Feature
- func DeletedAtIsNil() predicate.Feature
- func DeletedAtLT(v time.Time) predicate.Feature
- func DeletedAtLTE(v time.Time) predicate.Feature
- func DeletedAtNEQ(v time.Time) predicate.Feature
- func DeletedAtNotIn(vs ...time.Time) predicate.Feature
- func DeletedAtNotNil() predicate.Feature
- func HasEntitlement() predicate.Feature
- func HasEntitlementWith(preds ...predicate.Entitlement) predicate.Feature
- func ID(id string) predicate.Feature
- func IDContainsFold(id string) predicate.Feature
- func IDEQ(id string) predicate.Feature
- func IDEqualFold(id string) predicate.Feature
- func IDGT(id string) predicate.Feature
- func IDGTE(id string) predicate.Feature
- func IDIn(ids ...string) predicate.Feature
- func IDLT(id string) predicate.Feature
- func IDLTE(id string) predicate.Feature
- func IDNEQ(id string) predicate.Feature
- func IDNotIn(ids ...string) predicate.Feature
- func Key(v string) predicate.Feature
- func KeyContains(v string) predicate.Feature
- func KeyContainsFold(v string) predicate.Feature
- func KeyEQ(v string) predicate.Feature
- func KeyEqualFold(v string) predicate.Feature
- func KeyGT(v string) predicate.Feature
- func KeyGTE(v string) predicate.Feature
- func KeyHasPrefix(v string) predicate.Feature
- func KeyHasSuffix(v string) predicate.Feature
- func KeyIn(vs ...string) predicate.Feature
- func KeyLT(v string) predicate.Feature
- func KeyLTE(v string) predicate.Feature
- func KeyNEQ(v string) predicate.Feature
- func KeyNotIn(vs ...string) predicate.Feature
- func MetadataIsNil() predicate.Feature
- func MetadataNotNil() predicate.Feature
- func MeterGroupByFiltersIsNil() predicate.Feature
- func MeterGroupByFiltersNotNil() predicate.Feature
- func MeterSlug(v string) predicate.Feature
- func MeterSlugContains(v string) predicate.Feature
- func MeterSlugContainsFold(v string) predicate.Feature
- func MeterSlugEQ(v string) predicate.Feature
- func MeterSlugEqualFold(v string) predicate.Feature
- func MeterSlugGT(v string) predicate.Feature
- func MeterSlugGTE(v string) predicate.Feature
- func MeterSlugHasPrefix(v string) predicate.Feature
- func MeterSlugHasSuffix(v string) predicate.Feature
- func MeterSlugIn(vs ...string) predicate.Feature
- func MeterSlugIsNil() predicate.Feature
- func MeterSlugLT(v string) predicate.Feature
- func MeterSlugLTE(v string) predicate.Feature
- func MeterSlugNEQ(v string) predicate.Feature
- func MeterSlugNotIn(vs ...string) predicate.Feature
- func MeterSlugNotNil() predicate.Feature
- func Name(v string) predicate.Feature
- func NameContains(v string) predicate.Feature
- func NameContainsFold(v string) predicate.Feature
- func NameEQ(v string) predicate.Feature
- func NameEqualFold(v string) predicate.Feature
- func NameGT(v string) predicate.Feature
- func NameGTE(v string) predicate.Feature
- func NameHasPrefix(v string) predicate.Feature
- func NameHasSuffix(v string) predicate.Feature
- func NameIn(vs ...string) predicate.Feature
- func NameLT(v string) predicate.Feature
- func NameLTE(v string) predicate.Feature
- func NameNEQ(v string) predicate.Feature
- func NameNotIn(vs ...string) predicate.Feature
- func Namespace(v string) predicate.Feature
- func NamespaceContains(v string) predicate.Feature
- func NamespaceContainsFold(v string) predicate.Feature
- func NamespaceEQ(v string) predicate.Feature
- func NamespaceEqualFold(v string) predicate.Feature
- func NamespaceGT(v string) predicate.Feature
- func NamespaceGTE(v string) predicate.Feature
- func NamespaceHasPrefix(v string) predicate.Feature
- func NamespaceHasSuffix(v string) predicate.Feature
- func NamespaceIn(vs ...string) predicate.Feature
- func NamespaceLT(v string) predicate.Feature
- func NamespaceLTE(v string) predicate.Feature
- func NamespaceNEQ(v string) predicate.Feature
- func NamespaceNotIn(vs ...string) predicate.Feature
- func Not(p predicate.Feature) predicate.Feature
- func Or(predicates ...predicate.Feature) predicate.Feature
- func UpdatedAt(v time.Time) predicate.Feature
- func UpdatedAtEQ(v time.Time) predicate.Feature
- func UpdatedAtGT(v time.Time) predicate.Feature
- func UpdatedAtGTE(v time.Time) predicate.Feature
- func UpdatedAtIn(vs ...time.Time) predicate.Feature
- func UpdatedAtLT(v time.Time) predicate.Feature
- func UpdatedAtLTE(v time.Time) predicate.Feature
- func UpdatedAtNEQ(v time.Time) predicate.Feature
- func UpdatedAtNotIn(vs ...time.Time) predicate.Feature
- func ValidColumn(column string) bool
- type OrderOption
- func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEntitlement(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEntitlementCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByMeterSlug(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the feature type in the database. Label = "feature" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldMeterSlug holds the string denoting the meter_slug field in the database. FieldMeterSlug = "meter_slug" // FieldMeterGroupByFilters holds the string denoting the meter_group_by_filters field in the database. FieldMeterGroupByFilters = "meter_group_by_filters" // FieldArchivedAt holds the string denoting the archived_at field in the database. FieldArchivedAt = "archived_at" // EdgeEntitlement holds the string denoting the entitlement edge name in mutations. EdgeEntitlement = "entitlement" // Table holds the table name of the feature in the database. Table = "features" // EntitlementTable is the table that holds the entitlement relation/edge. EntitlementTable = "entitlements" // EntitlementInverseTable is the table name for the Entitlement entity. // It exists in this package in order to avoid circular dependency with the "entitlement" package. EntitlementInverseTable = "entitlements" // EntitlementColumn is the table column denoting the entitlement relation/edge. EntitlementColumn = "feature_id" )
Variables ¶
var ( // 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 // NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save. NamespaceValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldMetadata, FieldNamespace, FieldName, FieldKey, FieldMeterSlug, FieldMeterGroupByFilters, FieldArchivedAt, }
Columns holds all SQL columns for feature fields.
Functions ¶
func ArchivedAt ¶
ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.
func ArchivedAtEQ ¶
ArchivedAtEQ applies the EQ predicate on the "archived_at" field.
func ArchivedAtGT ¶
ArchivedAtGT applies the GT predicate on the "archived_at" field.
func ArchivedAtGTE ¶
ArchivedAtGTE applies the GTE predicate on the "archived_at" field.
func ArchivedAtIn ¶
ArchivedAtIn applies the In predicate on the "archived_at" field.
func ArchivedAtIsNil ¶
ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.
func ArchivedAtLT ¶
ArchivedAtLT applies the LT predicate on the "archived_at" field.
func ArchivedAtLTE ¶
ArchivedAtLTE applies the LTE predicate on the "archived_at" field.
func ArchivedAtNEQ ¶
ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.
func ArchivedAtNotIn ¶
ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.
func ArchivedAtNotNil ¶
ArchivedAtNotNil applies the NotNil predicate on the "archived_at" 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 HasEntitlement ¶
HasEntitlement applies the HasEdge predicate on the "entitlement" edge.
func HasEntitlementWith ¶
func HasEntitlementWith(preds ...predicate.Entitlement) predicate.Feature
HasEntitlementWith applies the HasEdge predicate on the "entitlement" 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 KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func MeterGroupByFiltersIsNil ¶
MeterGroupByFiltersIsNil applies the IsNil predicate on the "meter_group_by_filters" field.
func MeterGroupByFiltersNotNil ¶
MeterGroupByFiltersNotNil applies the NotNil predicate on the "meter_group_by_filters" field.
func MeterSlug ¶
MeterSlug applies equality check predicate on the "meter_slug" field. It's identical to MeterSlugEQ.
func MeterSlugContains ¶
MeterSlugContains applies the Contains predicate on the "meter_slug" field.
func MeterSlugContainsFold ¶
MeterSlugContainsFold applies the ContainsFold predicate on the "meter_slug" field.
func MeterSlugEQ ¶
MeterSlugEQ applies the EQ predicate on the "meter_slug" field.
func MeterSlugEqualFold ¶
MeterSlugEqualFold applies the EqualFold predicate on the "meter_slug" field.
func MeterSlugGT ¶
MeterSlugGT applies the GT predicate on the "meter_slug" field.
func MeterSlugGTE ¶
MeterSlugGTE applies the GTE predicate on the "meter_slug" field.
func MeterSlugHasPrefix ¶
MeterSlugHasPrefix applies the HasPrefix predicate on the "meter_slug" field.
func MeterSlugHasSuffix ¶
MeterSlugHasSuffix applies the HasSuffix predicate on the "meter_slug" field.
func MeterSlugIn ¶
MeterSlugIn applies the In predicate on the "meter_slug" field.
func MeterSlugIsNil ¶
MeterSlugIsNil applies the IsNil predicate on the "meter_slug" field.
func MeterSlugLT ¶
MeterSlugLT applies the LT predicate on the "meter_slug" field.
func MeterSlugLTE ¶
MeterSlugLTE applies the LTE predicate on the "meter_slug" field.
func MeterSlugNEQ ¶
MeterSlugNEQ applies the NEQ predicate on the "meter_slug" field.
func MeterSlugNotIn ¶
MeterSlugNotIn applies the NotIn predicate on the "meter_slug" field.
func MeterSlugNotNil ¶
MeterSlugNotNil applies the NotNil predicate on the "meter_slug" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 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 Feature queries.
func ByArchivedAt ¶
func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
ByArchivedAt orders the results by the archived_at 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 ByEntitlement ¶
func ByEntitlement(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEntitlement orders the results by entitlement terms.
func ByEntitlementCount ¶
func ByEntitlementCount(opts ...sql.OrderTermOption) OrderOption
ByEntitlementCount orders the results by entitlement count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByMeterSlug ¶
func ByMeterSlug(opts ...sql.OrderTermOption) OrderOption
ByMeterSlug orders the results by the meter_slug field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.