Documentation ¶
Index ¶
- Constants
- Variables
- func AcceptedAt(v time.Time) predicate.Review
- func AcceptedAtEQ(v time.Time) predicate.Review
- func AcceptedAtGT(v time.Time) predicate.Review
- func AcceptedAtGTE(v time.Time) predicate.Review
- func AcceptedAtIn(vs ...time.Time) predicate.Review
- func AcceptedAtIsNil() predicate.Review
- func AcceptedAtLT(v time.Time) predicate.Review
- func AcceptedAtLTE(v time.Time) predicate.Review
- func AcceptedAtNEQ(v time.Time) predicate.Review
- func AcceptedAtNotIn(vs ...time.Time) predicate.Review
- func AcceptedAtNotNil() predicate.Review
- func And(predicates ...predicate.Review) predicate.Review
- func CreatedAt(v time.Time) predicate.Review
- func CreatedAtEQ(v time.Time) predicate.Review
- func CreatedAtGT(v time.Time) predicate.Review
- func CreatedAtGTE(v time.Time) predicate.Review
- func CreatedAtIn(vs ...time.Time) predicate.Review
- func CreatedAtLT(v time.Time) predicate.Review
- func CreatedAtLTE(v time.Time) predicate.Review
- func CreatedAtNEQ(v time.Time) predicate.Review
- func CreatedAtNotIn(vs ...time.Time) predicate.Review
- func DisplayName(v string) predicate.Review
- func DisplayNameContains(v string) predicate.Review
- func DisplayNameContainsFold(v string) predicate.Review
- func DisplayNameEQ(v string) predicate.Review
- func DisplayNameEqualFold(v string) predicate.Review
- func DisplayNameGT(v string) predicate.Review
- func DisplayNameGTE(v string) predicate.Review
- func DisplayNameHasPrefix(v string) predicate.Review
- func DisplayNameHasSuffix(v string) predicate.Review
- func DisplayNameIn(vs ...string) predicate.Review
- func DisplayNameIsNil() predicate.Review
- func DisplayNameLT(v string) predicate.Review
- func DisplayNameLTE(v string) predicate.Review
- func DisplayNameNEQ(v string) predicate.Review
- func DisplayNameNotIn(vs ...string) predicate.Review
- func DisplayNameNotNil() predicate.Review
- func HasImages() predicate.Review
- func HasImagesWith(preds ...predicate.Image) predicate.Review
- func HasOccurrence() predicate.Review
- func HasOccurrenceWith(preds ...predicate.Occurrence) predicate.Review
- func ID(id uuid.UUID) predicate.Review
- func IDEQ(id uuid.UUID) predicate.Review
- func IDGT(id uuid.UUID) predicate.Review
- func IDGTE(id uuid.UUID) predicate.Review
- func IDIn(ids ...uuid.UUID) predicate.Review
- func IDLT(id uuid.UUID) predicate.Review
- func IDLTE(id uuid.UUID) predicate.Review
- func IDNEQ(id uuid.UUID) predicate.Review
- func IDNotIn(ids ...uuid.UUID) predicate.Review
- func Not(p predicate.Review) predicate.Review
- func Or(predicates ...predicate.Review) predicate.Review
- func Stars(v int) predicate.Review
- func StarsEQ(v int) predicate.Review
- func StarsGT(v int) predicate.Review
- func StarsGTE(v int) predicate.Review
- func StarsIn(vs ...int) predicate.Review
- func StarsLT(v int) predicate.Review
- func StarsLTE(v int) predicate.Review
- func StarsNEQ(v int) predicate.Review
- func StarsNotIn(vs ...int) predicate.Review
- func Text(v string) predicate.Review
- func TextContains(v string) predicate.Review
- func TextContainsFold(v string) predicate.Review
- func TextEQ(v string) predicate.Review
- func TextEqualFold(v string) predicate.Review
- func TextGT(v string) predicate.Review
- func TextGTE(v string) predicate.Review
- func TextHasPrefix(v string) predicate.Review
- func TextHasSuffix(v string) predicate.Review
- func TextIn(vs ...string) predicate.Review
- func TextIsNil() predicate.Review
- func TextLT(v string) predicate.Review
- func TextLTE(v string) predicate.Review
- func TextNEQ(v string) predicate.Review
- func TextNotIn(vs ...string) predicate.Review
- func TextNotNil() predicate.Review
- func UpdatedAt(v time.Time) predicate.Review
- func UpdatedAtEQ(v time.Time) predicate.Review
- func UpdatedAtGT(v time.Time) predicate.Review
- func UpdatedAtGTE(v time.Time) predicate.Review
- func UpdatedAtIn(vs ...time.Time) predicate.Review
- func UpdatedAtLT(v time.Time) predicate.Review
- func UpdatedAtLTE(v time.Time) predicate.Review
- func UpdatedAtNEQ(v time.Time) predicate.Review
- func UpdatedAtNotIn(vs ...time.Time) predicate.Review
- func ValidColumn(column string) bool
- type OrderOption
- func ByAcceptedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOccurrenceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStars(opts ...sql.OrderTermOption) OrderOption
- func ByText(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldDisplayName, FieldStars, FieldText, FieldCreatedAt, FieldUpdatedAt, FieldAcceptedAt, }
Columns holds all SQL columns for review fields.
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 ¶
AcceptedAt applies equality check predicate on the "accepted_at" field. It's identical to AcceptedAtEQ.
func AcceptedAtEQ ¶
AcceptedAtEQ applies the EQ predicate on the "accepted_at" field.
func AcceptedAtGT ¶
AcceptedAtGT applies the GT predicate on the "accepted_at" field.
func AcceptedAtGTE ¶
AcceptedAtGTE applies the GTE predicate on the "accepted_at" field.
func AcceptedAtIn ¶
AcceptedAtIn applies the In predicate on the "accepted_at" field.
func AcceptedAtIsNil ¶
AcceptedAtIsNil applies the IsNil predicate on the "accepted_at" field.
func AcceptedAtLT ¶
AcceptedAtLT applies the LT predicate on the "accepted_at" field.
func AcceptedAtLTE ¶
AcceptedAtLTE applies the LTE predicate on the "accepted_at" field.
func AcceptedAtNEQ ¶
AcceptedAtNEQ applies the NEQ predicate on the "accepted_at" field.
func AcceptedAtNotIn ¶
AcceptedAtNotIn applies the NotIn predicate on the "accepted_at" field.
func AcceptedAtNotNil ¶
AcceptedAtNotNil applies the NotNil predicate on the "accepted_at" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
func HasImagesWith ¶
HasImagesWith applies the HasEdge predicate on the "images" edge with a given conditions (other predicates).
func HasOccurrence ¶
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 Stars ¶
Stars applies equality check predicate on the "stars" field. It's identical to StarsEQ.
func StarsNotIn ¶
StarsNotIn applies the NotIn predicate on the "stars" field.
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func TextNotNil ¶
TextNotNil applies the NotNil predicate on the "text" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.