sourcename

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sourcename type in the database.
	Label = "source_name"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCommit holds the string denoting the commit field in the database.
	FieldCommit = "commit"
	// FieldTag holds the string denoting the tag field in the database.
	FieldTag = "tag"
	// EdgeOccurrences holds the string denoting the occurrences edge name in mutations.
	EdgeOccurrences = "occurrences"
	// Table holds the table name of the sourcename in the database.
	Table = "source_names"
	// OccurrencesTable is the table that holds the occurrences relation/edge.
	OccurrencesTable = "occurrences"
	// OccurrencesInverseTable is the table name for the Occurrence entity.
	// It exists in this package in order to avoid circular dependency with the "occurrence" package.
	OccurrencesInverseTable = "occurrences"
	// OccurrencesColumn is the table column denoting the occurrences relation/edge.
	OccurrencesColumn = "source_id"
)

Variables

Columns holds all SQL columns for sourcename fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.SourceName) predicate.SourceName

And groups predicates with the AND operator between them.

func Commit

func Commit(v string) predicate.SourceName

Commit applies equality check predicate on the "commit" field. It's identical to CommitEQ.

func CommitContains

func CommitContains(v string) predicate.SourceName

CommitContains applies the Contains predicate on the "commit" field.

func CommitContainsFold

func CommitContainsFold(v string) predicate.SourceName

CommitContainsFold applies the ContainsFold predicate on the "commit" field.

func CommitEQ

func CommitEQ(v string) predicate.SourceName

CommitEQ applies the EQ predicate on the "commit" field.

func CommitEqualFold

func CommitEqualFold(v string) predicate.SourceName

CommitEqualFold applies the EqualFold predicate on the "commit" field.

func CommitGT

func CommitGT(v string) predicate.SourceName

CommitGT applies the GT predicate on the "commit" field.

func CommitGTE

func CommitGTE(v string) predicate.SourceName

CommitGTE applies the GTE predicate on the "commit" field.

func CommitHasPrefix

func CommitHasPrefix(v string) predicate.SourceName

CommitHasPrefix applies the HasPrefix predicate on the "commit" field.

func CommitHasSuffix

func CommitHasSuffix(v string) predicate.SourceName

CommitHasSuffix applies the HasSuffix predicate on the "commit" field.

func CommitIn

func CommitIn(vs ...string) predicate.SourceName

CommitIn applies the In predicate on the "commit" field.

func CommitIsNil

func CommitIsNil() predicate.SourceName

CommitIsNil applies the IsNil predicate on the "commit" field.

func CommitLT

func CommitLT(v string) predicate.SourceName

CommitLT applies the LT predicate on the "commit" field.

func CommitLTE

func CommitLTE(v string) predicate.SourceName

CommitLTE applies the LTE predicate on the "commit" field.

func CommitNEQ

func CommitNEQ(v string) predicate.SourceName

CommitNEQ applies the NEQ predicate on the "commit" field.

func CommitNotIn

func CommitNotIn(vs ...string) predicate.SourceName

CommitNotIn applies the NotIn predicate on the "commit" field.

func CommitNotNil

func CommitNotNil() predicate.SourceName

CommitNotNil applies the NotNil predicate on the "commit" field.

func HasOccurrences

func HasOccurrences() predicate.SourceName

HasOccurrences applies the HasEdge predicate on the "occurrences" edge.

func HasOccurrencesWith

func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.SourceName

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.SourceName

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.SourceName

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.SourceName

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.SourceName

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.SourceName

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.SourceName

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.SourceName

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.SourceName

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.SourceName

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

func NameContains

func NameContains(v string) predicate.SourceName

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

func NameContainsFold

func NameContainsFold(v string) predicate.SourceName

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

func NameEQ

func NameEQ(v string) predicate.SourceName

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

func NameEqualFold

func NameEqualFold(v string) predicate.SourceName

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

func NameGT

func NameGT(v string) predicate.SourceName

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

func NameGTE

func NameGTE(v string) predicate.SourceName

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.SourceName

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.SourceName

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.SourceName

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

func NameLTE

func NameLTE(v string) predicate.SourceName

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

func NameNEQ

func NameNEQ(v string) predicate.SourceName

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

func NameNotIn

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

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

func Namespace added in v0.5.0

func Namespace(v string) predicate.SourceName

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains added in v0.5.0

func NamespaceContains(v string) predicate.SourceName

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold added in v0.5.0

func NamespaceContainsFold(v string) predicate.SourceName

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ added in v0.5.0

func NamespaceEQ(v string) predicate.SourceName

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold added in v0.5.0

func NamespaceEqualFold(v string) predicate.SourceName

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT added in v0.5.0

