metadata

package
v0.0.0-...-9c07312 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the metadata type in the database.
	Label = "metadata"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// EdgeArtifact holds the string denoting the artifact edge name in mutations.
	EdgeArtifact = "artifact"
	// Table holds the table name of the metadata in the database.
	Table = "metadata"
	// ArtifactTable is the table that holds the artifact relation/edge.
	ArtifactTable = "metadata"
	// ArtifactInverseTable is the table name for the Artifact entity.
	// It exists in this package in order to avoid circular dependency with the "artifact" package.
	ArtifactInverseTable = "artifacts"
	// ArtifactColumn is the table column denoting the artifact relation/edge.
	ArtifactColumn = "artifact_metadata"
)

Variables

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

Columns holds all SQL columns for metadata fields.

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

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

Functions

func And

func And(predicates ...predicate.Metadata) predicate.Metadata

And groups predicates with the AND operator between them.

func HasArtifact

func HasArtifact() predicate.Metadata

HasArtifact applies the HasEdge predicate on the "artifact" edge.

func HasArtifactWith

func HasArtifactWith(preds ...predicate.Artifact) predicate.Metadata

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

func ID

func ID(id int) predicate.Metadata

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Metadata

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Metadata

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Metadata

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Metadata

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Metadata

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Metadata

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Metadata

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Metadata

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Metadata

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Metadata

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Metadata

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Metadata

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Metadata

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Metadata

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Metadata

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Metadata

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Metadata

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Metadata

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Metadata

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Metadata

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Metadata) predicate.Metadata

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

func Value

func Value(v string) predicate.Metadata

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueContains

func ValueContains(v string) predicate.Metadata

ValueContains applies the Contains predicate on the "value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.Metadata

ValueContainsFold applies the ContainsFold predicate on the "value" field.

func ValueEQ

func ValueEQ(v string) predicate.Metadata

ValueEQ applies the EQ predicate on the "value" field.

func ValueEqualFold

func ValueEqualFold(v string) predicate.Metadata

ValueEqualFold applies the EqualFold predicate on the "value" field.

func ValueGT

func ValueGT(v string) predicate.Metadata

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v string) predicate.Metadata

ValueGTE applies the GTE predicate on the "value" field.

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.Metadata

ValueHasPrefix applies the HasPrefix predicate on the "value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.Metadata

ValueHasSuffix applies the HasSuffix predicate on the "value" field.

func ValueIn

func ValueIn(vs ...string) predicate.Metadata

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v string) predicate.Metadata

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v string) predicate.Metadata

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v string) predicate.Metadata

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...string) predicate.Metadata

ValueNotIn applies the NotIn predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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