sourcenamespace

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sourcenamespace type in the database.
	Label = "source_namespace"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldSourceID holds the string denoting the source_id field in the database.
	FieldSourceID = "source_id"
	// EdgeSourceType holds the string denoting the source_type edge name in mutations.
	EdgeSourceType = "source_type"
	// EdgeNames holds the string denoting the names edge name in mutations.
	EdgeNames = "names"
	// Table holds the table name of the sourcenamespace in the database.
	Table = "source_namespaces"
	// SourceTypeTable is the table that holds the source_type relation/edge.
	SourceTypeTable = "source_namespaces"
	// SourceTypeInverseTable is the table name for the SourceType entity.
	// It exists in this package in order to avoid circular dependency with the "sourcetype" package.
	SourceTypeInverseTable = "source_types"
	// SourceTypeColumn is the table column denoting the source_type relation/edge.
	SourceTypeColumn = "source_id"
	// NamesTable is the table that holds the names relation/edge.
	NamesTable = "source_names"
	// NamesInverseTable is the table name for the SourceName entity.
	// It exists in this package in order to avoid circular dependency with the "sourcename" package.
	NamesInverseTable = "source_names"
	// NamesColumn is the table column denoting the names relation/edge.
	NamesColumn = "namespace_id"
)

Variables

Columns holds all SQL columns for sourcenamespace fields.

Functions

func And

And groups predicates with the AND operator between them.

func HasNames

func HasNames() predicate.SourceNamespace

HasNames applies the HasEdge predicate on the "names" edge.

func HasNamesWith

func HasNamesWith(preds ...predicate.SourceName) predicate.SourceNamespace

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

func HasSourceType

func HasSourceType() predicate.SourceNamespace

HasSourceType applies the HasEdge predicate on the "source_type" edge.

func HasSourceTypeWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SourceNamespace

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SourceNamespace

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SourceNamespace

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SourceNamespace

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SourceNamespace

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SourceNamespace

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Namespace

func Namespace(v string) predicate.SourceNamespace

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

func NamespaceContains

func NamespaceContains(v string) predicate.SourceNamespace

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

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.SourceNamespace

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

func NamespaceEQ

func NamespaceEQ(v string) predicate.SourceNamespace

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

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.SourceNamespace

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

func NamespaceGT

func NamespaceGT(v string) predicate.SourceNamespace

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

func NamespaceGTE

func NamespaceGTE(v string) predicate.SourceNamespace

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

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.SourceNamespace

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

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.SourceNamespace

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

func NamespaceIn

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

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

func NamespaceLT

func NamespaceLT(v string) predicate.SourceNamespace

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

func NamespaceLTE

func NamespaceLTE(v string) predicate.SourceNamespace

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

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.SourceNamespace

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

func NamespaceNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func SourceID

func SourceID(v int) predicate.SourceNamespace

SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.

func SourceIDEQ

func SourceIDEQ(v int) predicate.SourceNamespace

SourceIDEQ applies the EQ predicate on the "source_id" field.

func SourceIDIn

func SourceIDIn(vs ...int) predicate.SourceNamespace

SourceIDIn applies the In predicate on the "source_id" field.

func SourceIDNEQ

func SourceIDNEQ(v int) predicate.SourceNamespace

SourceIDNEQ applies the NEQ predicate on the "source_id" field.

func SourceIDNotIn

func SourceIDNotIn(vs ...int) predicate.SourceNamespace

SourceIDNotIn applies the NotIn predicate on the "source_id" 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 SourceNamespace queries.

func ByID

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

ByID orders the results by the id field.

func ByNames

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

ByNames orders the results by names terms.

func ByNamesCount

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

ByNamesCount orders the results by names count.

func ByNamespace

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

ByNamespace orders the results by the namespace field.

func BySourceID

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

BySourceID orders the results by the source_id field.

func BySourceTypeField

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

BySourceTypeField orders the results by source_type field.

Jump to

Keyboard shortcuts

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