rating

package
v0.0.0-...-9131046 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the rating type in the database.
	Label = "rating"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOrigin holds the string denoting the origin field in the database.
	FieldOrigin = "origin"
	// FieldOriginalRating holds the string denoting the original_rating field in the database.
	FieldOriginalRating = "original_rating"
	// FieldNormalizedRating holds the string denoting the normalized_rating field in the database.
	FieldNormalizedRating = "normalized_rating"
	// Table holds the table name of the rating in the database.
	Table = "ratings"
)

Variables

Columns holds all SQL columns for rating fields.

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

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

View Source
var (
	// NormalizedRatingValidator is a validator for the "normalized_rating" field. It is called by the builders before save.
	NormalizedRatingValidator func(int) error
)

Functions

func And

func And(predicates ...predicate.Rating) predicate.Rating

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Rating

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Rating

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Rating

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Rating

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Rating

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Rating

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Rating

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func NormalizedRating

func NormalizedRating(v int) predicate.Rating

NormalizedRating applies equality check predicate on the "normalized_rating" field. It's identical to NormalizedRatingEQ.

func NormalizedRatingEQ

func NormalizedRatingEQ(v int) predicate.Rating

NormalizedRatingEQ applies the EQ predicate on the "normalized_rating" field.

func NormalizedRatingGT

func NormalizedRatingGT(v int) predicate.Rating

NormalizedRatingGT applies the GT predicate on the "normalized_rating" field.

func NormalizedRatingGTE

func NormalizedRatingGTE(v int) predicate.Rating

NormalizedRatingGTE applies the GTE predicate on the "normalized_rating" field.

func NormalizedRatingIn

func NormalizedRatingIn(vs ...int) predicate.Rating

NormalizedRatingIn applies the In predicate on the "normalized_rating" field.

func NormalizedRatingLT

func NormalizedRatingLT(v int) predicate.Rating

NormalizedRatingLT applies the LT predicate on the "normalized_rating" field.

func NormalizedRatingLTE

func NormalizedRatingLTE(v int) predicate.Rating

NormalizedRatingLTE applies the LTE predicate on the "normalized_rating" field.

func NormalizedRatingNEQ

func NormalizedRatingNEQ(v int) predicate.Rating

NormalizedRatingNEQ applies the NEQ predicate on the "normalized_rating" field.

func NormalizedRatingNotIn

func NormalizedRatingNotIn(vs ...int) predicate.Rating

NormalizedRatingNotIn applies the NotIn predicate on the "normalized_rating" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Rating) predicate.Rating

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.Rating

Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.

func OriginContains

func OriginContains(v string) predicate.Rating

OriginContains applies the Contains predicate on the "origin" field.

func OriginContainsFold

func OriginContainsFold(v string) predicate.Rating

OriginContainsFold applies the ContainsFold predicate on the "origin" field.

func OriginEQ

func OriginEQ(v string) predicate.Rating

OriginEQ applies the EQ predicate on the "origin" field.

func OriginEqualFold

func OriginEqualFold(v string) predicate.Rating

OriginEqualFold applies the EqualFold predicate on the "origin" field.

func OriginGT

func OriginGT(v string) predicate.Rating

OriginGT applies the GT predicate on the "origin" field.

func OriginGTE

func OriginGTE(v string) predicate.Rating

OriginGTE applies the GTE predicate on the "origin" field.

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.Rating

OriginHasPrefix applies the HasPrefix predicate on the "origin" field.

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.Rating

OriginHasSuffix applies the HasSuffix predicate on the "origin" field.

func OriginIn

func OriginIn(vs ...string) predicate.Rating

OriginIn applies the In predicate on the "origin" field.

func OriginLT

func OriginLT(v string) predicate.Rating

OriginLT applies the LT predicate on the "origin" field.

func OriginLTE

func OriginLTE(v string) predicate.Rating

OriginLTE applies the LTE predicate on the "origin" field.

func OriginNEQ

func OriginNEQ(v string) predicate.Rating

OriginNEQ applies the NEQ predicate on the "origin" field.

func OriginNotIn

func OriginNotIn(vs ...string) predicate.Rating

OriginNotIn applies the NotIn predicate on the "origin" field.

func OriginalRating

func OriginalRating(v string) predicate.Rating

OriginalRating applies equality check predicate on the "original_rating" field. It's identical to OriginalRatingEQ.

func OriginalRatingContains

func OriginalRatingContains(v string) predicate.Rating

OriginalRatingContains applies the Contains predicate on the "original_rating" field.

func OriginalRatingContainsFold

func OriginalRatingContainsFold(v string) predicate.Rating

OriginalRatingContainsFold applies the ContainsFold predicate on the "original_rating" field.

func OriginalRatingEQ

func OriginalRatingEQ(v string) predicate.Rating

OriginalRatingEQ applies the EQ predicate on the "original_rating" field.

func OriginalRatingEqualFold

func OriginalRatingEqualFold(v string) predicate.Rating

OriginalRatingEqualFold applies the EqualFold predicate on the "original_rating" field.

func OriginalRatingGT

func OriginalRatingGT(v string) predicate.Rating

OriginalRatingGT applies the GT predicate on the "original_rating" field.

func OriginalRatingGTE

func OriginalRatingGTE(v string) predicate.Rating

OriginalRatingGTE applies the GTE predicate on the "original_rating" field.

func OriginalRatingHasPrefix

func OriginalRatingHasPrefix(v string) predicate.Rating

OriginalRatingHasPrefix applies the HasPrefix predicate on the "original_rating" field.

func OriginalRatingHasSuffix

func OriginalRatingHasSuffix(v string) predicate.Rating

OriginalRatingHasSuffix applies the HasSuffix predicate on the "original_rating" field.

func OriginalRatingIn

func OriginalRatingIn(vs ...string) predicate.Rating

OriginalRatingIn applies the In predicate on the "original_rating" field.

func OriginalRatingLT

func OriginalRatingLT(v string) predicate.Rating

OriginalRatingLT applies the LT predicate on the "original_rating" field.

func OriginalRatingLTE

func OriginalRatingLTE(v string) predicate.Rating

OriginalRatingLTE applies the LTE predicate on the "original_rating" field.

func OriginalRatingNEQ

func OriginalRatingNEQ(v string) predicate.Rating

OriginalRatingNEQ applies the NEQ predicate on the "original_rating" field.

func OriginalRatingNotIn

func OriginalRatingNotIn(vs ...string) predicate.Rating

OriginalRatingNotIn applies the NotIn predicate on the "original_rating" 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