Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Metadata) predicate.Metadata
- func HasArtifact() predicate.Metadata
- func HasArtifactWith(preds ...predicate.Artifact) predicate.Metadata
- func ID(id int) predicate.Metadata
- func IDEQ(id int) predicate.Metadata
- func IDGT(id int) predicate.Metadata
- func IDGTE(id int) predicate.Metadata
- func IDIn(ids ...int) predicate.Metadata
- func IDLT(id int) predicate.Metadata
- func IDLTE(id int) predicate.Metadata
- func IDNEQ(id int) predicate.Metadata
- func IDNotIn(ids ...int) predicate.Metadata
- func Key(v string) predicate.Metadata
- func KeyContains(v string) predicate.Metadata
- func KeyContainsFold(v string) predicate.Metadata
- func KeyEQ(v string) predicate.Metadata
- func KeyEqualFold(v string) predicate.Metadata
- func KeyGT(v string) predicate.Metadata
- func KeyGTE(v string) predicate.Metadata
- func KeyHasPrefix(v string) predicate.Metadata
- func KeyHasSuffix(v string) predicate.Metadata
- func KeyIn(vs ...string) predicate.Metadata
- func KeyLT(v string) predicate.Metadata
- func KeyLTE(v string) predicate.Metadata
- func KeyNEQ(v string) predicate.Metadata
- func KeyNotIn(vs ...string) predicate.Metadata
- func Not(p predicate.Metadata) predicate.Metadata
- func Or(predicates ...predicate.Metadata) predicate.Metadata
- func ValidColumn(column string) bool
- func Value(v string) predicate.Metadata
- func ValueContains(v string) predicate.Metadata
- func ValueContainsFold(v string) predicate.Metadata
- func ValueEQ(v string) predicate.Metadata
- func ValueEqualFold(v string) predicate.Metadata
- func ValueGT(v string) predicate.Metadata
- func ValueGTE(v string) predicate.Metadata
- func ValueHasPrefix(v string) predicate.Metadata
- func ValueHasSuffix(v string) predicate.Metadata
- func ValueIn(vs ...string) predicate.Metadata
- func ValueLT(v string) predicate.Metadata
- func ValueLTE(v string) predicate.Metadata
- func ValueNEQ(v string) predicate.Metadata
- func ValueNotIn(vs ...string) predicate.Metadata
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldKey, FieldValue, }
Columns holds all SQL columns for metadata fields.
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 HasArtifact ¶
HasArtifact applies the HasEdge predicate on the "artifact" edge.
func HasArtifactWith ¶
HasArtifactWith applies the HasEdge predicate on the "artifact" edge with a given conditions (other predicates).
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.