dbmeter

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the meter type in the database.
	Label = "meter"
	// 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"
	// 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"
	// 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"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldAnnotations holds the string denoting the annotations field in the database.
	FieldAnnotations = "annotations"
	// FieldEventType holds the string denoting the event_type field in the database.
	FieldEventType = "event_type"
	// FieldValueProperty holds the string denoting the value_property field in the database.
	FieldValueProperty = "value_property"
	// FieldGroupBy holds the string denoting the group_by field in the database.
	FieldGroupBy = "group_by"
	// FieldAggregation holds the string denoting the aggregation field in the database.
	FieldAggregation = "aggregation"
	// FieldEventFrom holds the string denoting the event_from field in the database.
	FieldEventFrom = "event_from"
	// EdgeFeature holds the string denoting the feature edge name in mutations.
	EdgeFeature = "feature"
	// Table holds the table name of the meter in the database.
	Table = "meters"
	// FeatureTable is the table that holds the feature relation/edge.
	FeatureTable = "features"
	// FeatureInverseTable is the table name for the Feature entity.
	// It exists in this package in order to avoid circular dependency with the "dbfeature" package.
	FeatureInverseTable = "features"
	// FeatureColumn is the table column denoting the feature relation/edge.
	FeatureColumn = "meter_id"
)

Variables

View Source
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
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// EventTypeValidator is a validator for the "event_type" field. It is called by the builders before save.
	EventTypeValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Columns holds all SQL columns for meter fields.

Functions

func AggregationEQ

func AggregationEQ(v meter.MeterAggregation) predicate.Meter

AggregationEQ applies the EQ predicate on the "aggregation" field.

func AggregationIn

func AggregationIn(vs ...meter.MeterAggregation) predicate.Meter

AggregationIn applies the In predicate on the "aggregation" field.

func AggregationNEQ

func AggregationNEQ(v meter.MeterAggregation) predicate.Meter

AggregationNEQ applies the NEQ predicate on the "aggregation" field.

func AggregationNotIn

func AggregationNotIn(vs ...meter.MeterAggregation) predicate.Meter

AggregationNotIn applies the NotIn predicate on the "aggregation" field.

func AggregationValidator

func AggregationValidator(a meter.MeterAggregation) error

AggregationValidator is a validator for the "aggregation" field enum values. It is called by the builders before save.

func And

func And(predicates ...predicate.Meter) predicate.Meter

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.Meter

AnnotationsIsNil applies the IsNil predicate on the "annotations" field.

func AnnotationsNotNil

func AnnotationsNotNil() predicate.Meter

AnnotationsNotNil applies the NotNil predicate on the "annotations" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Meter

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Meter

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Meter

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Meter

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Meter

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Meter

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Meter

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Meter

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Meter

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Meter

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Meter

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Meter

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Meter

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Meter

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Meter

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Meter

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Meter

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Meter

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Meter

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Meter

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Meter

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Meter

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Meter

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Meter

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Meter

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Meter

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Meter

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Meter

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Meter

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Meter

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Meter

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Meter

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Meter

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Meter

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EventFrom

func EventFrom(v time.Time) predicate.Meter

EventFrom applies equality check predicate on the "event_from" field. It's identical to EventFromEQ.

func EventFromEQ

func EventFromEQ(v time.Time) predicate.Meter

EventFromEQ applies the EQ predicate on the "event_from" field.

func EventFromGT

func EventFromGT(v time.Time) predicate.Meter

EventFromGT applies the GT predicate on the "event_from" field.

func EventFromGTE

func EventFromGTE(v time.Time) predicate.Meter

EventFromGTE applies the GTE predicate on the "event_from" field.

func EventFromIn

func EventFromIn(vs ...time.Time) predicate.Meter

EventFromIn applies the In predicate on the "event_from" field.

func EventFromIsNil

func EventFromIsNil() predicate.Meter

EventFromIsNil applies the IsNil predicate on the "event_from" field.

func EventFromLT

func EventFromLT(v time.Time) predicate.Meter

EventFromLT applies the LT predicate on the "event_from" field.

func EventFromLTE

func EventFromLTE(v time.Time) predicate.Meter

