activity

package
v0.0.0-...-9cfd0f1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the activity type in the database.
	Label = "activity"
	// 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"
	// FieldActiveCal holds the string denoting the active_cal field in the database.
	FieldActiveCal = "active_cal"
	// Table holds the table name of the activity in the database.
	Table = "activities"
)

Variables

Columns holds all SQL columns for activity fields.

Functions

func ActiveCal

func ActiveCal(v float64) predicate.Activity

ActiveCal applies equality check predicate on the "active_cal" field. It's identical to ActiveCalEQ.

func ActiveCalEQ

func ActiveCalEQ(v float64) predicate.Activity

ActiveCalEQ applies the EQ predicate on the "active_cal" field.

func ActiveCalGT

func ActiveCalGT(v float64) predicate.Activity

ActiveCalGT applies the GT predicate on the "active_cal" field.

func ActiveCalGTE

func ActiveCalGTE(v float64) predicate.Activity

ActiveCalGTE applies the GTE predicate on the "active_cal" field.

func ActiveCalIn

func ActiveCalIn(vs ...float64) predicate.Activity

ActiveCalIn applies the In predicate on the "active_cal" field.

func ActiveCalLT

func ActiveCalLT(v float64) predicate.Activity

ActiveCalLT applies the LT predicate on the "active_cal" field.

func ActiveCalLTE

func ActiveCalLTE(v float64) predicate.Activity

ActiveCalLTE applies the LTE predicate on the "active_cal" field.

func ActiveCalNEQ

func ActiveCalNEQ(v float64) predicate.Activity

ActiveCalNEQ applies the NEQ predicate on the "active_cal" field.

func ActiveCalNotIn

func ActiveCalNotIn(vs ...float64) predicate.Activity

ActiveCalNotIn applies the NotIn predicate on the "active_cal" field.

func And

func And(predicates ...predicate.Activity) predicate.Activity

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Activity

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Activity

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Activity

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Activity

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Activity

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Activity

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Activity

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Timestamp

func Timestamp(v time.Time) predicate.Activity

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

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Activity

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

func TimestampGT

func TimestampGT(v time.Time) predicate.Activity

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

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Activity

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

func TimestampIn

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

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

func TimestampLT

func TimestampLT(v time.Time) predicate.Activity

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

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Activity

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

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Activity

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

func TimestampNotIn

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

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

func Userid

func Userid(v int64) predicate.Activity

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

func UseridEQ

func UseridEQ(v int64) predicate.Activity

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

func UseridGT

func UseridGT(v int64) predicate.Activity

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

func UseridGTE

func UseridGTE(v int64) predicate.Activity

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

func UseridIn

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

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

func UseridLT

func UseridLT(v int64) predicate.Activity

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

func UseridLTE

func UseridLTE(v int64) predicate.Activity

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

func UseridNEQ

func UseridNEQ(v int64) predicate.Activity

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

func UseridNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Activity queries.

func ByActiveCal

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

ByActiveCal orders the results by the active_cal field.

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.

Jump to

Keyboard shortcuts

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