namedsetoffiles

package
v0.0.0-...-9814cc3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the namedsetoffiles type in the database.
	Label = "named_set_of_files"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// EdgeOutputGroup holds the string denoting the output_group edge name in mutations.
	EdgeOutputGroup = "output_group"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// EdgeFileSets holds the string denoting the file_sets edge name in mutations.
	EdgeFileSets = "file_sets"
	// Table holds the table name of the namedsetoffiles in the database.
	Table = "named_set_of_files"
	// OutputGroupTable is the table that holds the output_group relation/edge.
	OutputGroupTable = "named_set_of_files"
	// OutputGroupInverseTable is the table name for the OutputGroup entity.
	// It exists in this package in order to avoid circular dependency with the "outputgroup" package.
	OutputGroupInverseTable = "output_groups"
	// OutputGroupColumn is the table column denoting the output_group relation/edge.
	OutputGroupColumn = "output_group_file_sets"
	// FilesTable is the table that holds the files relation/edge.
	FilesTable = "test_files"
	// FilesInverseTable is the table name for the TestFile entity.
	// It exists in this package in order to avoid circular dependency with the "testfile" package.
	FilesInverseTable = "test_files"
	// FilesColumn is the table column denoting the files relation/edge.
	FilesColumn = "named_set_of_files_files"
	// FileSetsTable is the table that holds the file_sets relation/edge.
	FileSetsTable = "named_set_of_files"
	// FileSetsColumn is the table column denoting the file_sets relation/edge.
	FileSetsColumn = "named_set_of_files_file_sets"
)

Variables

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

Columns holds all SQL columns for namedsetoffiles fields.

View Source
var ForeignKeys = []string{
	"named_set_of_files_file_sets",
	"output_group_file_sets",
}

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

Functions

func And

And groups predicates with the AND operator between them.

func HasFileSets

func HasFileSets() predicate.NamedSetOfFiles

HasFileSets applies the HasEdge predicate on the "file_sets" edge.

func HasFileSetsWith

func HasFileSetsWith(preds ...predicate.NamedSetOfFiles) predicate.NamedSetOfFiles

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

func HasFiles

func HasFiles() predicate.NamedSetOfFiles

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

func HasFilesWith

func HasFilesWith(preds ...predicate.TestFile) predicate.NamedSetOfFiles

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

func HasOutputGroup

func HasOutputGroup() predicate.NamedSetOfFiles

HasOutputGroup applies the HasEdge predicate on the "output_group" edge.

func HasOutputGroupWith

func HasOutputGroupWith(preds ...predicate.OutputGroup) predicate.NamedSetOfFiles

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.NamedSetOfFiles

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.NamedSetOfFiles

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.NamedSetOfFiles

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.NamedSetOfFiles

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NamedSetOfFiles

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NamedSetOfFiles

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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 ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the NamedSetOfFiles queries.

func ByFileSetsField

func ByFileSetsField(field string, opts ...sql.OrderTermOption) OrderOption

ByFileSetsField orders the results by file_sets field.

func ByFiles

func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFiles orders the results by files terms.

func ByFilesCount

func ByFilesCount(opts ...sql.OrderTermOption) OrderOption

ByFilesCount orders the results by files count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByOutputGroupField

func ByOutputGroupField(field string, opts ...sql.OrderTermOption) OrderOption

ByOutputGroupField orders the results by output_group field.

Jump to

Keyboard shortcuts

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