counter

package
v0.0.0-...-4491578 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the counter type in the database.
	Label = "counter"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// Table holds the table name of the counter in the database.
	Table = "counters"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldValue,
}

Columns holds all SQL columns for counter fields.

Functions

func And

func And(predicates ...predicate.Counter) predicate.Counter

And groups predicates with the AND operator between them.

func ID

func ID(id string) predicate.Counter

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Counter

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Counter

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Counter

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Counter

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Counter

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Counter

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Counter

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Counter

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Counter) predicate.Counter

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

func Value

func Value(v int64) predicate.Counter

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueEQ

func ValueEQ(v int64) predicate.Counter

ValueEQ applies the EQ predicate on the "value" field.

func ValueGT

func ValueGT(v int64) predicate.Counter

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v int64) predicate.Counter

ValueGTE applies the GTE predicate on the "value" field.

func ValueIn

func ValueIn(vs ...int64) predicate.Counter

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v int64) predicate.Counter

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v int64) predicate.Counter

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v int64) predicate.Counter

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...int64) predicate.Counter

ValueNotIn applies the NotIn predicate on the "value" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Counter queries.

func ByID

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

ByID orders the results by the id field.

func ByValue

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

ByValue orders the results by the value field.

Jump to

Keyboard shortcuts

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