Documentation ¶
Index ¶
- Constants
- func And(predicates ...predicate.FileType) predicate.FileType
- func HasFiles() predicate.FileType
- func HasFilesWith(preds ...predicate.File) predicate.FileType
- func ID(id string) predicate.FileType
- func IDEQ(id string) predicate.FileType
- func IDGT(id string) predicate.FileType
- func IDGTE(id string) predicate.FileType
- func IDIn(ids ...string) predicate.FileType
- func IDLT(id string) predicate.FileType
- func IDLTE(id string) predicate.FileType
- func IDNEQ(id string) predicate.FileType
- func IDNotIn(ids ...string) predicate.FileType
- func Name(v string) predicate.FileType
- func NameContains(v string) predicate.FileType
- func NameEQ(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
- 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" // FilesLabel holds the string label denoting the files edge type in the database. FilesLabel = "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 ¶
This section is empty.
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 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.