weight

package
v0.0.0-...-8c11f49 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the weight type in the database.
	Label = "weight"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserid holds the string denoting the userid field in the database.
	FieldUserid = "userid"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// Table holds the table name of the weight in the database.
	Table = "weights"
)

Variables

Columns holds all SQL columns for weight fields.

Functions

func And

func And(predicates ...predicate.Weight) predicate.Weight

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Weight

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Weight

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Weight

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Weight

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Weight

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Weight

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Weight

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Weight

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

Or groups predicates with the OR operator between them.

func Timestamp

func Timestamp(v time.Time) predicate.Weight

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Weight

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Weight

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Weight

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Weight

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Weight

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Weight

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Weight

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Weight

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func Userid

func Userid(v int64) predicate.Weight

Userid applies equality check predicate on the "userid" field. It's identical to UseridEQ.

func UseridEQ

func UseridEQ(v int64) predicate.Weight

UseridEQ applies the EQ predicate on the "userid" field.

func UseridGT

func UseridGT(v int64) predicate.Weight

UseridGT applies the GT predicate on the "userid" field.

func UseridGTE

func UseridGTE(v int64) predicate.Weight

UseridGTE applies the GTE predicate on the "userid" field.

func UseridIn

func UseridIn(vs ...int64) predicate.Weight

UseridIn applies the In predicate on the "userid" field.

func UseridLT

func UseridLT(v int64) predicate.Weight

UseridLT applies the LT predicate on the "userid" field.

func UseridLTE

func UseridLTE(v int64) predicate.Weight

UseridLTE applies the LTE predicate on the "userid" field.

func UseridNEQ

func UseridNEQ(v int64) predicate.Weight

UseridNEQ applies the NEQ predicate on the "userid" field.

func UseridNotIn

func UseridNotIn(vs ...int64) predicate.Weight

UseridNotIn applies the NotIn predicate on the "userid" field.

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 float64) predicate.Weight

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

func ValueEQ

func ValueEQ(v float64) predicate.Weight

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

func ValueGT

func ValueGT(v float64) predicate.Weight

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

func ValueGTE

func ValueGTE(v float64) predicate.Weight

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

func ValueIn

func ValueIn(vs ...float64) predicate.Weight

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

func ValueLT

func ValueLT(v float64) predicate.Weight

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

func ValueLTE

func ValueLTE(v float64) predicate.Weight

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

func ValueNEQ

func ValueNEQ(v float64) predicate.Weight

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

func ValueNotIn

func ValueNotIn(vs ...float64) predicate.Weight

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Weight queries.

func ByID

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

ByID orders the results by the id field.

func ByTimestamp

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

ByTimestamp orders the results by the timestamp field.

func ByUserid

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

ByUserid orders the results by the userid 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