Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FileType) predicate.FileType
- func HasFiles() predicate.FileType
- func HasFilesWith(preds ...predicate.File) predicate.FileType
- func ID(id int) predicate.FileType
- func IDEQ(id int) predicate.FileType
- func IDGT(id int) predicate.FileType
- func IDGTE(id int) predicate.FileType
- func IDIn(ids ...int) predicate.FileType
- func IDLT(id int) predicate.FileType
- func IDLTE(id int) predicate.FileType
- func IDNEQ(id int) predicate.FileType
- func IDNotIn(ids ...int) predicate.FileType
- func Name(v string) predicate.FileType
- func NameContains(v string) predicate.FileType
- func NameContainsFold(v string) predicate.FileType
- func NameEQ(v string) predicate.FileType
- func NameEqualFold(v string) predicate.FileType
- func NameGT(v string) predicate.FileType
- func NameGTE(v string) predicate.FileType
- func NameHasPrefix(v string) predicate.FileType
- func NameHasSuffix(v string) predicate.FileType
- func NameIn(vs ...string) predicate.FileType
- func NameLT(v string) predicate.FileType
- func NameLTE(v string) predicate.FileType
- func NameNEQ(v string) predicate.FileType
- func NameNotIn(vs ...string) predicate.FileType
- func Not(p predicate.FileType) predicate.FileType
- func Or(predicates ...predicate.FileType) predicate.FileType
- func StateEQ(v State) predicate.FileType
- func StateIn(vs ...State) predicate.FileType
- func StateNEQ(v State) predicate.FileType
- func StateNotIn(vs ...State) predicate.FileType
- func StateValidator(s State) error
- func TypeEQ(v Type) predicate.FileType
- func TypeIn(vs ...Type) predicate.FileType
- func TypeNEQ(v Type) predicate.FileType
- func TypeNotIn(vs ...Type) predicate.FileType
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type State
- type Type
Constants ¶
const ( // Label holds the string label denoting the filetype type in the database. Label = "file_type" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldState holds the string denoting the state field in the database. FieldState = "state" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // Table holds the table name of the filetype in the database. Table = "file_types" // FilesTable is the table that holds the files relation/edge. FilesTable = "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" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "file_type_files" )
const DefaultState = StateOn
StateOn is the default value of the State enum.
const DefaultType = TypePNG
TypePNG is the default value of the Type enum.
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldType, FieldState, }
Columns holds all SQL columns for filetype fields.
Functions ¶
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" 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 StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StateValidator ¶
StateValidator is a validator for the "state" field enum values. It is called by the builders before save.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).