review

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the review type in the database.
	Label = "review"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldStars holds the string denoting the stars field in the database.
	FieldStars = "stars"
	// FieldText holds the string denoting the text field in the database.
	FieldText = "text"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldAcceptedAt holds the string denoting the accepted_at field in the database.
	FieldAcceptedAt = "accepted_at"
	// EdgeOccurrence holds the string denoting the occurrence edge name in mutations.
	EdgeOccurrence = "occurrence"
	// EdgeImages holds the string denoting the images edge name in mutations.
	EdgeImages = "images"
	// Table holds the table name of the review in the database.
	Table = "review"
	// OccurrenceTable is the table that holds the occurrence relation/edge.
	OccurrenceTable = "review"
	// OccurrenceInverseTable is the table name for the Occurrence entity.
	// It exists in this package in order to avoid circular dependency with the "occurrence" package.
	OccurrenceInverseTable = "occurrence"
	// OccurrenceColumn is the table column denoting the occurrence relation/edge.
	OccurrenceColumn = "occurrence"
	// ImagesTable is the table that holds the images relation/edge.
	ImagesTable = "image"
	// ImagesInverseTable is the table name for the Image entity.
	// It exists in this package in order to avoid circular dependency with the "image" package.
	ImagesInverseTable = "image"
	// ImagesColumn is the table column denoting the images relation/edge.
	ImagesColumn = "review"
)

Variables

