issuecomment

package
v0.0.0-...-914df79 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the issuecomment type in the database.
	Label = "issue_comment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldHTMLURL holds the string denoting the html_url field in the database.
	FieldHTMLURL = "html_url"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldIssueURL holds the string denoting the issue_url field in the database.
	FieldIssueURL = "issue_url"
	// FieldAuthorAssociation holds the string denoting the author_association field in the database.
	FieldAuthorAssociation = "author_association"
	// FieldReactions holds the string denoting the reactions field in the database.
	FieldReactions = "reactions"
	// EdgeIssue holds the string denoting the issue edge name in mutations.
	EdgeIssue = "issue"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the issuecomment in the database.
	Table = "issue_comments"
	// IssueTable is the table that holds the issue relation/edge.
	IssueTable = "issue_comments"
	// IssueInverseTable is the table name for the Issue entity.
	// It exists in this package in order to avoid circular dependency with the "issue" package.
	IssueInverseTable = "issues"
	// IssueColumn is the table column denoting the issue relation/edge.
	IssueColumn = "issue_comments"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "issue_comments"
	// 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_comments_created"
)

Variables

Columns holds all SQL columns for issuecomment fields.

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

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

Functions

func And

func And(predicates ...predicate.IssueComment) predicate.IssueComment

And groups predicates with the AND operator between them.

func AuthorAssociationEQ

func AuthorAssociationEQ(v AuthorAssociation) predicate.IssueComment

AuthorAssociationEQ applies the EQ predicate on the "author_association" field.

func AuthorAssociationIn

func AuthorAssociationIn(vs ...AuthorAssociation) predicate.IssueComment

AuthorAssociationIn applies the In predicate on the "author_association" field.

func AuthorAssociationNEQ

func AuthorAssociationNEQ(v AuthorAssociation) predicate.IssueComment

AuthorAssociationNEQ applies the NEQ predicate on the "author_association" field.

func AuthorAssociationNotIn

func AuthorAssociationNotIn(vs ...AuthorAssociation) predicate.IssueComment

AuthorAssociationNotIn applies the NotIn predicate on the "author_association" field.

func AuthorAssociationValidator

func AuthorAssociationValidator(aa AuthorAssociation) error

AuthorAssociationValidator is a validator for the "author_association" field enum values. It is called by the builders before save.

func Body

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.IssueComment

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.IssueComment

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

func BodyEQ(v string) predicate.IssueComment

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.IssueComment

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

func BodyGT(v string) predicate.IssueComment

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

func BodyGTE(v string) predicate.IssueComment

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.IssueComment

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.IssueComment

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

func BodyIn(vs ...string) predicate.IssueComment

BodyIn applies the In predicate on the "body" field.

func BodyLT

func BodyLT(v string) predicate.IssueComment

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

func BodyLTE(v string) predicate.IssueComment

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.IssueComment

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

func BodyNotIn(vs ...string) predicate.IssueComment

BodyNotIn applies the NotIn predicate on the "body" field.

func CreatedAt

func CreatedAt(v string) predicate.IssueComment

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtContains

func CreatedAtContains(v string) predicate.IssueComment

CreatedAtContains applies the Contains predicate on the "created_at" field.

func CreatedAtContainsFold

func CreatedAtContainsFold(v string) predicate.IssueComment

CreatedAtContainsFold applies the ContainsFold predicate on the "created_at" field.

func CreatedAtEQ

func CreatedAtEQ(v string) predicate.IssueComment

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtEqualFold

func CreatedAtEqualFold(v string) predicate.IssueComment

CreatedAtEqualFold applies the EqualFold predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v string) predicate.IssueComment

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v string) predicate.IssueComment

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtHasPrefix

func CreatedAtHasPrefix(v string) predicate.IssueComment

CreatedAtHasPrefix applies the HasPrefix predicate on the "created_at" field.

func CreatedAtHasSuffix

func CreatedAtHasSuffix(v string) predicate.IssueComment

CreatedAtHasSuffix applies the HasSuffix predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...string) predicate.IssueComment

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v string) predicate.IssueComment

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v string) predicate.IssueComment

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v string) predicate.IssueComment

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...string) predicate.IssueComment

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HTMLURL

func HTMLURL(v string) predicate.IssueComment

HTMLURL applies equality check predicate on the "html_url" field. It's identical to HTMLURLEQ.

func HTMLURLContains

func HTMLURLContains(v string) predicate.IssueComment

HTMLURLContains applies the Contains predicate on the "html_url" field.

func HTMLURLContainsFold

func HTMLURLContainsFold(v string) predicate.IssueComment

HTMLURLContainsFold applies the ContainsFold predicate on the "html_url" field.

