Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func Group(v string) predicate.File
- func GroupContains(v string) predicate.File
- func GroupContainsFold(v string) predicate.File
- func GroupEQ(v string) predicate.File
- func GroupEqualFold(v string) predicate.File
- func GroupGT(v string) predicate.File
- func GroupGTE(v string) predicate.File
- func GroupHasPrefix(v string) predicate.File
- func GroupHasSuffix(v string) predicate.File
- func GroupIn(vs ...string) predicate.File
- func GroupIsNil() predicate.File
- func GroupLT(v string) predicate.File
- func GroupLTE(v string) predicate.File
- func GroupNEQ(v string) predicate.File
- func GroupNotIn(vs ...string) predicate.File
- func GroupNotNil() predicate.File
- func HasField() predicate.File
- func HasFieldWith(preds ...predicate.FieldType) predicate.File
- func HasOwner() predicate.File
- func HasOwnerWith(preds ...predicate.User) predicate.File
- func HasType() predicate.File
- func HasTypeWith(preds ...predicate.FileType) 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 Size(v int) predicate.File
- func SizeEQ(v int) predicate.File
- func SizeGT(v int) predicate.File
- func SizeGTE(v int) predicate.File
- func SizeIn(vs ...int) predicate.File
- func SizeLT(v int) predicate.File
- func SizeLTE(v int) predicate.File
- func SizeNEQ(v int) predicate.File
- func SizeNotIn(vs ...int) predicate.File
- func User(v string) predicate.File
- func UserContains(v string) predicate.File
- func UserContainsFold(v string) predicate.File
- func UserEQ(v string) predicate.File
- func UserEqualFold(v string) predicate.File
- func UserGT(v string) predicate.File
- func UserGTE(v string) predicate.File
- func UserHasPrefix(v string) predicate.File
- func UserHasSuffix(v string) predicate.File
- func UserIn(vs ...string) predicate.File
- func UserIsNil() predicate.File
- func UserLT(v string) predicate.File
- func UserLTE(v string) predicate.File
- func UserNEQ(v string) predicate.File
- func UserNotIn(vs ...string) predicate.File
- func UserNotNil() predicate.File
Constants ¶
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" // FieldSize holds the string denoting the size field in the database. FieldSize = "fsize" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldUser holds the string denoting the user field in the database. FieldUser = "user" // FieldGroup holds the string denoting the group field in the database. FieldGroup = "group" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeType holds the string denoting the type edge name in mutations. EdgeType = "type" // EdgeField holds the string denoting the field edge name in mutations. EdgeField = "field" // Table holds the table name of the file in the database. Table = "files" // OwnerTable is the table the holds the owner relation/edge. OwnerTable = "files" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_files" // TypeTable is the table the holds the type relation/edge. TypeTable = "files" // TypeInverseTable is the table name for the FileType entity. // It exists in this package in order to avoid circular dependency with the "filetype" package. TypeInverseTable = "file_types" // TypeColumn is the table column denoting the type relation/edge. TypeColumn = "file_type_files" // FieldTable is the table the holds the field relation/edge. FieldTable = "field_types" // FieldInverseTable is the table name for the FieldType entity. // It exists in this package in order to avoid circular dependency with the "fieldtype" package. FieldInverseTable = "field_types" // FieldColumn is the table column denoting the field relation/edge. FieldColumn = "file_field" )
Variables ¶
var ( // DefaultSize holds the default value on creation for the size field. DefaultSize int // SizeValidator is a validator for the "size" field. It is called by the builders before save. SizeValidator func(int) error )
var Columns = []string{ FieldID, FieldSize, FieldName, FieldUser, FieldGroup, }
Columns holds all SQL columns for file fields.
var ForeignKeys = []string{
"file_type_files",
"group_files",
"user_files",
}
ForeignKeys holds the SQL foreign-keys that are owned by the File type.
Functions ¶
func Group ¶
Group applies equality check predicate on the "group" field. It's identical to GroupEQ.
func GroupContains ¶
GroupContains applies the Contains predicate on the "group" field.
func GroupContainsFold ¶
GroupContainsFold applies the ContainsFold predicate on the "group" field.
func GroupEqualFold ¶
GroupEqualFold applies the EqualFold predicate on the "group" field.
func GroupHasPrefix ¶
GroupHasPrefix applies the HasPrefix predicate on the "group" field.
func GroupHasSuffix ¶
GroupHasSuffix applies the HasSuffix predicate on the "group" field.
func GroupIsNil ¶
GroupIsNil applies the IsNil predicate on the "group" field.
func GroupNotIn ¶
GroupNotIn applies the NotIn predicate on the "group" field.
func GroupNotNil ¶
GroupNotNil applies the NotNil predicate on the "group" field.
func HasFieldWith ¶
HasFieldWith applies the HasEdge predicate on the "field" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasTypeWith ¶
HasTypeWith applies the HasEdge predicate on the "type" 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 UserContains ¶
UserContains applies the Contains predicate on the "user" field.
func UserContainsFold ¶
UserContainsFold applies the ContainsFold predicate on the "user" field.
func UserEqualFold ¶
UserEqualFold applies the EqualFold predicate on the "user" field.
func UserHasPrefix ¶
UserHasPrefix applies the HasPrefix predicate on the "user" field.
func UserHasSuffix ¶
UserHasSuffix applies the HasSuffix predicate on the "user" field.
func UserNotNil ¶
UserNotNil applies the NotNil predicate on the "user" field.
Types ¶
This section is empty.