commentkudo

package
v0.0.0-...-a746138 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the commentkudo type in the database.
	Label = "comment_kudo"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldCommentID holds the string denoting the comment_id field in the database.
	FieldCommentID = "comment_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeComment holds the string denoting the comment edge name in mutations.
	EdgeComment = "comment"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "id"
	// CommentFieldID holds the string denoting the ID field of the Comment.
	CommentFieldID = "id"
	// Table holds the table name of the commentkudo in the database.
	Table = "comment_kudos"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "comment_kudos"
	// 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"
	// CommentTable is the table that holds the comment relation/edge.
	CommentTable = "comment_kudos"
	// CommentInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	CommentInverseTable = "comments"
	// CommentColumn is the table column denoting the comment relation/edge.
	CommentColumn = "comment_id"
)

Variables

Columns holds all SQL columns for commentkudo fields.

Functions

func And

func And(predicates ...predicate.CommentKudo) predicate.CommentKudo

And groups predicates with the AND operator between them.

func CommentID

func CommentID(v int) predicate.CommentKudo

CommentID applies equality check predicate on the "comment_id" field. It's identical to CommentIDEQ.

func CommentIDEQ

func CommentIDEQ(v int) predicate.CommentKudo

CommentIDEQ applies the EQ predicate on the "comment_id" field.

func CommentIDIn

func CommentIDIn(vs ...int) predicate.CommentKudo

CommentIDIn applies the In predicate on the "comment_id" field.

func CommentIDNEQ

func CommentIDNEQ(v int) predicate.CommentKudo

CommentIDNEQ applies the NEQ predicate on the "comment_id" field.

func CommentIDNotIn

func CommentIDNotIn(vs ...int) predicate.CommentKudo

CommentIDNotIn applies the NotIn predicate on the "comment_id" field.

func HasComment

func HasComment() predicate.CommentKudo

HasComment applies the HasEdge predicate on the "comment" edge.

func HasCommentWith

func HasCommentWith(preds ...predicate.Comment) predicate.CommentKudo

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

func HasUser

func HasUser() predicate.CommentKudo

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.CommentKudo

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CommentKudo) predicate.CommentKudo

Or groups predicates with the OR operator between them.

func UserID

func UserID(v uuid.UUID) predicate.CommentKudo

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.CommentKudo

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.CommentKudo

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.CommentKudo

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.CommentKudo

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the CommentKudo queries.

func ByCommentField

func ByCommentField(field string, opts ...sql.OrderTermOption) OrderOption

ByCommentField orders the results by comment field.

func ByCommentID

func ByCommentID(opts ...sql.OrderTermOption) OrderOption

ByCommentID orders the results by the comment_id field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

func ByUserID

func ByUserID(opts ...sql.OrderTermOption) OrderOption

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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