repositorytechnology

package
v0.0.0-...-5435fe0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the repositorytechnology type in the database.
	Label = "repository_technology"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeRepository holds the string denoting the repository edge name in mutations.
	EdgeRepository = "repository"
	// EdgeTechnology holds the string denoting the technology edge name in mutations.
	EdgeTechnology = "technology"
	// Table holds the table name of the repositorytechnology in the database.
	Table = "repository_technologies"
	// RepositoryTable is the table that holds the repository relation/edge.
	RepositoryTable = "repository_technologies"
	// RepositoryInverseTable is the table name for the Repository entity.
	// It exists in this package in order to avoid circular dependency with the "repository" package.
	RepositoryInverseTable = "repositories"
	// RepositoryColumn is the table column denoting the repository relation/edge.
	RepositoryColumn = "repository_technologies"
	// TechnologyTable is the table that holds the technology relation/edge.
	TechnologyTable = "repository_technologies"
	// TechnologyInverseTable is the table name for the Technology entity.
	// It exists in this package in order to avoid circular dependency with the "technology" package.
	TechnologyInverseTable = "technologies"
	// TechnologyColumn is the table column denoting the technology relation/edge.
	TechnologyColumn = "technology_repositories"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/fogo-sh/grackdb/ent/runtime"
View Source
var Columns = []string{
	FieldID,
	FieldType,
}

Columns holds all SQL columns for repositorytechnology fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func HasRepository

func HasRepository() predicate.RepositoryTechnology

HasRepository applies the HasEdge predicate on the "repository" edge.

func HasRepositoryWith

func HasRepositoryWith(preds ...predicate.Repository) predicate.RepositoryTechnology

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

func HasTechnology

func HasTechnology() predicate.RepositoryTechnology

HasTechnology applies the HasEdge predicate on the "technology" edge.

func HasTechnologyWith

func HasTechnologyWith(preds ...predicate.Technology) predicate.RepositoryTechnology

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func TypeEQ

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.RepositoryTechnology

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.RepositoryTechnology

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeWrittenIn  Type = "WRITTEN_IN"
	TypeImplements Type = "IMPLEMENTS"
	TypeUses       Type = "USES"
	TypeContains   Type = "CONTAINS"
)

Type values.

func (Type) MarshalGQL

func (e Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (e *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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