repo

package
v0.0.0-...-187b2eb Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the repo type in the database.
	Label = "repo"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldSubTopic holds the string denoting the sub_topic field in the database.
	FieldSubTopic = "sub_topic"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldStarCount holds the string denoting the star_count field in the database.
	FieldStarCount = "star_count"
	// FieldForkCount holds the string denoting the fork_count field in the database.
	FieldForkCount = "fork_count"
	// FieldWatchCount holds the string denoting the watch_count field in the database.
	FieldWatchCount = "watch_count"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldTopicID holds the string denoting the topic_id field in the database.
	FieldTopicID = "topic_id"
	// EdgeTopics holds the string denoting the topics edge name in mutations.
	EdgeTopics = "topics"
	// Table holds the table name of the repo in the database.
	Table = "repo"
	// TopicsTable is the table that holds the topics relation/edge.
	TopicsTable = "repo"
	// TopicsInverseTable is the table name for the Topic entity.
	// It exists in this package in order to avoid circular dependency with the "topic" package.
	TopicsInverseTable = "topic"
	// TopicsColumn is the table column denoting the topics relation/edge.
	TopicsColumn = "topic_id"
)

Variables

Columns holds all SQL columns for repo fields.

Functions

func And

func And(predicates ...predicate.Repo) predicate.Repo

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Repo

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Repo

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Repo

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Repo

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Repo

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Repo

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Repo

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Repo

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Repo

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Repo

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Repo

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Repo

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Repo

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Repo

DescriptionNotIn applies the NotIn predicate on the "description" field.

func ForkCount

func ForkCount(v int) predicate.Repo

ForkCount applies equality check predicate on the "fork_count" field. It's identical to ForkCountEQ.

func ForkCountEQ

func ForkCountEQ(v int) predicate.Repo

ForkCountEQ applies the EQ predicate on the "fork_count" field.

func ForkCountGT

func ForkCountGT(v int) predicate.Repo

ForkCountGT applies the GT predicate on the "fork_count" field.

func ForkCountGTE

func ForkCountGTE(v int) predicate.Repo

ForkCountGTE applies the GTE predicate on the "fork_count" field.

func ForkCountIn

func ForkCountIn(vs ...int) predicate.Repo

ForkCountIn applies the In predicate on the "fork_count" field.

func ForkCountIsNil

func ForkCountIsNil() predicate.Repo

ForkCountIsNil applies the IsNil predicate on the "fork_count" field.

func ForkCountLT

func ForkCountLT(v int) predicate.Repo

ForkCountLT applies the LT predicate on the "fork_count" field.

func ForkCountLTE

func ForkCountLTE(v int) predicate.Repo

ForkCountLTE applies the LTE predicate on the "fork_count" field.

func ForkCountNEQ

func ForkCountNEQ(v int) predicate.Repo

ForkCountNEQ applies the NEQ predicate on the "fork_count" field.

func ForkCountNotIn

func ForkCountNotIn(vs ...int) predicate.Repo

ForkCountNotIn applies the NotIn predicate on the "fork_count" field.

func ForkCountNotNil

func ForkCountNotNil() predicate.Repo

ForkCountNotNil applies the NotNil predicate on the "fork_count" field.

func HasTopics

func HasTopics() predicate.Repo

HasTopics applies the HasEdge predicate on the "topics" edge.

func HasTopicsWith

func HasTopicsWith(preds ...predicate.Topic) predicate.Repo

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

func ID

func ID(id int) predicate.Repo

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Repo

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Repo

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Repo

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Repo

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Repo

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Repo

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Repo

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Repo

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Repo

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Repo

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Repo

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Repo

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Repo

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Repo

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Repo

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Repo

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Repo

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Repo

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Repo

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Repo

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Repo) predicate.Repo

Or groups predicates with the OR operator between them.

func StarCount

func StarCount(v int) predicate.Repo

StarCount applies equality check predicate on the "star_count" field. It's identical to StarCountEQ.

func StarCountEQ

func StarCountEQ(v int) predicate.Repo

StarCountEQ applies the EQ predicate on the "star_count" field.

func StarCountGT

func StarCountGT(v int) predicate.Repo

StarCountGT applies the GT predicate on the "star_count" field.

func StarCountGTE

func StarCountGTE(v int) predicate.Repo

StarCountGTE applies the GTE predicate on the "star_count" field.

func StarCountIn

func StarCountIn(vs ...int) predicate.Repo

StarCountIn applies the In predicate on the "star_count" field.

func StarCountIsNil

func StarCountIsNil() predicate.Repo

StarCountIsNil applies the IsNil predicate on the "star_count" field.

func StarCountLT

func StarCountLT(v int) predicate.Repo

StarCountLT applies the LT predicate on the "star_count" field.

func StarCountLTE

func StarCountLTE(v int) predicate.Repo

StarCountLTE applies the LTE predicate on the "star_count" field.

func StarCountNEQ

func StarCountNEQ(v int) predicate.Repo

StarCountNEQ applies the NEQ predicate on the "star_count" field.

func StarCountNotIn

func StarCountNotIn(vs ...int) predicate.Repo

StarCountNotIn applies the NotIn predicate on the "star_count" field.

func StarCountNotNil

func StarCountNotNil() predicate.Repo

StarCountNotNil applies the NotNil predicate on the "star_count" field.

func SubTopic

func SubTopic(v string) predicate.Repo

SubTopic applies equality check predicate on the "sub_topic" field. It's identical to SubTopicEQ.

func SubTopicContains

func SubTopicContains(v string) predicate.Repo

SubTopicContains applies the Contains predicate on the "sub_topic" field.

