threadkudo

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 threadkudo type in the database.
	Label = "thread_kudo"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldThreadID holds the string denoting the thread_id field in the database.
	FieldThreadID = "thread_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeThread holds the string denoting the thread edge name in mutations.
	EdgeThread = "thread"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "id"
	// ThreadFieldID holds the string denoting the ID field of the Thread.
	ThreadFieldID = "id"
	// Table holds the table name of the threadkudo in the database.
	Table = "thread_kudos"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "thread_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"
	// ThreadTable is the table that holds the thread relation/edge.
	ThreadTable = "thread_kudos"
	// ThreadInverseTable is the table name for the Thread entity.
	// It exists in this package in order to avoid circular dependency with the "thread" package.
	ThreadInverseTable = "threads"
	// ThreadColumn is the table column denoting the thread relation/edge.
	ThreadColumn = "thread_id"
)

Variables

Columns holds all SQL columns for threadkudo fields.

Functions

func And

func And(predicates ...predicate.ThreadKudo) predicate.ThreadKudo

And groups predicates with the AND operator between them.

func HasThread

func HasThread() predicate.ThreadKudo

HasThread applies the HasEdge predicate on the "thread" edge.

func HasThreadWith

func HasThreadWith(preds ...predicate.Thread) predicate.ThreadKudo

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

func HasUser

func HasUser() predicate.ThreadKudo

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

func HasUserWith

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

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

Or groups predicates with the OR operator between them.

func ThreadID

func ThreadID(v int) predicate.ThreadKudo

ThreadID applies equality check predicate on the "thread_id" field. It's identical to ThreadIDEQ.

func ThreadIDEQ

func ThreadIDEQ(v int) predicate.ThreadKudo

ThreadIDEQ applies the EQ predicate on the "thread_id" field.

func ThreadIDIn

func ThreadIDIn(vs ...int) predicate.ThreadKudo

ThreadIDIn applies the In predicate on the "thread_id" field.

func ThreadIDNEQ

func ThreadIDNEQ(v int) predicate.ThreadKudo

ThreadIDNEQ applies the NEQ predicate on the "thread_id" field.

func ThreadIDNotIn

func ThreadIDNotIn(vs ...int) predicate.ThreadKudo

ThreadIDNotIn applies the NotIn predicate on the "thread_id" field.

func UserID

func UserID(v uuid.UUID) predicate.ThreadKudo

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

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.ThreadKudo

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

func UserIDIn

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

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

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.ThreadKudo

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

func UserIDNotIn

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

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 ThreadKudo queries.

func ByThreadField

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

ByThreadField orders the results by thread field.

func ByThreadID

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

ByThreadID orders the results by the thread_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