EventFromLTE applies the LTE predicate on the "event_from" field.

func EventFromNEQ

func EventFromNEQ(v time.Time) predicate.Meter

EventFromNEQ applies the NEQ predicate on the "event_from" field.

func EventFromNotIn

func EventFromNotIn(vs ...time.Time) predicate.Meter

EventFromNotIn applies the NotIn predicate on the "event_from" field.

func EventFromNotNil

func EventFromNotNil() predicate.Meter

EventFromNotNil applies the NotNil predicate on the "event_from" field.

func EventType

func EventType(v string) predicate.Meter

EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.

func EventTypeContains

func EventTypeContains(v string) predicate.Meter

EventTypeContains applies the Contains predicate on the "event_type" field.

func EventTypeContainsFold

func EventTypeContainsFold(v string) predicate.Meter

EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.

func EventTypeEQ

func EventTypeEQ(v string) predicate.Meter

EventTypeEQ applies the EQ predicate on the "event_type" field.

func EventTypeEqualFold

func EventTypeEqualFold(v string) predicate.Meter

EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.

func EventTypeGT

func EventTypeGT(v string) predicate.Meter

EventTypeGT applies the GT predicate on the "event_type" field.

func EventTypeGTE

func EventTypeGTE(v string) predicate.Meter

EventTypeGTE applies the GTE predicate on the "event_type" field.

func EventTypeHasPrefix

func EventTypeHasPrefix(v string) predicate.Meter

EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.

func EventTypeHasSuffix

func EventTypeHasSuffix(v string) predicate.Meter

EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.

func EventTypeIn

func EventTypeIn(vs ...string) predicate.Meter

EventTypeIn applies the In predicate on the "event_type" field.

func EventTypeLT

func EventTypeLT(v string) predicate.Meter

EventTypeLT applies the LT predicate on the "event_type" field.

func EventTypeLTE

func EventTypeLTE(v string) predicate.Meter

EventTypeLTE applies the LTE predicate on the "event_type" field.

func EventTypeNEQ

func EventTypeNEQ(v string) predicate.Meter

EventTypeNEQ applies the NEQ predicate on the "event_type" field.

func EventTypeNotIn

func EventTypeNotIn(vs ...string) predicate.Meter

EventTypeNotIn applies the NotIn predicate on the "event_type" field.

func GroupByIsNil

func GroupByIsNil() predicate.Meter

GroupByIsNil applies the IsNil predicate on the "group_by" field.

func GroupByNotNil

func GroupByNotNil() predicate.Meter

GroupByNotNil applies the NotNil predicate on the "group_by" field.

func HasFeature

func HasFeature() predicate.Meter

HasFeature applies the HasEdge predicate on the "feature" edge.

func HasFeatureWith

func HasFeatureWith(preds ...predicate.Feature) predicate.Meter

HasFeatureWith applies the HasEdge predicate on the "feature" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.Meter

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Meter

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Meter

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Meter

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Meter

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Meter

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Meter

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Meter

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Meter

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Meter

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Meter

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Meter

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Meter

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Meter

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Meter

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Meter

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Meter

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Meter

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Meter

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Meter

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Meter

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Meter

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Meter

KeyNotIn applies the NotIn predicate on the "key" field.

func MetadataIsNil

func MetadataIsNil() predicate.Meter

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Meter

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Meter

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

func NameContains

func NameContains(v string) predicate.Meter

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

func NameContainsFold

func NameContainsFold(v string) predicate.Meter

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

func NameEQ

func NameEQ(v string) predicate.Meter

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

func NameEqualFold

func NameEqualFold(v string) predicate.Meter

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

func NameGT

func NameGT(v string) predicate.Meter

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

func NameGTE

func NameGTE(v string) predicate.Meter

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Meter

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Meter

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Meter

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

func NameLTE

func NameLTE(v string) predicate.Meter

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

func NameNEQ

func NameNEQ(v string) predicate.Meter

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

func NameNotIn

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

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

func Namespace

func Namespace(v string) predicate.Meter

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

func NamespaceContains

func NamespaceContains(v string) predicate.Meter

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

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Meter

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

func NamespaceEQ

func NamespaceEQ(v string) predicate.Meter

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

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Meter

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

