sourcetype

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sourcetype type in the database.
	Label = "source_type"
	// 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"
	// EdgeNamespaces holds the string denoting the namespaces edge name in mutations.
	EdgeNamespaces = "namespaces"
	// Table holds the table name of the sourcetype in the database.
	Table = "source_types"
	// NamespacesTable is the table that holds the namespaces relation/edge.
	NamespacesTable = "source_namespaces"
	// NamespacesInverseTable is the table name for the SourceNamespace entity.
	// It exists in this package in order to avoid circular dependency with the "sourcenamespace" package.
	NamespacesInverseTable = "source_namespaces"
	// NamespacesColumn is the table column denoting the namespaces relation/edge.
	NamespacesColumn = "source_id"
)

Variables

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

Columns holds all SQL columns for sourcetype fields.

Functions

func And

func And(predicates ...predicate.SourceType) predicate.SourceType

And groups predicates with the AND operator between them.

func HasNamespaces

func HasNamespaces() predicate.SourceType

HasNamespaces applies the HasEdge predicate on the "namespaces" edge.

func HasNamespacesWith

func HasNamespacesWith(preds ...predicate.SourceNamespace) predicate.SourceType

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

func ID

func ID(id int) predicate.SourceType

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SourceType

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SourceType

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SourceType

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SourceType

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SourceType

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SourceType

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Type

func Type(v string) predicate.SourceType

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

func TypeContains

func TypeContains(v string) predicate.SourceType

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

func TypeContainsFold

func TypeContainsFold(v string) predicate.SourceType

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

func TypeEQ

func TypeEQ(v string) predicate.SourceType

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

func TypeEqualFold

func TypeEqualFold(v string) predicate.SourceType

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

func TypeGT

func TypeGT(v string) predicate.SourceType

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

func TypeGTE

func TypeGTE(v string) predicate.SourceType

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

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.SourceType

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

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.SourceType

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

func TypeIn

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

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

func TypeLT

func TypeLT(v string) predicate.SourceType

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

func TypeLTE

func TypeLTE(v string) predicate.SourceType

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

func TypeNEQ

func TypeNEQ(v string) predicate.SourceType

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

func TypeNotIn

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

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 SourceType queries.

func ByID

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

ByID orders the results by the id field.

func ByNamespaces

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

ByNamespaces orders the results by namespaces terms.

func ByNamespacesCount

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

ByNamespacesCount orders the results by namespaces count.

func ByType

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