comment

package
v0.0.0-...-aa3ac78 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the comment type in the database.
	Label = "comment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldText holds the string denoting the text field in the database.
	FieldText = "text"
	// EdgeEpics holds the string denoting the epics edge name in mutations.
	EdgeEpics = "epics"
	// EdgeProjects holds the string denoting the projects edge name in mutations.
	EdgeProjects = "projects"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// Table holds the table name of the comment in the database.
	Table = "comments"
	// EpicsTable is the table that holds the epics relation/edge. The primary key declared below.
	EpicsTable = "epic_comments"
	// EpicsInverseTable is the table name for the Epic entity.
	// It exists in this package in order to avoid circular dependency with the "epic" package.
	EpicsInverseTable = "epics"
	// ProjectsTable is the table that holds the projects relation/edge. The primary key declared below.
	ProjectsTable = "project_comments"
	// ProjectsInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectsInverseTable = "projects"
	// UsersTable is the table that holds the users relation/edge. The primary key declared below.
	UsersTable = "user_comments"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
)

Variables

View Source
var (
	// EpicsPrimaryKey and EpicsColumn2 are the table columns denoting the
	// primary key for the epics relation (M2M).
	EpicsPrimaryKey = []string{"epic_id", "comment_id"}
	// ProjectsPrimaryKey and ProjectsColumn2 are the table columns denoting the
	// primary key for the projects relation (M2M).
	ProjectsPrimaryKey = []string{"project_id", "comment_id"}
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"user_id", "comment_id"}
)
View Source
var Columns = []string{
	FieldID,
	FieldText,
}

Columns holds all SQL columns for comment fields.

View Source
var (
	// TextValidator is a validator for the "text" field. It is called by the builders before save.
	TextValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Comment) predicate.Comment

And groups predicates with the AND operator between them.

func HasEpics

func HasEpics() predicate.Comment

HasEpics applies the HasEdge predicate on the "epics" edge.

func HasEpicsWith

func HasEpicsWith(preds ...predicate.Epic) predicate.Comment

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

func HasProjects

func HasProjects() predicate.Comment

HasProjects applies the HasEdge predicate on the "projects" edge.

func HasProjectsWith

func HasProjectsWith(preds ...predicate.Project) predicate.Comment

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

func HasUsers

func HasUsers() predicate.Comment

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Comment

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

func ID

func ID(id int) predicate.Comment

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Comment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Comment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Comment

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Comment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Comment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Comment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Text

func Text(v string) predicate.Comment

Text applies equality check predicate on the "text" field. It's identical to TextEQ.

func TextContains

func TextContains(v string) predicate.Comment

TextContains applies the Contains predicate on the "text" field.

func TextContainsFold

func TextContainsFold(v string) predicate.Comment

TextContainsFold applies the ContainsFold predicate on the "text" field.

func TextEQ

func TextEQ(v string) predicate.Comment

TextEQ applies the EQ predicate on the "text" field.

func TextEqualFold

func TextEqualFold(v string) predicate.Comment

TextEqualFold applies the EqualFold predicate on the "text" field.

func TextGT

func TextGT(v string) predicate.Comment

TextGT applies the GT predicate on the "text" field.

func TextGTE

func TextGTE(v string) predicate.Comment

TextGTE applies the GTE predicate on the "text" field.

func TextHasPrefix

func TextHasPrefix(v string) predicate.Comment

TextHasPrefix applies the HasPrefix predicate on the "text" field.

func TextHasSuffix

func TextHasSuffix(v string) predicate.Comment

TextHasSuffix applies the HasSuffix predicate on the "text" field.

func TextIn

func TextIn(vs ...string) predicate.Comment

TextIn applies the In predicate on the "text" field.

func TextLT

func TextLT(v string) predicate.Comment

TextLT applies the LT predicate on the "text" field.

func TextLTE

func TextLTE(v string) predicate.Comment

TextLTE applies the LTE predicate on the "text" field.

func TextNEQ

func TextNEQ(v string) predicate.Comment

TextNEQ applies the NEQ predicate on the "text" field.

func TextNotIn

func TextNotIn(vs ...string) predicate.Comment

TextNotIn applies the NotIn predicate on the "text" field.

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