platform

package
v0.0.0-...-187b2eb Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the platform type in the database.
	Label = "platform"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldIcon holds the string denoting the icon field in the database.
	FieldIcon = "icon"
	// EdgeTopics holds the string denoting the topics edge name in mutations.
	EdgeTopics = "topics"
	// Table holds the table name of the platform in the database.
	Table = "platform"
	// TopicsTable is the table that holds the topics relation/edge.
	TopicsTable = "topic"
	// TopicsInverseTable is the table name for the Topic entity.
	// It exists in this package in order to avoid circular dependency with the "topic" package.
	TopicsInverseTable = "topic"
	// TopicsColumn is the table column denoting the topics relation/edge.
	TopicsColumn = "platform_id"
)

Variables

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

Columns holds all SQL columns for platform fields.

Functions

func And

func And(predicates ...predicate.Platform) predicate.Platform

And groups predicates with the AND operator between them.

func HasTopics

func HasTopics() predicate.Platform

HasTopics applies the HasEdge predicate on the "topics" edge.

func HasTopicsWith

func HasTopicsWith(preds ...predicate.Topic) predicate.Platform

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

func ID

func ID(id int) predicate.Platform

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Platform

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Platform

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Platform

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Platform

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Platform

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Platform

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Icon

func Icon(v string) predicate.Platform

Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.

func IconContains

func IconContains(v string) predicate.Platform

IconContains applies the Contains predicate on the "icon" field.

func IconContainsFold

func IconContainsFold(v string) predicate.Platform

IconContainsFold applies the ContainsFold predicate on the "icon" field.

func IconEQ

func IconEQ(v string) predicate.Platform

IconEQ applies the EQ predicate on the "icon" field.

func IconEqualFold

func IconEqualFold(v string) predicate.Platform

IconEqualFold applies the EqualFold predicate on the "icon" field.

func IconGT

func IconGT(v string) predicate.Platform

IconGT applies the GT predicate on the "icon" field.

func IconGTE

func IconGTE(v string) predicate.Platform

IconGTE applies the GTE predicate on the "icon" field.

func IconHasPrefix

func IconHasPrefix(v string) predicate.Platform

IconHasPrefix applies the HasPrefix predicate on the "icon" field.

func IconHasSuffix

func IconHasSuffix(v string) predicate.Platform

IconHasSuffix applies the HasSuffix predicate on the "icon" field.

func IconIn

func IconIn(vs ...string) predicate.Platform

IconIn applies the In predicate on the "icon" field.

func IconIsNil

func IconIsNil() predicate.Platform

IconIsNil applies the IsNil predicate on the "icon" field.

func IconLT

func IconLT(v string) predicate.Platform

IconLT applies the LT predicate on the "icon" field.

func IconLTE

func IconLTE(v string) predicate.Platform

IconLTE applies the LTE predicate on the "icon" field.

func IconNEQ

func IconNEQ(v string) predicate.Platform

IconNEQ applies the NEQ predicate on the "icon" field.

func IconNotIn

func IconNotIn(vs ...string) predicate.Platform

IconNotIn applies the NotIn predicate on the "icon" field.

func IconNotNil

func IconNotNil() predicate.Platform

IconNotNil applies the NotNil predicate on the "icon" field.

func Name

func Name(v string) predicate.Platform

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Platform

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Platform

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Platform

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Platform

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Platform

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Platform

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Platform

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Platform

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Platform

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Platform

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Platform

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Platform

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Platform

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Platform) predicate.Platform

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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