func NamespaceGT(v string) predicate.SourceName

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE added in v0.5.0

func NamespaceGTE(v string) predicate.SourceName

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix added in v0.5.0

func NamespaceHasPrefix(v string) predicate.SourceName

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix added in v0.5.0

func NamespaceHasSuffix(v string) predicate.SourceName

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn added in v0.5.0

func NamespaceIn(vs ...string) predicate.SourceName

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT added in v0.5.0

func NamespaceLT(v string) predicate.SourceName

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE added in v0.5.0

func NamespaceLTE(v string) predicate.SourceName

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ added in v0.5.0

func NamespaceNEQ(v string) predicate.SourceName

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn added in v0.5.0

func NamespaceNotIn(vs ...string) predicate.SourceName

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SourceName) predicate.SourceName

Or groups predicates with the OR operator between them.

func Tag

Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.

func TagContains

func TagContains(v string) predicate.SourceName

TagContains applies the Contains predicate on the "tag" field.

func TagContainsFold

func TagContainsFold(v string) predicate.SourceName

TagContainsFold applies the ContainsFold predicate on the "tag" field.

func TagEQ

func TagEQ(v string) predicate.SourceName

TagEQ applies the EQ predicate on the "tag" field.

func TagEqualFold

func TagEqualFold(v string) predicate.SourceName

TagEqualFold applies the EqualFold predicate on the "tag" field.

func TagGT

func TagGT(v string) predicate.SourceName

TagGT applies the GT predicate on the "tag" field.

func TagGTE

func TagGTE(v string) predicate.SourceName

TagGTE applies the GTE predicate on the "tag" field.

func TagHasPrefix

func TagHasPrefix(v string) predicate.SourceName

TagHasPrefix applies the HasPrefix predicate on the "tag" field.

func TagHasSuffix

func TagHasSuffix(v string) predicate.SourceName

TagHasSuffix applies the HasSuffix predicate on the "tag" field.

func TagIn

func TagIn(vs ...string) predicate.SourceName

TagIn applies the In predicate on the "tag" field.

func TagIsNil

func TagIsNil() predicate.SourceName

TagIsNil applies the IsNil predicate on the "tag" field.

func TagLT

func TagLT(v string) predicate.SourceName

TagLT applies the LT predicate on the "tag" field.

func TagLTE

func TagLTE(v string) predicate.SourceName

TagLTE applies the LTE predicate on the "tag" field.

func TagNEQ

func TagNEQ(v string) predicate.SourceName

TagNEQ applies the NEQ predicate on the "tag" field.

func TagNotIn

func TagNotIn(vs ...string) predicate.SourceName

TagNotIn applies the NotIn predicate on the "tag" field.

func TagNotNil

func TagNotNil() predicate.SourceName

TagNotNil applies the NotNil predicate on the "tag" field.

func Type added in v0.5.0

func Type(v string) predicate.SourceName

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains added in v0.5.0

func TypeContains(v string) predicate.SourceName

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold added in v0.5.0

func TypeContainsFold(v string) predicate.SourceName

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ added in v0.5.0

func TypeEQ(v string) predicate.SourceName

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

func TypeEqualFold added in v0.5.0

func TypeEqualFold(v string) predicate.SourceName

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT added in v0.5.0

func TypeGT(v string) predicate.SourceName

TypeGT applies the GT predicate on the "type" field.

func TypeGTE added in v0.5.0

func TypeGTE(v string) predicate.SourceName

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix added in v0.5.0

func TypeHasPrefix(v string) predicate.SourceName

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix added in v0.5.0

func TypeHasSuffix(v string) predicate.SourceName

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn added in v0.5.0

func TypeIn(vs ...string) predicate.SourceName

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

func TypeLT added in v0.5.0

func TypeLT(v string) predicate.SourceName

TypeLT applies the LT predicate on the "type" field.

func TypeLTE added in v0.5.0

func TypeLTE(v string) predicate.SourceName

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ added in v0.5.0

func TypeNEQ(v string) predicate.SourceName

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

func TypeNotIn added in v0.5.0

func TypeNotIn(vs ...string) predicate.SourceName

TypeNotIn applies the NotIn predicate on the "type" 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 SourceName queries.

func ByCommit

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

ByCommit orders the results by the commit field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByNamespace added in v0.5.0

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

ByNamespace orders the results by the namespace field.

func ByOccurrences

func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOccurrences orders the results by occurrences terms.

func ByOccurrencesCount

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

ByOccurrencesCount orders the results by occurrences count.

func ByTag

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

ByTag orders the results by the tag field.

func ByType added in v0.5.0

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

ByType orders the results by the type field.

Jump to

Keyboard shortcuts

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