Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func CreateTime(v time.Time) predicate.File
- func CreateTimeEQ(v time.Time) predicate.File
- func CreateTimeGT(v time.Time) predicate.File
- func CreateTimeGTE(v time.Time) predicate.File
- func CreateTimeIn(vs ...time.Time) predicate.File
- func CreateTimeIsNil() predicate.File
- func CreateTimeLT(v time.Time) predicate.File
- func CreateTimeLTE(v time.Time) predicate.File
- func CreateTimeNEQ(v time.Time) predicate.File
- func CreateTimeNotIn(vs ...time.Time) predicate.File
- func CreateTimeNotNil() predicate.File
- func FieldIDEQ(v int) predicate.File
- func FieldIDGT(v int) predicate.File
- func FieldIDGTE(v int) predicate.File
- func FieldIDIn(vs ...int) predicate.File
- func FieldIDIsNil() predicate.File
- func FieldIDLT(v int) predicate.File
- func FieldIDLTE(v int) predicate.File
- func FieldIDNEQ(v int) predicate.File
- func FieldIDNotIn(vs ...int) predicate.File
- func FieldIDNotNil() 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 Op(v bool) predicate.File
- func OpEQ(v bool) predicate.File
- func OpIsNil() predicate.File
- func OpNEQ(v bool) predicate.File
- func OpNotNil() predicate.File
- func Or(predicates ...predicate.File) predicate.File
- func SetID(v int) predicate.File
- func SetIDEQ(v int) predicate.File
- func SetIDGT(v int) predicate.File
- func SetIDGTE(v int) predicate.File
- func SetIDIn(vs ...int) predicate.File
- func SetIDIsNil() predicate.File
- func SetIDLT(v int) predicate.File
- func SetIDLTE(v int) predicate.File
- func SetIDNEQ(v int) predicate.File
- func SetIDNotIn(vs ...int) predicate.File
- func SetIDNotNil() 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
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByField(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFieldCount(opts ...sql.OrderTermOption) OrderOption
- func ByFieldID(opts ...sql.OrderTermOption) OrderOption
- func ByGroup(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOp(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySetID(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByTypeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUser(opts ...sql.OrderTermOption) OrderOption
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" // FieldSetID holds the string denoting the set_id field in the database. FieldSetID = "set_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" // FieldOp holds the string denoting the op field in the database. FieldOp = "op" // FieldFieldID holds the string denoting the field_id field in the database. FieldFieldID = "field_id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // 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 that 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 that 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 "file_type" package. TypeInverseTable = "file_types" // TypeColumn is the table column denoting the type relation/edge. TypeColumn = "file_type_files" // FieldTable is the table that 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 "field_type" package. FieldInverseTable = "field_types" // FieldColumn is the table column denoting the field relation/edge. FieldColumn = "file_field" )
Variables ¶
var ( // SetIDValidator is a validator for the "set_id" field. It is called by the builders before save. SetIDValidator func(int) error // 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, FieldSetID, FieldSize, FieldName, FieldUser, FieldGroup, FieldOp, FieldFieldID, FieldCreateTime, }
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 "files" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeIsNil ¶
CreateTimeIsNil applies the IsNil predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func CreateTimeNotNil ¶
CreateTimeNotNil applies the NotNil predicate on the "create_time" field.
func FieldIDGTE ¶
FieldIDGTE applies the GTE predicate on the "field_id" field.
func FieldIDIsNil ¶
FieldIDIsNil applies the IsNil predicate on the "field_id" field.
func FieldIDLTE ¶
FieldIDLTE applies the LTE predicate on the "field_id" field.
func FieldIDNEQ ¶
FieldIDNEQ applies the NEQ predicate on the "field_id" field.
func FieldIDNotIn ¶
FieldIDNotIn applies the NotIn predicate on the "field_id" field.
func FieldIDNotNil ¶
FieldIDNotNil applies the NotNil predicate on the "field_id" field.
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 SetID ¶
SetID applies equality check predicate on the "set_id" field. It's identical to SetIDEQ.
func SetIDIsNil ¶
SetIDIsNil applies the IsNil predicate on the "set_id" field.
func SetIDNotIn ¶
SetIDNotIn applies the NotIn predicate on the "set_id" field.
func SetIDNotNil ¶
SetIDNotNil applies the NotNil predicate on the "set_id" 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.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the File queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByField ¶
func ByField(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByField orders the results by field terms.
func ByFieldCount ¶
func ByFieldCount(opts ...sql.OrderTermOption) OrderOption
ByFieldCount orders the results by field count.
func ByFieldID ¶
func ByFieldID(opts ...sql.OrderTermOption) OrderOption
ByFieldID orders the results by the field_id field.
func ByGroup ¶
func ByGroup(opts ...sql.OrderTermOption) OrderOption
ByGroup orders the results by the group field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOp ¶
func ByOp(opts ...sql.OrderTermOption) OrderOption
ByOp orders the results by the op field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func BySetID ¶
func BySetID(opts ...sql.OrderTermOption) OrderOption
BySetID orders the results by the set_id field.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByTypeField ¶
func ByTypeField(field string, opts ...sql.OrderTermOption) OrderOption
ByTypeField orders the results by type field.
func ByUser ¶
func ByUser(opts ...sql.OrderTermOption) OrderOption
ByUser orders the results by the user field.