Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Result) predicate.Result
- func CreateTime(v time.Time) predicate.Result
- func CreateTimeEQ(v time.Time) predicate.Result
- func CreateTimeGT(v time.Time) predicate.Result
- func CreateTimeGTE(v time.Time) predicate.Result
- func CreateTimeIn(vs ...time.Time) predicate.Result
- func CreateTimeLT(v time.Time) predicate.Result
- func CreateTimeLTE(v time.Time) predicate.Result
- func CreateTimeNEQ(v time.Time) predicate.Result
- func CreateTimeNotIn(vs ...time.Time) predicate.Result
- func FinalScore(v float64) predicate.Result
- func FinalScoreEQ(v float64) predicate.Result
- func FinalScoreGT(v float64) predicate.Result
- func FinalScoreGTE(v float64) predicate.Result
- func FinalScoreIn(vs ...float64) predicate.Result
- func FinalScoreLT(v float64) predicate.Result
- func FinalScoreLTE(v float64) predicate.Result
- func FinalScoreNEQ(v float64) predicate.Result
- func FinalScoreNotIn(vs ...float64) predicate.Result
- func HasScale() predicate.Result
- func HasScaleWith(preds ...predicate.Scale) predicate.Result
- func HasTake() predicate.Result
- func HasTakeWith(preds ...predicate.Take) predicate.Result
- func ID(id uuid.UUID) predicate.Result
- func IDEQ(id uuid.UUID) predicate.Result
- func IDGT(id uuid.UUID) predicate.Result
- func IDGTE(id uuid.UUID) predicate.Result
- func IDIn(ids ...uuid.UUID) predicate.Result
- func IDLT(id uuid.UUID) predicate.Result
- func IDLTE(id uuid.UUID) predicate.Result
- func IDNEQ(id uuid.UUID) predicate.Result
- func IDNotIn(ids ...uuid.UUID) predicate.Result
- func MetaIsNil() predicate.Result
- func MetaNotNil() predicate.Result
- func Not(p predicate.Result) predicate.Result
- func Or(predicates ...predicate.Result) predicate.Result
- func RawScore(v float64) predicate.Result
- func RawScoreEQ(v float64) predicate.Result
- func RawScoreGT(v float64) predicate.Result
- func RawScoreGTE(v float64) predicate.Result
- func RawScoreIn(vs ...float64) predicate.Result
- func RawScoreLT(v float64) predicate.Result
- func RawScoreLTE(v float64) predicate.Result
- func RawScoreNEQ(v float64) predicate.Result
- func RawScoreNotIn(vs ...float64) predicate.Result
- func UpdateTime(v time.Time) predicate.Result
- func UpdateTimeEQ(v time.Time) predicate.Result
- func UpdateTimeGT(v time.Time) predicate.Result
- func UpdateTimeGTE(v time.Time) predicate.Result
- func UpdateTimeIn(vs ...time.Time) predicate.Result
- func UpdateTimeLT(v time.Time) predicate.Result
- func UpdateTimeLTE(v time.Time) predicate.Result
- func UpdateTimeNEQ(v time.Time) predicate.Result
- func UpdateTimeNotIn(vs ...time.Time) predicate.Result
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldRawScore, FieldFinalScore, FieldMeta, }
Columns holds all SQL columns for result fields.
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 CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func FinalScore ¶
FinalScore applies equality check predicate on the "final_score" field. It's identical to FinalScoreEQ.
func FinalScoreEQ ¶
FinalScoreEQ applies the EQ predicate on the "final_score" field.
func FinalScoreGT ¶
FinalScoreGT applies the GT predicate on the "final_score" field.
func FinalScoreGTE ¶
FinalScoreGTE applies the GTE predicate on the "final_score" field.
func FinalScoreIn ¶
FinalScoreIn applies the In predicate on the "final_score" field.
func FinalScoreLT ¶
FinalScoreLT applies the LT predicate on the "final_score" field.
func FinalScoreLTE ¶
FinalScoreLTE applies the LTE predicate on the "final_score" field.
func FinalScoreNEQ ¶
FinalScoreNEQ applies the NEQ predicate on the "final_score" field.
func FinalScoreNotIn ¶
FinalScoreNotIn applies the NotIn predicate on the "final_score" field.
func HasScaleWith ¶
HasScaleWith applies the HasEdge predicate on the "scale" edge with a given conditions (other predicates).
func HasTakeWith ¶
HasTakeWith applies the HasEdge predicate on the "take" edge with a given conditions (other predicates).
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func RawScore ¶
RawScore applies equality check predicate on the "raw_score" field. It's identical to RawScoreEQ.
func RawScoreEQ ¶
RawScoreEQ applies the EQ predicate on the "raw_score" field.
func RawScoreGT ¶
RawScoreGT applies the GT predicate on the "raw_score" field.
func RawScoreGTE ¶
RawScoreGTE applies the GTE predicate on the "raw_score" field.
func RawScoreIn ¶
RawScoreIn applies the In predicate on the "raw_score" field.
func RawScoreLT ¶
RawScoreLT applies the LT predicate on the "raw_score" field.
func RawScoreLTE ¶
RawScoreLTE applies the LTE predicate on the "raw_score" field.
func RawScoreNEQ ¶
RawScoreNEQ applies the NEQ predicate on the "raw_score" field.
func RawScoreNotIn ¶
RawScoreNotIn applies the NotIn predicate on the "raw_score" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.