feature

package
v1.0.0-beta.85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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() string
)

Columns holds all SQL columns for feature fields.

Functions

func And

func And(predicates ...predicate.Feature) predicate.Feature

And groups predicates with the AND operator between them.

func Archived

func Archived(v bool) predicate.Feature

Archived applies equality check predicate on the "archived" field. It's identical to ArchivedEQ.

func ArchivedEQ

func ArchivedEQ(v bool) predicate.Feature

ArchivedEQ applies the EQ predicate on the "archived" field.

func ArchivedNEQ

func ArchivedNEQ(v bool) predicate.Feature

ArchivedNEQ applies the NEQ predicate on the "archived" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Feature

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Feature

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Feature

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Feature

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Feature

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Feature

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Feature

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Feature

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Feature

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasCreditGrants

func HasCreditGrants() predicate.Feature

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 ID

func ID(id string) predicate.Feature

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Feature

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Feature

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Feature

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Feature

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Feature

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Feature

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Feature

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Feature

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Feature

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Feature

IDNotIn applies the NotIn predicate on the ID field.

func MeterGroupByFiltersIsNil

func MeterGroupByFiltersIsNil() predicate.Feature

MeterGroupByFiltersIsNil applies the IsNil predicate on the "meter_group_by_filters" field.

func MeterGroupByFiltersNotNil

func MeterGroupByFiltersNotNil() predicate.Feature

MeterGroupByFiltersNotNil applies the NotNil predicate on the "meter_group_by_filters" field.

func MeterSlug

func MeterSlug(v string) predicate.Feature

MeterSlug applies equality check predicate on the "meter_slug" field. It's identical to MeterSlugEQ.

func MeterSlugContains

func MeterSlugContains(v string) predicate.Feature

MeterSlugContains applies the Contains predicate on the "meter_slug" field.

func MeterSlugContainsFold

func MeterSlugContainsFold(v string) predicate.Feature

MeterSlugContainsFold applies the ContainsFold predicate on the "meter_slug" field.

func MeterSlugEQ

func MeterSlugEQ(v string) predicate.Feature

MeterSlugEQ applies the EQ predicate on the "meter_slug" field.

func MeterSlugEqualFold

func MeterSlugEqualFold(v string) predicate.Feature

MeterSlugEqualFold applies the EqualFold predicate on the "meter_slug" field.

func MeterSlugGT

func MeterSlugGT(v string) predicate.Feature

MeterSlugGT applies the GT predicate on the "meter_slug" field.

func MeterSlugGTE

func MeterSlugGTE(v string) predicate.Feature

MeterSlugGTE applies the GTE predicate on the "meter_slug" field.

func MeterSlugHasPrefix

func MeterSlugHasPrefix(v string) predicate.Feature

MeterSlugHasPrefix applies the HasPrefix predicate on the "meter_slug" field.

func MeterSlugHasSuffix

func MeterSlugHasSuffix(v string) predicate.Feature

MeterSlugHasSuffix applies the HasSuffix predicate on the "meter_slug" field.

func MeterSlugIn

func MeterSlugIn(vs ...string) predicate.Feature

MeterSlugIn applies the In predicate on the "meter_slug" field.

func MeterSlugLT

func MeterSlugLT(v string) predicate.Feature

MeterSlugLT applies the LT predicate on the "meter_slug" field.

func MeterSlugLTE

func MeterSlugLTE(v string) predicate.Feature

MeterSlugLTE applies the LTE predicate on the "meter_slug" field.

func MeterSlugNEQ

func MeterSlugNEQ(v string) predicate.Feature

MeterSlugNEQ applies the NEQ predicate on the "meter_slug" field.

func MeterSlugNotIn

func MeterSlugNotIn(vs ...string) predicate.Feature

MeterSlugNotIn applies the NotIn predicate on the "meter_slug" field.

func Name

func Name(v string) predicate.Feature

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Feature

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Feature

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Feature

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Feature

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Feature

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Feature

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Feature

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Feature

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Feature

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Feature

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Feature

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Feature

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Feature

NameNotIn applies the NotIn predicate on the "name" field.

func Namespace

func Namespace(v string) predicate.Feature

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Feature

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Feature

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Feature

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Feature

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Feature

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Feature

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Feature

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Feature

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Feature

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Feature

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Feature

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Feature

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Feature

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Feature) predicate.Feature

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Feature

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Feature

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Feature

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Feature

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Feature

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Feature

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Feature

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Feature

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Feature

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL