Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Review) predicate.Review
- func Comment(v string) predicate.Review
- func CommentContains(v string) predicate.Review
- func CommentContainsFold(v string) predicate.Review
- func CommentEQ(v string) predicate.Review
- func CommentEqualFold(v string) predicate.Review
- func CommentGT(v string) predicate.Review
- func CommentGTE(v string) predicate.Review
- func CommentHasPrefix(v string) predicate.Review
- func CommentHasSuffix(v string) predicate.Review
- func CommentIn(vs ...string) predicate.Review
- func CommentIsNil() predicate.Review
- func CommentLT(v string) predicate.Review
- func CommentLTE(v string) predicate.Review
- func CommentNEQ(v string) predicate.Review
- func CommentNotIn(vs ...string) predicate.Review
- func CommentNotNil() 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 DeploymentID(v int) predicate.Review
- func DeploymentIDEQ(v int) predicate.Review
- func DeploymentIDIn(vs ...int) predicate.Review
- func DeploymentIDNEQ(v int) predicate.Review
- func DeploymentIDNotIn(vs ...int) predicate.Review
- func HasDeployment() predicate.Review
- func HasDeploymentWith(preds ...predicate.Deployment) predicate.Review
- func HasEvent() predicate.Review
- func HasEventWith(preds ...predicate.Event) predicate.Review
- func HasUser() predicate.Review
- func HasUserWith(preds ...predicate.User) predicate.Review
- func ID(id int) predicate.Review
- func IDEQ(id int) predicate.Review
- func IDGT(id int) predicate.Review
- func IDGTE(id int) predicate.Review
- func IDIn(ids ...int) predicate.Review
- func IDLT(id int) predicate.Review
- func IDLTE(id int) predicate.Review
- func IDNEQ(id int) predicate.Review
- func IDNotIn(ids ...int) predicate.Review
- func Not(p predicate.Review) predicate.Review
- func Or(predicates ...predicate.Review) predicate.Review
- func StatusEQ(v Status) predicate.Review
- func StatusIn(vs ...Status) predicate.Review
- func StatusNEQ(v Status) predicate.Review
- func StatusNotIn(vs ...Status) predicate.Review
- func StatusValidator(s Status) error
- 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 UserID(v int64) predicate.Review
- func UserIDEQ(v int64) predicate.Review
- func UserIDIn(vs ...int64) predicate.Review
- func UserIDIsNil() predicate.Review
- func UserIDNEQ(v int64) predicate.Review
- func UserIDNotIn(vs ...int64) predicate.Review
- func UserIDNotNil() predicate.Review
- func ValidColumn(column string) bool
- type Status
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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // 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" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldDeploymentID holds the string denoting the deployment_id field in the database. FieldDeploymentID = "deployment_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeDeployment holds the string denoting the deployment edge name in mutations. EdgeDeployment = "deployment" // EdgeEvent holds the string denoting the event edge name in mutations. EdgeEvent = "event" // Table holds the table name of the review in the database. Table = "reviews" // UserTable is the table that holds the user relation/edge. UserTable = "reviews" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // DeploymentTable is the table that holds the deployment relation/edge. DeploymentTable = "reviews" // DeploymentInverseTable is the table name for the Deployment entity. // It exists in this package in order to avoid circular dependency with the "deployment" package. DeploymentInverseTable = "deployments" // DeploymentColumn is the table column denoting the deployment relation/edge. DeploymentColumn = "deployment_id" // EventTable is the table that holds the event relation/edge. EventTable = "events" // EventInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventInverseTable = "events" // EventColumn is the table column denoting the event relation/edge. EventColumn = "review_id" )
const DefaultStatus = StatusPending
StatusPending is the default value of the Status enum.
Variables ¶
var ( // 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 )
var Columns = []string{ FieldID, FieldStatus, FieldComment, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldDeploymentID, }
Columns holds all SQL columns for review fields.
Functions ¶
func Comment ¶
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEqualFold ¶
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGTE ¶
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIsNil ¶
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLTE ¶
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
CommentNotNil applies the NotNil predicate on the "comment" 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 DeploymentID ¶
DeploymentID applies equality check predicate on the "deployment_id" field. It's identical to DeploymentIDEQ.
func DeploymentIDEQ ¶
DeploymentIDEQ applies the EQ predicate on the "deployment_id" field.
func DeploymentIDIn ¶
DeploymentIDIn applies the In predicate on the "deployment_id" field.
func DeploymentIDNEQ ¶
DeploymentIDNEQ applies the NEQ predicate on the "deployment_id" field.
func DeploymentIDNotIn ¶
DeploymentIDNotIn applies the NotIn predicate on the "deployment_id" field.
func HasDeployment ¶
HasDeployment applies the HasEdge predicate on the "deployment" edge.
func HasDeploymentWith ¶
func HasDeploymentWith(preds ...predicate.Deployment) predicate.Review
HasDeploymentWith applies the HasEdge predicate on the "deployment" edge with a given conditions (other predicates).
func HasEventWith ¶
HasEventWith applies the HasEdge predicate on the "event" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDIsNil ¶
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
UserIDNotNil applies the NotNil predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).