Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Feature) predicate.Feature
- func Archived(v bool) predicate.Feature
- func ArchivedEQ(v bool) predicate.Feature
- func ArchivedNEQ(v bool) 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 HasCreditGrants() predicate.Feature
- func HasCreditGrantsWith(preds ...predicate.CreditEntry) predicate.Feature
- func ID(id pgulid.ULID) predicate.Feature
- func IDEQ(id pgulid.ULID) predicate.Feature
- func IDGT(id pgulid.ULID) predicate.Feature
- func IDGTE(id pgulid.ULID) predicate.Feature
- func IDIn(ids ...pgulid.ULID) predicate.Feature
- func IDLT(id pgulid.ULID) predicate.Feature
- func IDLTE(id pgulid.ULID) predicate.Feature
- func IDNEQ(id pgulid.ULID) predicate.Feature
- func IDNotIn(ids ...pgulid.ULID) 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 MeterSlugLT(v string) predicate.Feature
- func MeterSlugLTE(v string) predicate.Feature
- func MeterSlugNEQ(v string) predicate.Feature
- func MeterSlugNotIn(vs ...string) 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 ByArchived(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreditGrants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreditGrantsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(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" // 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" // 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" // FieldArchived holds the string denoting the archived field in the database. FieldArchived = "archived" // EdgeCreditGrants holds the string denoting the credit_grants edge name in mutations. EdgeCreditGrants = "credit_grants" // Table holds the table name of the feature in the database. Table = "features" // CreditGrantsTable is the table that holds the credit_grants relation/edge. CreditGrantsTable = "credit_entries" // CreditGrantsInverseTable is the table name for the CreditEntry entity. // It exists in this package in order to avoid circular dependency with the "creditentry" package. CreditGrantsInverseTable = "credit_entries" // CreditGrantsColumn is the table column denoting the credit_grants relation/edge. CreditGrantsColumn = "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 // MeterSlugValidator is a validator for the "meter_slug" field. It is called by the builders before save. MeterSlugValidator func(string) error // DefaultArchived holds the default value on creation for the "archived" field. DefaultArchived bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() pgulid.ULID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldNamespace, FieldName, FieldMeterSlug, FieldMeterGroupByFilters, FieldArchived, }
Columns holds all SQL columns for feature fields.
Functions ¶
func Archived ¶
Archived applies equality check predicate on the "archived" field. It's identical to ArchivedEQ.
func ArchivedEQ ¶
ArchivedEQ applies the EQ predicate on the "archived" field.
func ArchivedNEQ ¶
ArchivedNEQ applies the NEQ predicate on the "archived" 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 HasCreditGrants ¶
HasCreditGrants applies the HasEdge predicate on the "credit_grants" edge.
func HasCreditGrantsWith ¶
func HasCreditGrantsWith(preds ...predicate.CreditEntry) predicate.Feature
HasCreditGrantsWith applies the HasEdge predicate on the "credit_grants" edge with a given conditions (other predicates).
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 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 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 ByArchived ¶
func ByArchived(opts ...sql.OrderTermOption) OrderOption
ByArchived orders the results by the archived field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreditGrants ¶
func ByCreditGrants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCreditGrants orders the results by credit_grants terms.
func ByCreditGrantsCount ¶
func ByCreditGrantsCount(opts ...sql.OrderTermOption) OrderOption
ByCreditGrantsCount orders the results by credit_grants count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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.