func NamespaceGT

func NamespaceGT(v string) predicate.Meter

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

func NamespaceGTE

func NamespaceGTE(v string) predicate.Meter

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

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Meter

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

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Meter

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

func NamespaceIn

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

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

func NamespaceLT

func NamespaceLT(v string) predicate.Meter

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

func NamespaceLTE

func NamespaceLTE(v string) predicate.Meter

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

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Meter

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

func NamespaceNotIn

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

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.Meter) predicate.Meter

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Meter

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Meter

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Meter

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Meter

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Meter

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Meter

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Meter

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

func UpdatedAtNotIn

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

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).

func ValueProperty

func ValueProperty(v string) predicate.Meter

ValueProperty applies equality check predicate on the "value_property" field. It's identical to ValuePropertyEQ.

func ValuePropertyContains

func ValuePropertyContains(v string) predicate.Meter

ValuePropertyContains applies the Contains predicate on the "value_property" field.

func ValuePropertyContainsFold

func ValuePropertyContainsFold(v string) predicate.Meter

ValuePropertyContainsFold applies the ContainsFold predicate on the "value_property" field.

func ValuePropertyEQ

func ValuePropertyEQ(v string) predicate.Meter

ValuePropertyEQ applies the EQ predicate on the "value_property" field.

func ValuePropertyEqualFold

func ValuePropertyEqualFold(v string) predicate.Meter

ValuePropertyEqualFold applies the EqualFold predicate on the "value_property" field.

func ValuePropertyGT

func ValuePropertyGT(v string) predicate.Meter

ValuePropertyGT applies the GT predicate on the "value_property" field.

func ValuePropertyGTE

func ValuePropertyGTE(v string) predicate.Meter

ValuePropertyGTE applies the GTE predicate on the "value_property" field.

func ValuePropertyHasPrefix

func ValuePropertyHasPrefix(v string) predicate.Meter

ValuePropertyHasPrefix applies the HasPrefix predicate on the "value_property" field.

func ValuePropertyHasSuffix

func ValuePropertyHasSuffix(v string) predicate.Meter

ValuePropertyHasSuffix applies the HasSuffix predicate on the "value_property" field.

func ValuePropertyIn

func ValuePropertyIn(vs ...string) predicate.Meter

ValuePropertyIn applies the In predicate on the "value_property" field.

func ValuePropertyIsNil

func ValuePropertyIsNil() predicate.Meter

ValuePropertyIsNil applies the IsNil predicate on the "value_property" field.

func ValuePropertyLT

func ValuePropertyLT(v string) predicate.Meter

ValuePropertyLT applies the LT predicate on the "value_property" field.

func ValuePropertyLTE

func ValuePropertyLTE(v string) predicate.Meter

ValuePropertyLTE applies the LTE predicate on the "value_property" field.

func ValuePropertyNEQ

func ValuePropertyNEQ(v string) predicate.Meter

ValuePropertyNEQ applies the NEQ predicate on the "value_property" field.

func ValuePropertyNotIn

func ValuePropertyNotIn(vs ...string) predicate.Meter

ValuePropertyNotIn applies the NotIn predicate on the "value_property" field.

func ValuePropertyNotNil

func ValuePropertyNotNil() predicate.Meter

ValuePropertyNotNil applies the NotNil predicate on the "value_property" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Meter queries.

func ByAggregation

func ByAggregation(opts ...sql.OrderTermOption) OrderOption

ByAggregation orders the results by the aggregation 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 ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByEventFrom

func ByEventFrom(opts ...sql.OrderTermOption) OrderOption

ByEventFrom orders the results by the event_from field.

func ByEventType

func ByEventType(opts ...sql.OrderTermOption) OrderOption

ByEventType orders the results by the event_type field.

func ByFeature

func ByFeature(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFeature orders the results by feature terms.

func ByFeatureCount

func ByFeatureCount(opts ...sql.OrderTermOption) OrderOption

ByFeatureCount orders the results by feature 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 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.

func ByValueProperty

func ByValueProperty(opts ...sql.OrderTermOption) OrderOption

ByValueProperty orders the results by the value_property field.

Jump to

Keyboard shortcuts

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