likecomment

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the likecomment type in the database.
	Label = "like_comment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// EdgeLikedBy holds the string denoting the likedby edge name in mutations.
	EdgeLikedBy = "likedBy"
	// EdgeAbout holds the string denoting the about edge name in mutations.
	EdgeAbout = "about"
	// KhumuUserFieldID holds the string denoting the ID field of the KhumuUser.
	KhumuUserFieldID = "username"
	// Table holds the table name of the likecomment in the database.
	Table = "comment_likecomment"
	// LikedByTable is the table the holds the likedBy relation/edge.
	LikedByTable = "comment_likecomment"
	// LikedByInverseTable is the table name for the KhumuUser entity.
	// It exists in this package in order to avoid circular dependency with the "khumuuser" package.
	LikedByInverseTable = "user_khumuuser"
	// LikedByColumn is the table column denoting the likedBy relation/edge.
	LikedByColumn = "user_id"
	// AboutTable is the table the holds the about relation/edge.
	AboutTable = "comment_likecomment"
	// AboutInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	AboutInverseTable = "comment_comment"
	// AboutColumn is the table column denoting the about relation/edge.
	AboutColumn = "comment_id"
)

Variables

View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for likecomment fields.

View Source
var ForeignKeys = []string{
	"comment_id",
	"user_id",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "comment_likecomment" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.LikeComment) predicate.LikeComment

And groups predicates with the AND operator between them.

func HasAbout

func HasAbout() predicate.LikeComment

HasAbout applies the HasEdge predicate on the "about" edge.

func HasAboutWith

func HasAboutWith(preds ...predicate.Comment) predicate.LikeComment

HasAboutWith applies the HasEdge predicate on the "about" edge with a given conditions (other predicates).

func HasLikedBy

func HasLikedBy() predicate.LikeComment

HasLikedBy applies the HasEdge predicate on the "likedBy" edge.

func HasLikedByWith

func HasLikedByWith(preds ...predicate.KhumuUser) predicate.LikeComment

HasLikedByWith applies the HasEdge predicate on the "likedBy" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.LikeComment

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.LikeComment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.LikeComment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.LikeComment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.LikeComment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.LikeComment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.LikeComment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.LikeComment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.LikeComment

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.LikeComment) predicate.LikeComment

Or groups predicates with the OR operator between them.

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