func HTMLURLEQ

func HTMLURLEQ(v string) predicate.IssueComment

HTMLURLEQ applies the EQ predicate on the "html_url" field.

func HTMLURLEqualFold

func HTMLURLEqualFold(v string) predicate.IssueComment

HTMLURLEqualFold applies the EqualFold predicate on the "html_url" field.

func HTMLURLGT

func HTMLURLGT(v string) predicate.IssueComment

HTMLURLGT applies the GT predicate on the "html_url" field.

func HTMLURLGTE

func HTMLURLGTE(v string) predicate.IssueComment

HTMLURLGTE applies the GTE predicate on the "html_url" field.

func HTMLURLHasPrefix

func HTMLURLHasPrefix(v string) predicate.IssueComment

HTMLURLHasPrefix applies the HasPrefix predicate on the "html_url" field.

func HTMLURLHasSuffix

func HTMLURLHasSuffix(v string) predicate.IssueComment

HTMLURLHasSuffix applies the HasSuffix predicate on the "html_url" field.

func HTMLURLIn

func HTMLURLIn(vs ...string) predicate.IssueComment

HTMLURLIn applies the In predicate on the "html_url" field.

func HTMLURLLT

func HTMLURLLT(v string) predicate.IssueComment

HTMLURLLT applies the LT predicate on the "html_url" field.

func HTMLURLLTE

func HTMLURLLTE(v string) predicate.IssueComment

HTMLURLLTE applies the LTE predicate on the "html_url" field.

func HTMLURLNEQ

func HTMLURLNEQ(v string) predicate.IssueComment

HTMLURLNEQ applies the NEQ predicate on the "html_url" field.

func HTMLURLNotIn

func HTMLURLNotIn(vs ...string) predicate.IssueComment

HTMLURLNotIn applies the NotIn predicate on the "html_url" field.

func HasIssue

func HasIssue() predicate.IssueComment

HasIssue applies the HasEdge predicate on the "issue" edge.

func HasIssueWith

func HasIssueWith(preds ...predicate.Issue) predicate.IssueComment

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

func HasUser

func HasUser() predicate.IssueComment

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

func HasUserWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.IssueComment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.IssueComment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.IssueComment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.IssueComment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.IssueComment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.IssueComment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.IssueComment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.IssueComment

IDNotIn applies the NotIn predicate on the ID field.

func IssueURL

func IssueURL(v string) predicate.IssueComment

IssueURL applies equality check predicate on the "issue_url" field. It's identical to IssueURLEQ.

func IssueURLContains

func IssueURLContains(v string) predicate.IssueComment

IssueURLContains applies the Contains predicate on the "issue_url" field.

func IssueURLContainsFold

func IssueURLContainsFold(v string) predicate.IssueComment

IssueURLContainsFold applies the ContainsFold predicate on the "issue_url" field.

func IssueURLEQ

func IssueURLEQ(v string) predicate.IssueComment

IssueURLEQ applies the EQ predicate on the "issue_url" field.

func IssueURLEqualFold

func IssueURLEqualFold(v string) predicate.IssueComment

IssueURLEqualFold applies the EqualFold predicate on the "issue_url" field.

func IssueURLGT

func IssueURLGT(v string) predicate.IssueComment

IssueURLGT applies the GT predicate on the "issue_url" field.

func IssueURLGTE

func IssueURLGTE(v string) predicate.IssueComment

IssueURLGTE applies the GTE predicate on the "issue_url" field.

func IssueURLHasPrefix

func IssueURLHasPrefix(v string) predicate.IssueComment

IssueURLHasPrefix applies the HasPrefix predicate on the "issue_url" field.

func IssueURLHasSuffix

func IssueURLHasSuffix(v string) predicate.IssueComment

IssueURLHasSuffix applies the HasSuffix predicate on the "issue_url" field.

func IssueURLIn

func IssueURLIn(vs ...string) predicate.IssueComment

IssueURLIn applies the In predicate on the "issue_url" field.

func IssueURLLT

func IssueURLLT(v string) predicate.IssueComment

IssueURLLT applies the LT predicate on the "issue_url" field.

func IssueURLLTE

func IssueURLLTE(v string) predicate.IssueComment

IssueURLLTE applies the LTE predicate on the "issue_url" field.

func IssueURLNEQ

func IssueURLNEQ(v string) predicate.IssueComment

IssueURLNEQ applies the NEQ predicate on the "issue_url" field.

func IssueURLNotIn

func IssueURLNotIn(vs ...string) predicate.IssueComment

IssueURLNotIn applies the NotIn predicate on the "issue_url" field.

func NodeID