View Source
var (
	// DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save.
	DisplayNameValidator func(string) error
	// StarsValidator is a validator for the "stars" field. It is called by the builders before save.
	StarsValidator func(int) error
	// TextValidator is a validator for the "text" field. It is called by the builders before save.
	TextValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for review fields.

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

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

Functions

func AcceptedAt

func AcceptedAt(v time.Time) predicate.Review

AcceptedAt applies equality check predicate on the "accepted_at" field. It's identical to AcceptedAtEQ.

func AcceptedAtEQ

func AcceptedAtEQ(v time.Time) predicate.Review

AcceptedAtEQ applies the EQ predicate on the "accepted_at" field.

func AcceptedAtGT

func AcceptedAtGT(v time.Time) predicate.Review

AcceptedAtGT applies the GT predicate on the "accepted_at" field.

func AcceptedAtGTE

func AcceptedAtGTE(v time.Time) predicate.Review

AcceptedAtGTE applies the GTE predicate on the "accepted_at" field.

func AcceptedAtIn

func AcceptedAtIn(vs ...time.Time) predicate.Review

AcceptedAtIn applies the In predicate on the "accepted_at" field.

func AcceptedAtIsNil

func AcceptedAtIsNil() predicate.Review

AcceptedAtIsNil applies the IsNil predicate on the "accepted_at" field.

func AcceptedAtLT

func AcceptedAtLT(v time.Time) predicate.Review

AcceptedAtLT applies the LT predicate on the "accepted_at" field.

func AcceptedAtLTE

func AcceptedAtLTE(v time.Time) predicate.Review

AcceptedAtLTE applies the LTE predicate on the "accepted_at" field.

func AcceptedAtNEQ

func AcceptedAtNEQ(v time.Time) predicate.Review

AcceptedAtNEQ applies the NEQ predicate on the "accepted_at" field.

func AcceptedAtNotIn

func AcceptedAtNotIn(vs ...time.Time) predicate.Review

AcceptedAtNotIn applies the NotIn predicate on the "accepted_at" field.

func AcceptedAtNotNil

func AcceptedAtNotNil() predicate.Review

AcceptedAtNotNil applies the NotNil predicate on the "accepted_at" field.

func And

func And(predicates ...predicate.Review) predicate.Review

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Review

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Review

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Review

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Review

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Review

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Review

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Review

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Review

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Review

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DisplayName

func DisplayName(v string) predicate.Review

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Review

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Review

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Review

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Review

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Review

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Review

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Review

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Review

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Review

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameIsNil

func DisplayNameIsNil() predicate.Review

DisplayNameIsNil applies the IsNil predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Review

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Review

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Review

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Review

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func DisplayNameNotNil

func DisplayNameNotNil() predicate.Review

DisplayNameNotNil applies the NotNil predicate on the "display_name" field.

func HasImages

func HasImages() predicate.Review

HasImages applies the HasEdge predicate on the "images" edge.

func HasImagesWith

func HasImagesWith(preds ...predicate.Image) predicate.Review

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

func HasOccurrence

func HasOccurrence() predicate.Review

HasOccurrence applies the HasEdge predicate on the "occurrence" edge.

func HasOccurrenceWith

func HasOccurrenceWith(preds ...predicate.Occurrence) predicate.Review

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

func ID

func ID(id uuid.UUID) predicate.Review

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Review

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Review

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Review

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Review

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Review

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Review

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Stars

func Stars(v int) predicate.Review

Stars applies equality check predicate on the "stars" field. It's identical to StarsEQ.

func StarsEQ

func StarsEQ(v int) predicate.Review

StarsEQ applies the EQ predicate on the "stars" field.

func StarsGT

func StarsGT(v int) predicate.Review

StarsGT applies the GT predicate on the "stars" field.

func StarsGTE

func StarsGTE(v int) predicate.Review

StarsGTE applies the GTE predicate on the "stars" field.

func StarsIn

func StarsIn(vs ...int) predicate.Review

StarsIn applies the In predicate on the "stars" field.

func StarsLT

func StarsLT(v int) predicate.Review

StarsLT applies the LT predicate on the "stars" field.

func StarsLTE

func StarsLTE(v int) predicate.Review

StarsLTE applies the LTE predicate on the "stars" field.

func StarsNEQ

func StarsNEQ(v int) predicate.Review

StarsNEQ applies the NEQ predicate on the "stars" field.

func StarsNotIn

func StarsNotIn(vs ...int) predicate.Review

StarsNotIn applies the NotIn predicate on the "stars" field.

func Text

func Text(v string) predicate.Review

Text applies equality check predicate on the "text" field. It's identical to TextEQ.

func TextContains

func TextContains(v string) predicate.Review

TextContains applies the Contains predicate on the "text" field.

func TextContainsFold

func TextContainsFold(v string) predicate.Review

TextContainsFold applies the ContainsFold predicate on the "text" field.

func TextEQ

func TextEQ(v string) predicate.Review

TextEQ applies the EQ predicate on the "text" field.

func TextEqualFold

func TextEqualFold(v string) predicate.Review

TextEqualFold applies the EqualFold predicate on the "text" field.

func TextGT

func TextGT(v string) predicate.Review

TextGT applies the GT predicate on the "text" field.

func TextGTE

func TextGTE(v string) predicate.Review

TextGTE applies the GTE predicate on the "text" field.

func TextHasPrefix

func TextHasPrefix(v string) predicate.Review

TextHasPrefix applies the HasPrefix predicate on the "text" field.

func TextHasSuffix

func TextHasSuffix(v string) predicate.Review

TextHasSuffix applies the HasSuffix predicate on the "text" field.

func TextIn

func TextIn(vs ...string) predicate.Review

TextIn applies the In predicate on the "text" field.

func TextIsNil

func TextIsNil() predicate.Review

TextIsNil applies the IsNil predicate on the "text" field.

func TextLT

func TextLT(v string) predicate.Review

TextLT applies the LT predicate on the "text" field.

func TextLTE

func TextLTE(v string) predicate.Review

TextLTE applies the LTE predicate on the "text" field.

func TextNEQ

func TextNEQ(v string) predicate.Review

TextNEQ applies the NEQ predicate on the "text" field.

func TextNotIn

func TextNotIn(vs ...string) predicate.Review

TextNotIn applies the NotIn predicate on the "text" field.

func TextNotNil

func TextNotNil() predicate.Review

TextNotNil applies the NotNil predicate on the "text" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Review

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Review

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Review

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Review

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Review

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Review

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Review

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Review

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Review

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Review queries.

func ByAcceptedAt

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

ByAcceptedAt orders the results by the accepted_at field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDisplayName

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

ByDisplayName orders the results by the display_name field.

func ByID

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

ByID orders the results by the id field.

func ByImages

func ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByImages orders the results by images terms.

func ByImagesCount

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

ByImagesCount orders the results by images count.

func ByOccurrenceField

func ByOccurrenceField(field string, opts ...sql.OrderTermOption) OrderOption

ByOccurrenceField orders the results by occurrence field.

func ByStars

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

ByStars orders the results by the stars field.

func ByText

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

ByText orders the results by the text field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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