counter

package
v0.0.0-...-fa2c683 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 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"
	// FieldCount holds the string denoting the count field in the database.
	FieldCount = "count"
	// Table holds the table name of the counter in the database.
	Table = "counters"
)

Variables

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

Columns holds all SQL columns for counter fields.

View Source
var (
	// DefaultCount holds the default value on creation for the "count" field.
	DefaultCount int
)

Functions

func And

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

And groups predicates with the AND operator between them.

func Count

func Count(v int) predicate.Counter

Count applies equality check predicate on the "count" field. It's identical to CountEQ.

func CountEQ

func CountEQ(v int) predicate.Counter

CountEQ applies the EQ predicate on the "count" field.

func CountGT

func CountGT(v int) predicate.Counter

CountGT applies the GT predicate on the "count" field.

func CountGTE

func CountGTE(v int) predicate.Counter

CountGTE applies the GTE predicate on the "count" field.

func CountIn

func CountIn(vs ...int) predicate.Counter

CountIn applies the In predicate on the "count" field.

func CountLT

func CountLT(v int) predicate.Counter

CountLT applies the LT predicate on the "count" field.

func CountLTE

func CountLTE(v int) predicate.Counter

CountLTE applies the LTE predicate on the "count" field.

func CountNEQ

func CountNEQ(v int) predicate.Counter

CountNEQ applies the NEQ predicate on the "count" field.

func CountNotIn

func CountNotIn(vs ...int) predicate.Counter

CountNotIn applies the NotIn predicate on the "count" field.

func ID

func ID(id int) predicate.Counter

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Counter

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Counter

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Counter

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Counter

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Counter

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Counter

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) 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).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Counter queries.

func ByCount

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

ByCount orders the results by the count field.

func ByID

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

ByID orders the results by the id field.

Jump to

Keyboard shortcuts

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