cycle

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cycle type in the database.
	Label = "cycle"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFkUserID holds the string denoting the fk_user_id field in the database.
	FieldFkUserID = "fk_user_id"
	// FieldCycle holds the string denoting the cycle field in the database.
	FieldCycle = "cycle"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// Table holds the table name of the cycle in the database.
	Table = "cycles"
)

Variables

Columns holds all SQL columns for cycle fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.Cycle) predicate.Cycle

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Cycle

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Cycle

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Cycle

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Cycle

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Cycle

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Cycle

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Cycle

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Cycle

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Cycle

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Cycle

func Cycle(v float64) predicate.Cycle

Cycle applies equality check predicate on the "cycle" field. It's identical to CycleEQ.

func CycleEQ

func CycleEQ(v float64) predicate.Cycle

CycleEQ applies the EQ predicate on the "cycle" field.

func CycleGT

func CycleGT(v float64) predicate.Cycle

CycleGT applies the GT predicate on the "cycle" field.

func CycleGTE

func CycleGTE(v float64) predicate.Cycle

CycleGTE applies the GTE predicate on the "cycle" field.

func CycleIn

func CycleIn(vs ...float64) predicate.Cycle

CycleIn applies the In predicate on the "cycle" field.

func CycleLT

func CycleLT(v float64) predicate.Cycle

CycleLT applies the LT predicate on the "cycle" field.

func CycleLTE

func CycleLTE(v float64) predicate.Cycle

CycleLTE applies the LTE predicate on the "cycle" field.

func CycleNEQ

func CycleNEQ(v float64) predicate.Cycle

CycleNEQ applies the NEQ predicate on the "cycle" field.

func CycleNotIn

func CycleNotIn(vs ...float64) predicate.Cycle

CycleNotIn applies the NotIn predicate on the "cycle" field.

func FkUserID

func FkUserID(v uuid.UUID) predicate.Cycle

FkUserID applies equality check predicate on the "fk_user_id" field. It's identical to FkUserIDEQ.

func FkUserIDEQ

func FkUserIDEQ(v uuid.UUID) predicate.Cycle

FkUserIDEQ applies the EQ predicate on the "fk_user_id" field.

func FkUserIDGT

func FkUserIDGT(v uuid.UUID) predicate.Cycle

FkUserIDGT applies the GT predicate on the "fk_user_id" field.

func FkUserIDGTE

func FkUserIDGTE(v uuid.UUID) predicate.Cycle

FkUserIDGTE applies the GTE predicate on the "fk_user_id" field.

func FkUserIDIn

func FkUserIDIn(vs ...uuid.UUID) predicate.Cycle

FkUserIDIn applies the In predicate on the "fk_user_id" field.

func FkUserIDLT

func FkUserIDLT(v uuid.UUID) predicate.Cycle

FkUserIDLT applies the LT predicate on the "fk_user_id" field.

func FkUserIDLTE

func FkUserIDLTE(v uuid.UUID) predicate.Cycle

FkUserIDLTE applies the LTE predicate on the "fk_user_id" field.

func FkUserIDNEQ

func FkUserIDNEQ(v uuid.UUID) predicate.Cycle

FkUserIDNEQ applies the NEQ predicate on the "fk_user_id" field.

func FkUserIDNotIn

func FkUserIDNotIn(vs ...uuid.UUID) predicate.Cycle

FkUserIDNotIn applies the NotIn predicate on the "fk_user_id" field.

func ID

func ID(id uuid.UUID) predicate.Cycle

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Cycle

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Cycle

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Cycle

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Cycle

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Cycle

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Cycle

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Cycle

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Cycle

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

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.Cycle

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Cycle

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Cycle

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Cycle

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Cycle

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Cycle

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Cycle

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Cycle

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Cycle

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 Cycle queries.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByCycle

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

ByCycle orders the results by the cycle field.

func ByFkUserID

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

ByFkUserID orders the results by the fk_user_id field.

func ByID

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

ByID orders the results by the id field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

Jump to

Keyboard shortcuts

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