Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Activation) predicate.Activation
- func Comments(v string) predicate.Activation
- func CommentsContains(v string) predicate.Activation
- func CommentsContainsFold(v string) predicate.Activation
- func CommentsEQ(v string) predicate.Activation
- func CommentsEqualFold(v string) predicate.Activation
- func CommentsGT(v string) predicate.Activation
- func CommentsGTE(v string) predicate.Activation
- func CommentsHasPrefix(v string) predicate.Activation
- func CommentsHasSuffix(v string) predicate.Activation
- func CommentsIn(vs ...string) predicate.Activation
- func CommentsIsNil() predicate.Activation
- func CommentsLT(v string) predicate.Activation
- func CommentsLTE(v string) predicate.Activation
- func CommentsNEQ(v string) predicate.Activation
- func CommentsNotIn(vs ...string) predicate.Activation
- func CommentsNotNil() predicate.Activation
- func CreatedAt(v time.Time) predicate.Activation
- func CreatedAtEQ(v time.Time) predicate.Activation
- func CreatedAtGT(v time.Time) predicate.Activation
- func CreatedAtGTE(v time.Time) predicate.Activation
- func CreatedAtIn(vs ...time.Time) predicate.Activation
- func CreatedAtLT(v time.Time) predicate.Activation
- func CreatedAtLTE(v time.Time) predicate.Activation
- func CreatedAtNEQ(v time.Time) predicate.Activation
- func CreatedAtNotIn(vs ...time.Time) predicate.Activation
- func HasActor() predicate.Activation
- func HasActorWith(preds ...predicate.User) predicate.Activation
- func HasUser() predicate.Activation
- func HasUserWith(preds ...predicate.User) predicate.Activation
- func ID(id int) predicate.Activation
- func IDEQ(id int) predicate.Activation
- func IDGT(id int) predicate.Activation
- func IDGTE(id int) predicate.Activation
- func IDIn(ids ...int) predicate.Activation
- func IDLT(id int) predicate.Activation
- func IDLTE(id int) predicate.Activation
- func IDNEQ(id int) predicate.Activation
- func IDNotIn(ids ...int) predicate.Activation
- func InternalComments(v string) predicate.Activation
- func InternalCommentsContains(v string) predicate.Activation
- func InternalCommentsContainsFold(v string) predicate.Activation
- func InternalCommentsEQ(v string) predicate.Activation
- func InternalCommentsEqualFold(v string) predicate.Activation
- func InternalCommentsGT(v string) predicate.Activation
- func InternalCommentsGTE(v string) predicate.Activation
- func InternalCommentsHasPrefix(v string) predicate.Activation
- func InternalCommentsHasSuffix(v string) predicate.Activation
- func InternalCommentsIn(vs ...string) predicate.Activation
- func InternalCommentsIsNil() predicate.Activation
- func InternalCommentsLT(v string) predicate.Activation
- func InternalCommentsLTE(v string) predicate.Activation
- func InternalCommentsNEQ(v string) predicate.Activation
- func InternalCommentsNotIn(vs ...string) predicate.Activation
- func InternalCommentsNotNil() predicate.Activation
- func Not(p predicate.Activation) predicate.Activation
- func Or(predicates ...predicate.Activation) predicate.Activation
- func UpdatedAt(v time.Time) predicate.Activation
- func UpdatedAtEQ(v time.Time) predicate.Activation
- func UpdatedAtGT(v time.Time) predicate.Activation
- func UpdatedAtGTE(v time.Time) predicate.Activation
- func UpdatedAtIn(vs ...time.Time) predicate.Activation
- func UpdatedAtLT(v time.Time) predicate.Activation
- func UpdatedAtLTE(v time.Time) predicate.Activation
- func UpdatedAtNEQ(v time.Time) predicate.Activation
- func UpdatedAtNotIn(vs ...time.Time) predicate.Activation
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the activation type in the database. Label = "activation" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldInternalComments holds the string denoting the internal_comments field in the database. FieldInternalComments = "internal_comments" // FieldComments holds the string denoting the comments field in the database. FieldComments = "comments" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeActor holds the string denoting the actor edge name in mutations. EdgeActor = "actor" // Table holds the table name of the activation in the database. Table = "activations" // UserTable is the table the holds the user relation/edge. UserTable = "users" // 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 = "activation_user" // ActorTable is the table the holds the actor relation/edge. The primary key declared below. ActorTable = "activation_actor" // ActorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. ActorInverseTable = "users" )
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 ( // ActorPrimaryKey and ActorColumn2 are the table columns denoting the // primary key for the actor relation (M2M). ActorPrimaryKey = []string{"activation_id", "user_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldInternalComments, FieldComments, }
Columns holds all SQL columns for activation fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Activation) predicate.Activation
And groups list of predicates with the AND operator between them.
func Comments ¶
func Comments(v string) predicate.Activation
Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func CommentsContains ¶
func CommentsContains(v string) predicate.Activation
CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContainsFold ¶
func CommentsContainsFold(v string) predicate.Activation
CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsEQ ¶
func CommentsEQ(v string) predicate.Activation
CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEqualFold ¶
func CommentsEqualFold(v string) predicate.Activation
CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsGT ¶
func CommentsGT(v string) predicate.Activation
CommentsGT applies the GT predicate on the "comments" field.
func CommentsGTE ¶
func CommentsGTE(v string) predicate.Activation
CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsHasPrefix ¶
func CommentsHasPrefix(v string) predicate.Activation
CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasSuffix ¶
func CommentsHasSuffix(v string) predicate.Activation
CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsIn ¶
func CommentsIn(vs ...string) predicate.Activation
CommentsIn applies the In predicate on the "comments" field.
func CommentsIsNil ¶
func CommentsIsNil() predicate.Activation
CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsLT ¶
func CommentsLT(v string) predicate.Activation
CommentsLT applies the LT predicate on the "comments" field.
func CommentsLTE ¶
func CommentsLTE(v string) predicate.Activation
CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsNEQ ¶
func CommentsNEQ(v string) predicate.Activation
CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNotIn ¶
func CommentsNotIn(vs ...string) predicate.Activation
CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotNil ¶
func CommentsNotNil() predicate.Activation
CommentsNotNil applies the NotNil predicate on the "comments" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Activation
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Activation
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Activation
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Activation
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Activation
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Activation
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Activation
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Activation
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Activation
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasActor ¶
func HasActor() predicate.Activation
HasActor applies the HasEdge predicate on the "actor" edge.
func HasActorWith ¶
func HasActorWith(preds ...predicate.User) predicate.Activation
HasActorWith applies the HasEdge predicate on the "actor" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.Activation
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.Activation
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Activation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Activation
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Activation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Activation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Activation
IDNotIn applies the NotIn predicate on the ID field.
func InternalComments ¶
func InternalComments(v string) predicate.Activation
InternalComments applies equality check predicate on the "internal_comments" field. It's identical to InternalCommentsEQ.
func InternalCommentsContains ¶
func InternalCommentsContains(v string) predicate.Activation
InternalCommentsContains applies the Contains predicate on the "internal_comments" field.
func InternalCommentsContainsFold ¶
func InternalCommentsContainsFold(v string) predicate.Activation
InternalCommentsContainsFold applies the ContainsFold predicate on the "internal_comments" field.
func InternalCommentsEQ ¶
func InternalCommentsEQ(v string) predicate.Activation
InternalCommentsEQ applies the EQ predicate on the "internal_comments" field.
func InternalCommentsEqualFold ¶
func InternalCommentsEqualFold(v string) predicate.Activation
InternalCommentsEqualFold applies the EqualFold predicate on the "internal_comments" field.
func InternalCommentsGT ¶
func InternalCommentsGT(v string) predicate.Activation
InternalCommentsGT applies the GT predicate on the "internal_comments" field.
func InternalCommentsGTE ¶
func InternalCommentsGTE(v string) predicate.Activation
InternalCommentsGTE applies the GTE predicate on the "internal_comments" field.
func InternalCommentsHasPrefix ¶
func InternalCommentsHasPrefix(v string) predicate.Activation
InternalCommentsHasPrefix applies the HasPrefix predicate on the "internal_comments" field.
func InternalCommentsHasSuffix ¶
func InternalCommentsHasSuffix(v string) predicate.Activation
InternalCommentsHasSuffix applies the HasSuffix predicate on the "internal_comments" field.
func InternalCommentsIn ¶
func InternalCommentsIn(vs ...string) predicate.Activation
InternalCommentsIn applies the In predicate on the "internal_comments" field.
func InternalCommentsIsNil ¶
func InternalCommentsIsNil() predicate.Activation
InternalCommentsIsNil applies the IsNil predicate on the "internal_comments" field.
func InternalCommentsLT ¶
func InternalCommentsLT(v string) predicate.Activation
InternalCommentsLT applies the LT predicate on the "internal_comments" field.
func InternalCommentsLTE ¶
func InternalCommentsLTE(v string) predicate.Activation
InternalCommentsLTE applies the LTE predicate on the "internal_comments" field.
func InternalCommentsNEQ ¶
func InternalCommentsNEQ(v string) predicate.Activation
InternalCommentsNEQ applies the NEQ predicate on the "internal_comments" field.
func InternalCommentsNotIn ¶
func InternalCommentsNotIn(vs ...string) predicate.Activation
InternalCommentsNotIn applies the NotIn predicate on the "internal_comments" field.
func InternalCommentsNotNil ¶
func InternalCommentsNotNil() predicate.Activation
InternalCommentsNotNil applies the NotNil predicate on the "internal_comments" field.
func Not ¶
func Not(p predicate.Activation) predicate.Activation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Activation) predicate.Activation
Or groups list of predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Activation
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Activation
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Activation
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Activation
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Activation
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Activation
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Activation
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Activation
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Activation
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 ¶
This section is empty.