tag

package
v0.0.0-...-ac9090e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tag type in the database.
	Label = "tag"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTag holds the string denoting the tag field in the database.
	FieldTag = "tag"
	// EdgeResources holds the string denoting the resources edge name in mutations.
	EdgeResources = "resources"
	// Table holds the table name of the tag in the database.
	Table = "tags"
	// ResourcesTable is the table that holds the resources relation/edge. The primary key declared below.
	ResourcesTable = "tag_resources"
	// ResourcesInverseTable is the table name for the Resources entity.
	// It exists in this package in order to avoid circular dependency with the "resources" package.
	ResourcesInverseTable = "resources"
)

Variables

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

Columns holds all SQL columns for tag fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)
View Source
var (
	// ResourcesPrimaryKey and ResourcesColumn2 are the table columns denoting the
	// primary key for the resources relation (M2M).
	ResourcesPrimaryKey = []string{"tag_id", "resources_id"}
)

Functions

func And

func And(predicates ...predicate.Tag) predicate.Tag

And groups predicates with the AND operator between them.

func HasResources

func HasResources() predicate.Tag

HasResources applies the HasEdge predicate on the "resources" edge.

func HasResourcesWith

func HasResourcesWith(preds ...predicate.Resources) predicate.Tag

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

func ID

func ID(id string) predicate.Tag

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Tag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Tag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Tag

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Tag

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Tag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Tag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Tag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Tag

IDNotIn applies the NotIn predicate on the ID field.

func Not

func Not(p predicate.Tag) predicate.Tag

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tag) predicate.Tag

Or groups predicates with the OR operator between them.

func Tag

func Tag(v string) predicate.Tag

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

func TagContains

func TagContains(v string) predicate.Tag

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

func TagContainsFold

func TagContainsFold(v string) predicate.Tag

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

func TagEQ

func TagEQ(v string) predicate.Tag

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

func TagEqualFold

func TagEqualFold(v string) predicate.Tag

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

func TagGT

func TagGT(v string) predicate.Tag

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

func TagGTE

func TagGTE(v string) predicate.Tag

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

func TagHasPrefix

func TagHasPrefix(v string) predicate.Tag

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

func TagHasSuffix

func TagHasSuffix(v string) predicate.Tag

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

func TagIn

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

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

func TagLT

func TagLT(v string) predicate.Tag

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

func TagLTE

func TagLTE(v string) predicate.Tag

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

func TagNEQ

func TagNEQ(v string) predicate.Tag

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

func TagNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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