process

package
v0.11.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the process type in the database.
	Label = "process"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// EdgeAttachedFiles holds the string denoting the attached_files edge name in mutations.
	EdgeAttachedFiles = "attached_files"
	// Table holds the table name of the process in the database.
	Table = "processes"
	// FilesTable is the table that holds the files relation/edge. The primary key declared below.
	FilesTable = "attached_files"
	// FilesInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FilesInverseTable = "files"
	// AttachedFilesTable is the table that holds the attached_files relation/edge.
	AttachedFilesTable = "attached_files"
	// AttachedFilesInverseTable is the table name for the AttachedFile entity.
	// It exists in this package in order to avoid circular dependency with the "attachedfile" package.
	AttachedFilesInverseTable = "attached_files"
	// AttachedFilesColumn is the table column denoting the attached_files relation/edge.
	AttachedFilesColumn = "proc_id"
)

Variables

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

Columns holds all SQL columns for process fields.

View Source
var (
	// FilesPrimaryKey and FilesColumn2 are the table columns denoting the
	// primary key for the files relation (M2M).
	FilesPrimaryKey = []string{"proc_id", "f_id"}
)

Functions

func And

func And(predicates ...predicate.Process) predicate.Process

And groups predicates with the AND operator between them.

func HasAttachedFiles

func HasAttachedFiles() predicate.Process

HasAttachedFiles applies the HasEdge predicate on the "attached_files" edge.

func HasAttachedFilesWith

func HasAttachedFilesWith(preds ...predicate.AttachedFile) predicate.Process

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

func HasFiles

func HasFiles() predicate.Process

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith

func HasFilesWith(preds ...predicate.File) predicate.Process

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

func ID

func ID(id int) predicate.Process

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Process

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Process

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Process

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Process

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Process

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Process

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Process) predicate.Process

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