func NodeID(v string) predicate.IssueComment

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDContains

func NodeIDContains(v string) predicate.IssueComment

NodeIDContains applies the Contains predicate on the "node_id" field.

func NodeIDContainsFold

func NodeIDContainsFold(v string) predicate.IssueComment

NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.

func NodeIDEQ

func NodeIDEQ(v string) predicate.IssueComment

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDEqualFold

func NodeIDEqualFold(v string) predicate.IssueComment

NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.

func NodeIDGT

func NodeIDGT(v string) predicate.IssueComment

NodeIDGT applies the GT predicate on the "node_id" field.

func NodeIDGTE

func NodeIDGTE(v string) predicate.IssueComment

NodeIDGTE applies the GTE predicate on the "node_id" field.

func NodeIDHasPrefix

func NodeIDHasPrefix(v string) predicate.IssueComment

NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.

func NodeIDHasSuffix

func NodeIDHasSuffix(v string) predicate.IssueComment

NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...string) predicate.IssueComment

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDLT

func NodeIDLT(v string) predicate.IssueComment

NodeIDLT applies the LT predicate on the "node_id" field.

func NodeIDLTE

func NodeIDLTE(v string) predicate.IssueComment

NodeIDLTE applies the LTE predicate on the "node_id" field.

func NodeIDNEQ

func NodeIDNEQ(v string) predicate.IssueComment

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...string) predicate.IssueComment

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.IssueComment) predicate.IssueComment

Or groups predicates with the OR operator between them.

func URL

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.IssueComment

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.IssueComment

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.IssueComment

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.IssueComment

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.IssueComment

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.IssueComment

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.IssueComment

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.IssueComment

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.IssueComment

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.IssueComment

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.IssueComment

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.IssueComment

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.IssueComment

URLNotIn applies the NotIn predicate on the "url" field.

func UpdatedAt

func UpdatedAt(v string) predicate.IssueComment

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtContains

func UpdatedAtContains(v string) predicate.IssueComment

UpdatedAtContains applies the Contains predicate on the "updated_at" field.

func UpdatedAtContainsFold

func UpdatedAtContainsFold(v string) predicate.IssueComment

UpdatedAtContainsFold applies the ContainsFold predicate on the "updated_at" field.

func UpdatedAtEQ

func UpdatedAtEQ(v string) predicate.IssueComment

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtEqualFold

func UpdatedAtEqualFold(v string) predicate.IssueComment

UpdatedAtEqualFold applies the EqualFold predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v string) predicate.IssueComment

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v string) predicate.IssueComment

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtHasPrefix

func UpdatedAtHasPrefix(v string) predicate.IssueComment

UpdatedAtHasPrefix applies the HasPrefix predicate on the "updated_at" field.

func UpdatedAtHasSuffix

func UpdatedAtHasSuffix(v string) predicate.IssueComment

UpdatedAtHasSuffix applies the HasSuffix predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...string) predicate.IssueComment

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v string) predicate.IssueComment

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v string) predicate.IssueComment

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v string) predicate.IssueComment

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...string) predicate.IssueComment

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type AuthorAssociation

type AuthorAssociation string

AuthorAssociation defines the type for the "author_association" enum field.

const (
	AuthorAssociationCOLLABORATOR           AuthorAssociation = "COLLABORATOR"
	AuthorAssociationCONTRIBUTOR            AuthorAssociation = "CONTRIBUTOR"
	AuthorAssociationFIRST_TIMER            AuthorAssociation = "FIRST_TIMER"
	AuthorAssociationFIRST_TIME_CONTRIBUTOR AuthorAssociation = "FIRST_TIME_CONTRIBUTOR"
	AuthorAssociationMANNEQUIN              AuthorAssociation = "MANNEQUIN"
	AuthorAssociationMEMBER                 AuthorAssociation = "MEMBER"
	AuthorAssociationNONE                   AuthorAssociation = "NONE"
	AuthorAssociationOWNER                  AuthorAssociation = "OWNER"
)

AuthorAssociation values.

func (AuthorAssociation) String

func (aa AuthorAssociation) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the IssueComment queries.

func ByAuthorAssociation

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

ByAuthorAssociation orders the results by the author_association field.

func ByBody

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

ByBody orders the results by the body field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByHTMLURL

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

ByHTMLURL orders the results by the html_url field.

func ByID

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

ByID orders the results by the id field.

func ByIssueField

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

ByIssueField orders the results by issue field.

func ByIssueURL

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

ByIssueURL orders the results by the issue_url field.

func ByNodeID

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

ByNodeID orders the results by the node_id field.

func ByURL

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

ByURL orders the results by the url field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

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

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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