func SubTopicContainsFold

func SubTopicContainsFold(v string) predicate.Repo

SubTopicContainsFold applies the ContainsFold predicate on the "sub_topic" field.

func SubTopicEQ

func SubTopicEQ(v string) predicate.Repo

SubTopicEQ applies the EQ predicate on the "sub_topic" field.

func SubTopicEqualFold

func SubTopicEqualFold(v string) predicate.Repo

SubTopicEqualFold applies the EqualFold predicate on the "sub_topic" field.

func SubTopicGT

func SubTopicGT(v string) predicate.Repo

SubTopicGT applies the GT predicate on the "sub_topic" field.

func SubTopicGTE

func SubTopicGTE(v string) predicate.Repo

SubTopicGTE applies the GTE predicate on the "sub_topic" field.

func SubTopicHasPrefix

func SubTopicHasPrefix(v string) predicate.Repo

SubTopicHasPrefix applies the HasPrefix predicate on the "sub_topic" field.

func SubTopicHasSuffix

func SubTopicHasSuffix(v string) predicate.Repo

SubTopicHasSuffix applies the HasSuffix predicate on the "sub_topic" field.

func SubTopicIn

func SubTopicIn(vs ...string) predicate.Repo

SubTopicIn applies the In predicate on the "sub_topic" field.

func SubTopicLT

func SubTopicLT(v string) predicate.Repo

SubTopicLT applies the LT predicate on the "sub_topic" field.

func SubTopicLTE

func SubTopicLTE(v string) predicate.Repo

SubTopicLTE applies the LTE predicate on the "sub_topic" field.

func SubTopicNEQ

func SubTopicNEQ(v string) predicate.Repo

SubTopicNEQ applies the NEQ predicate on the "sub_topic" field.

func SubTopicNotIn

func SubTopicNotIn(vs ...string) predicate.Repo

SubTopicNotIn applies the NotIn predicate on the "sub_topic" field.

func TopicID

func TopicID(v int) predicate.Repo

TopicID applies equality check predicate on the "topic_id" field. It's identical to TopicIDEQ.

func TopicIDEQ

func TopicIDEQ(v int) predicate.Repo

TopicIDEQ applies the EQ predicate on the "topic_id" field.

func TopicIDIn

func TopicIDIn(vs ...int) predicate.Repo

TopicIDIn applies the In predicate on the "topic_id" field.

func TopicIDNEQ

func TopicIDNEQ(v int) predicate.Repo

TopicIDNEQ applies the NEQ predicate on the "topic_id" field.

func TopicIDNotIn

func TopicIDNotIn(vs ...int) predicate.Repo

TopicIDNotIn applies the NotIn predicate on the "topic_id" field.

func TypeEQ

func TypeEQ(v Type) predicate.Repo

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Repo

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Repo

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Repo

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

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

func URL

func URL(v string) predicate.Repo

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

func URLContains

func URLContains(v string) predicate.Repo

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

func URLContainsFold

func URLContainsFold(v string) predicate.Repo

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

func URLEQ

func URLEQ(v string) predicate.Repo

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

func URLEqualFold

func URLEqualFold(v string) predicate.Repo

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

func URLGT

func URLGT(v string) predicate.Repo

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

func URLGTE

func URLGTE(v string) predicate.Repo

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

func URLHasPrefix

func URLHasPrefix(v string) predicate.Repo

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

func URLHasSuffix

func URLHasSuffix(v string) predicate.Repo

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

func URLIn

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

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

func URLLT

func URLLT(v string) predicate.Repo

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

func URLLTE

func URLLTE(v string) predicate.Repo

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

func URLNEQ

func URLNEQ(v string) predicate.Repo

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

func URLNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Repo

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Repo

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Repo

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Repo

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

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Repo

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Repo

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Repo

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Repo

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Repo

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Repo

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Repo

UpdatedAtNotNil applies the NotNil 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).

func WatchCount

func WatchCount(v int) predicate.Repo

WatchCount applies equality check predicate on the "watch_count" field. It's identical to WatchCountEQ.

func WatchCountEQ

func WatchCountEQ(v int) predicate.Repo

WatchCountEQ applies the EQ predicate on the "watch_count" field.

func WatchCountGT

func WatchCountGT(v int) predicate.Repo

WatchCountGT applies the GT predicate on the "watch_count" field.

func WatchCountGTE

func WatchCountGTE(v int) predicate.Repo

WatchCountGTE applies the GTE predicate on the "watch_count" field.

func WatchCountIn

func WatchCountIn(vs ...int) predicate.Repo

WatchCountIn applies the In predicate on the "watch_count" field.

func WatchCountIsNil

func WatchCountIsNil() predicate.Repo

WatchCountIsNil applies the IsNil predicate on the "watch_count" field.

func WatchCountLT

func WatchCountLT(v int) predicate.Repo

WatchCountLT applies the LT predicate on the "watch_count" field.

func WatchCountLTE

func WatchCountLTE(v int) predicate.Repo

WatchCountLTE applies the LTE predicate on the "watch_count" field.

func WatchCountNEQ

func WatchCountNEQ(v int) predicate.Repo

WatchCountNEQ applies the NEQ predicate on the "watch_count" field.

func WatchCountNotIn

func WatchCountNotIn(vs ...int) predicate.Repo

WatchCountNotIn applies the NotIn predicate on the "watch_count" field.

func WatchCountNotNil

func WatchCountNotNil() predicate.Repo

WatchCountNotNil applies the NotNil predicate on the "watch_count" field.

Types

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeRepo     Type = "repo"
	TypeResource Type = "resource"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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