Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func HasProcesses() predicate.File
- func HasProcessesWith(preds ...predicate.Process) predicate.File
- func ID(id int) predicate.File
- func IDEQ(id int) predicate.File
- func IDGT(id int) predicate.File
- func IDGTE(id int) predicate.File
- func IDIn(ids ...int) predicate.File
- func IDLT(id int) predicate.File
- func IDLTE(id int) predicate.File
- func IDNEQ(id int) predicate.File
- func IDNotIn(ids ...int) predicate.File
- func Name(v string) predicate.File
- func NameContains(v string) predicate.File
- func NameContainsFold(v string) predicate.File
- func NameEQ(v string) predicate.File
- func NameEqualFold(v string) predicate.File
- func NameGT(v string) predicate.File
- func NameGTE(v string) predicate.File
- func NameHasPrefix(v string) predicate.File
- func NameHasSuffix(v string) predicate.File
- func NameIn(vs ...string) predicate.File
- func NameLT(v string) predicate.File
- func NameLTE(v string) predicate.File
- func NameNEQ(v string) predicate.File
- func NameNotIn(vs ...string) predicate.File
- func Not(p predicate.File) predicate.File
- func Or(predicates ...predicate.File) predicate.File
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the file type in the database. Label = "file" // 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" // EdgeProcesses holds the string denoting the processes edge name in mutations. EdgeProcesses = "processes" // Table holds the table name of the file in the database. Table = "files" // ProcessesTable is the table that holds the processes relation/edge. The primary key declared below. ProcessesTable = "attached_files" // ProcessesInverseTable is the table name for the Process entity. // It exists in this package in order to avoid circular dependency with the "process" package. ProcessesInverseTable = "processes" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for file fields.
View Source
var ( // ProcessesPrimaryKey and ProcessesColumn2 are the table columns denoting the // primary key for the processes relation (M2M). ProcessesPrimaryKey = []string{"proc_id", "f_id"} )
Functions ¶
func HasProcesses ¶
HasProcesses applies the HasEdge predicate on the "processes" edge.
func HasProcessesWith ¶
HasProcessesWith applies the HasEdge predicate on the "processes" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.