Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Interaction) predicate.Interaction
- func CreateTime(v time.Time) predicate.Interaction
- func CreateTimeEQ(v time.Time) predicate.Interaction
- func CreateTimeGT(v time.Time) predicate.Interaction
- func CreateTimeGTE(v time.Time) predicate.Interaction
- func CreateTimeIn(vs ...time.Time) predicate.Interaction
- func CreateTimeLT(v time.Time) predicate.Interaction
- func CreateTimeLTE(v time.Time) predicate.Interaction
- func CreateTimeNEQ(v time.Time) predicate.Interaction
- func CreateTimeNotIn(vs ...time.Time) predicate.Interaction
- func HasSqueak() predicate.Interaction
- func HasSqueakWith(preds ...predicate.Squeak) predicate.Interaction
- func HasUser() predicate.Interaction
- func HasUserWith(preds ...predicate.User) predicate.Interaction
- func ID(id int) predicate.Interaction
- func IDEQ(id int) predicate.Interaction
- func IDGT(id int) predicate.Interaction
- func IDGTE(id int) predicate.Interaction
- func IDIn(ids ...int) predicate.Interaction
- func IDLT(id int) predicate.Interaction
- func IDLTE(id int) predicate.Interaction
- func IDNEQ(id int) predicate.Interaction
- func IDNotIn(ids ...int) predicate.Interaction
- func Not(p predicate.Interaction) predicate.Interaction
- func Or(predicates ...predicate.Interaction) predicate.Interaction
- func TypeEQ(v enums.Interaction) predicate.Interaction
- func TypeIn(vs ...enums.Interaction) predicate.Interaction
- func TypeNEQ(v enums.Interaction) predicate.Interaction
- func TypeNotIn(vs ...enums.Interaction) predicate.Interaction
- func TypeValidator(_type enums.Interaction) error
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the interaction type in the database. Label = "interaction" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeSqueak holds the string denoting the squeak edge name in mutations. EdgeSqueak = "squeak" // Table holds the table name of the interaction in the database. Table = "interactions" // UserTable is the table that holds the user relation/edge. UserTable = "interactions" // 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_interactions" // SqueakTable is the table that holds the squeak relation/edge. SqueakTable = "interactions" // SqueakInverseTable is the table name for the Squeak entity. // It exists in this package in order to avoid circular dependency with the "squeak" package. SqueakInverseTable = "squeaks" // SqueakColumn is the table column denoting the squeak relation/edge. SqueakColumn = "squeak_interactions" )
Variables ¶
var Columns = []string{ FieldID, FieldCreateTime, FieldType, }
Columns holds all SQL columns for interaction fields.
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time )
var ForeignKeys = []string{
"squeak_interactions",
"user_interactions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "interactions" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Interaction) predicate.Interaction
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.Interaction
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.Interaction
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.Interaction
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.Interaction
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.Interaction
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.Interaction
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.Interaction
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.Interaction
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.Interaction
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasSqueak ¶
func HasSqueak() predicate.Interaction
HasSqueak applies the HasEdge predicate on the "squeak" edge.
func HasSqueakWith ¶
func HasSqueakWith(preds ...predicate.Squeak) predicate.Interaction
HasSqueakWith applies the HasEdge predicate on the "squeak" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.Interaction
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.Interaction
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Interaction
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Interaction
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Interaction
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Interaction
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Interaction
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Interaction) predicate.Interaction
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Interaction) predicate.Interaction
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v enums.Interaction) predicate.Interaction
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...enums.Interaction) predicate.Interaction
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v enums.Interaction) predicate.Interaction
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...enums.Interaction) predicate.Interaction
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
func TypeValidator(_type enums.Interaction) error
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.