interaction

package
v0.0.0-...-11b8a5d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for interaction fields.

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
)
View Source
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 ID

func ID(id int) predicate.Interaction

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Interaction

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Interaction

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.Interaction

IDLT applies the LT 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

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

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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