result

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the result type in the database.
	Label = "result"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldRawScore holds the string denoting the raw_score field in the database.
	FieldRawScore = "raw_score"
	// FieldFinalScore holds the string denoting the final_score field in the database.
	FieldFinalScore = "final_score"
	// FieldMeta holds the string denoting the meta field in the database.
	FieldMeta = "meta"
	// EdgeScale holds the string denoting the scale edge name in mutations.
	EdgeScale = "scale"
	// EdgeTake holds the string denoting the take edge name in mutations.
	EdgeTake = "take"
	// Table holds the table name of the result in the database.
	Table = "results"
	// ScaleTable is the table that holds the scale relation/edge.
	ScaleTable = "results"
	// ScaleInverseTable is the table name for the Scale entity.
	// It exists in this package in order to avoid circular dependency with the "scale" package.
	ScaleInverseTable = "scales"
	// ScaleColumn is the table column denoting the scale relation/edge.
	ScaleColumn = "scale_results"
	// TakeTable is the table that holds the take relation/edge.
	TakeTable = "results"
	// TakeInverseTable is the table name for the Take entity.
	// It exists in this package in order to avoid circular dependency with the "take" package.
	TakeInverseTable = "takes"
	// TakeColumn is the table column denoting the take relation/edge.
	TakeColumn = "take_results"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for result fields.

View Source
var ForeignKeys = []string{
	"scale_results",
	"take_results",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "results" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Result) predicate.Result

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Result

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Result

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Result

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Result

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Result

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Result

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Result

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

func CreateTimeNotIn

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

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

func FinalScore

func FinalScore(v float64) predicate.Result

FinalScore applies equality check predicate on the "final_score" field. It's identical to FinalScoreEQ.

func FinalScoreEQ

func FinalScoreEQ(v float64) predicate.Result

FinalScoreEQ applies the EQ predicate on the "final_score" field.

func FinalScoreGT

func FinalScoreGT(v float64) predicate.Result

FinalScoreGT applies the GT predicate on the "final_score" field.

func FinalScoreGTE

func FinalScoreGTE(v float64) predicate.Result

FinalScoreGTE applies the GTE predicate on the "final_score" field.

func FinalScoreIn

func FinalScoreIn(vs ...float64) predicate.Result

FinalScoreIn applies the In predicate on the "final_score" field.

func FinalScoreLT

func FinalScoreLT(v float64) predicate.Result

FinalScoreLT applies the LT predicate on the "final_score" field.

func FinalScoreLTE

func FinalScoreLTE(v float64) predicate.Result

FinalScoreLTE applies the LTE predicate on the "final_score" field.

func FinalScoreNEQ

func FinalScoreNEQ(v float64) predicate.Result

FinalScoreNEQ applies the NEQ predicate on the "final_score" field.

func FinalScoreNotIn

func FinalScoreNotIn(vs ...float64) predicate.Result

FinalScoreNotIn applies the NotIn predicate on the "final_score" field.

func HasScale

func HasScale() predicate.Result

HasScale applies the HasEdge predicate on the "scale" edge.

func HasScaleWith

func HasScaleWith(preds ...predicate.Scale) predicate.Result

HasScaleWith applies the HasEdge predicate on the "scale" edge with a given conditions (other predicates).

func HasTake

func HasTake() predicate.Result

HasTake applies the HasEdge predicate on the "take" edge.

func HasTakeWith

func HasTakeWith(preds ...predicate.Take) predicate.Result

HasTakeWith applies the HasEdge predicate on the "take" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Result

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Result

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Result

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Result

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Result

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Result

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Result

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MetaIsNil

func MetaIsNil() predicate.Result

MetaIsNil applies the IsNil predicate on the "meta" field.

func MetaNotNil

func MetaNotNil() predicate.Result

MetaNotNil applies the NotNil predicate on the "meta" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Result) predicate.Result

Or groups predicates with the OR operator between them.

func RawScore

func RawScore(v float64) predicate.Result

RawScore applies equality check predicate on the "raw_score" field. It's identical to RawScoreEQ.

func RawScoreEQ

func RawScoreEQ(v float64) predicate.Result

RawScoreEQ applies the EQ predicate on the "raw_score" field.

func RawScoreGT

func RawScoreGT(v float64) predicate.Result

RawScoreGT applies the GT predicate on the "raw_score" field.

func RawScoreGTE

func RawScoreGTE(v float64) predicate.Result

RawScoreGTE applies the GTE predicate on the "raw_score" field.

func RawScoreIn

func RawScoreIn(vs ...float64) predicate.Result

RawScoreIn applies the In predicate on the "raw_score" field.

func RawScoreLT

func RawScoreLT(v float64) predicate.Result

RawScoreLT applies the LT predicate on the "raw_score" field.

func RawScoreLTE

func RawScoreLTE(v float64) predicate.Result

RawScoreLTE applies the LTE predicate on the "raw_score" field.

func RawScoreNEQ

func RawScoreNEQ(v float64) predicate.Result

RawScoreNEQ applies the NEQ predicate on the "raw_score" field.

func RawScoreNotIn

func RawScoreNotIn(vs ...float64) predicate.Result

RawScoreNotIn applies the NotIn predicate on the "raw_score" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Result

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Result

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Result

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Result

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Result

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Result

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Result

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

func UpdateTimeNotIn

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

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

This section is empty.

Jump to

Keyboard shortcuts

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