studyarticle

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 studyarticle type in the database.
	Label = "study_article"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// EdgeComments holds the string denoting the comments edge name in mutations.
	EdgeComments = "comments"
	// EdgeAuthor holds the string denoting the author edge name in mutations.
	EdgeAuthor = "author"
	// KhumuUserFieldID holds the string denoting the ID field of the KhumuUser.
	KhumuUserFieldID = "username"
	// Table holds the table name of the studyarticle in the database.
	Table = "article_studyarticle"
	// CommentsTable is the table the holds the comments relation/edge.
	CommentsTable = "comment_comment"
	// CommentsInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	CommentsInverseTable = "comment_comment"
	// CommentsColumn is the table column denoting the comments relation/edge.
	CommentsColumn = "study_article_id"
	// AuthorTable is the table the holds the author relation/edge.
	AuthorTable = "article_studyarticle"
	// AuthorInverseTable is the table name for the KhumuUser entity.
	// It exists in this package in order to avoid circular dependency with the "khumuuser" package.
	AuthorInverseTable = "user_khumuuser"
	// AuthorColumn is the table column denoting the author relation/edge.
	AuthorColumn = "author_id"
)

Variables

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

Columns holds all SQL columns for studyarticle fields.

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

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

Functions

func And

func And(predicates ...predicate.StudyArticle) predicate.StudyArticle

And groups predicates with the AND operator between them.

func HasAuthor

func HasAuthor() predicate.StudyArticle

HasAuthor applies the HasEdge predicate on the "author" edge.

func HasAuthorWith

func HasAuthorWith(preds ...predicate.KhumuUser) predicate.StudyArticle

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

func HasComments

func HasComments() predicate.StudyArticle

HasComments applies the HasEdge predicate on the "comments" edge.

func HasCommentsWith

func HasCommentsWith(preds ...predicate.Comment) predicate.StudyArticle

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

func ID

func ID(id int) predicate.StudyArticle

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.StudyArticle

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.StudyArticle

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.StudyArticle

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.StudyArticle

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.StudyArticle

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.StudyArticle

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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