Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func ContentType(v string) predicate.File
- func ContentTypeContains(v string) predicate.File
- func ContentTypeContainsFold(v string) predicate.File
- func ContentTypeEQ(v string) predicate.File
- func ContentTypeEqualFold(v string) predicate.File
- func ContentTypeGT(v string) predicate.File
- func ContentTypeGTE(v string) predicate.File
- func ContentTypeHasPrefix(v string) predicate.File
- func ContentTypeHasSuffix(v string) predicate.File
- func ContentTypeIn(vs ...string) predicate.File
- func ContentTypeLT(v string) predicate.File
- func ContentTypeLTE(v string) predicate.File
- func ContentTypeNEQ(v string) predicate.File
- func ContentTypeNotIn(vs ...string) predicate.File
- func CreatedAt(v time.Time) predicate.File
- func CreatedAtEQ(v time.Time) predicate.File
- func CreatedAtGT(v time.Time) predicate.File
- func CreatedAtGTE(v time.Time) predicate.File
- func CreatedAtIn(vs ...time.Time) predicate.File
- func CreatedAtLT(v time.Time) predicate.File
- func CreatedAtLTE(v time.Time) predicate.File
- func CreatedAtNEQ(v time.Time) predicate.File
- func CreatedAtNotIn(vs ...time.Time) predicate.File
- func Downloads(v int64) predicate.File
- func DownloadsEQ(v int64) predicate.File
- func DownloadsGT(v int64) predicate.File
- func DownloadsGTE(v int64) predicate.File
- func DownloadsIn(vs ...int64) predicate.File
- func DownloadsLT(v int64) predicate.File
- func DownloadsLTE(v int64) predicate.File
- func DownloadsNEQ(v int64) predicate.File
- func DownloadsNotIn(vs ...int64) predicate.File
- func FolderID(v string) predicate.File
- func FolderIDContains(v string) predicate.File
- func FolderIDContainsFold(v string) predicate.File
- func FolderIDEQ(v string) predicate.File
- func FolderIDEqualFold(v string) predicate.File
- func FolderIDGT(v string) predicate.File
- func FolderIDGTE(v string) predicate.File
- func FolderIDHasPrefix(v string) predicate.File
- func FolderIDHasSuffix(v string) predicate.File
- func FolderIDIn(vs ...string) predicate.File
- func FolderIDLT(v string) predicate.File
- func FolderIDLTE(v string) predicate.File
- func FolderIDNEQ(v string) predicate.File
- func FolderIDNotIn(vs ...string) predicate.File
- func HasFolder() predicate.File
- func HasFolderWith(preds ...predicate.Folder) predicate.File
- func ID(id string) predicate.File
- func IDContainsFold(id string) predicate.File
- func IDEQ(id string) predicate.File
- func IDEqualFold(id string) predicate.File
- func IDGT(id string) predicate.File
- func IDGTE(id string) predicate.File
- func IDIn(ids ...string) predicate.File
- func IDLT(id string) predicate.File
- func IDLTE(id string) predicate.File
- func IDNEQ(id string) predicate.File
- func IDNotIn(ids ...string) predicate.File
- func Md5(v string) predicate.File
- func Md5Contains(v string) predicate.File
- func Md5ContainsFold(v string) predicate.File
- func Md5EQ(v string) predicate.File
- func Md5EqualFold(v string) predicate.File
- func Md5GT(v string) predicate.File
- func Md5GTE(v string) predicate.File
- func Md5HasPrefix(v string) predicate.File
- func Md5HasSuffix(v string) predicate.File
- func Md5In(vs ...string) predicate.File
- func Md5LT(v string) predicate.File
- func Md5LTE(v string) predicate.File
- func Md5NEQ(v string) predicate.File
- func Md5NotIn(vs ...string) 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 int64) predicate.File
- func SizeEQ(v int64) predicate.File
- func SizeGT(v int64) predicate.File
- func SizeGTE(v int64) predicate.File
- func SizeIn(vs ...int64) predicate.File
- func SizeLT(v int64) predicate.File
- func SizeLTE(v int64) predicate.File
- func SizeNEQ(v int64) predicate.File
- func SizeNotIn(vs ...int64) predicate.File
- func UpdatedAt(v time.Time) predicate.File
- func UpdatedAtEQ(v time.Time) predicate.File
- func UpdatedAtGT(v time.Time) predicate.File
- func UpdatedAtGTE(v time.Time) predicate.File
- func UpdatedAtIn(vs ...time.Time) predicate.File
- func UpdatedAtLT(v time.Time) predicate.File
- func UpdatedAtLTE(v time.Time) predicate.File
- func UpdatedAtNEQ(v time.Time) predicate.File
- func UpdatedAtNotIn(vs ...time.Time) predicate.File
- func ValidColumn(column string) bool
- type OrderOption
- func ByContentType(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDownloads(opts ...sql.OrderTermOption) OrderOption
- func ByFolderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByFolderID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMd5(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldFolderID holds the string denoting the folder_id field in the database. FieldFolderID = "folder_id" // FieldMd5 holds the string denoting the md5 field in the database. FieldMd5 = "md5" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldContentType holds the string denoting the content_type field in the database. FieldContentType = "content_type" // FieldDownloads holds the string denoting the downloads field in the database. FieldDownloads = "downloads" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeFolder holds the string denoting the folder edge name in mutations. EdgeFolder = "folder" // Table holds the table name of the file in the database. Table = "files" // FolderTable is the table that holds the folder relation/edge. FolderTable = "files" // FolderInverseTable is the table name for the Folder entity. // It exists in this package in order to avoid circular dependency with the "folder" package. FolderInverseTable = "folders" // FolderColumn is the table column denoting the folder relation/edge. FolderColumn = "folder_id" )
Variables ¶
var ( // DefaultDownloads holds the default value on creation for the "downloads" field. DefaultDownloads int64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldFolderID, FieldMd5, FieldName, FieldSize, FieldContentType, FieldDownloads, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for file fields.
Functions ¶
func ContentType ¶
ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ.
func ContentTypeContains ¶
ContentTypeContains applies the Contains predicate on the "content_type" field.
func ContentTypeContainsFold ¶
ContentTypeContainsFold applies the ContainsFold predicate on the "content_type" field.
func ContentTypeEQ ¶
ContentTypeEQ applies the EQ predicate on the "content_type" field.
func ContentTypeEqualFold ¶
ContentTypeEqualFold applies the EqualFold predicate on the "content_type" field.
func ContentTypeGT ¶
ContentTypeGT applies the GT predicate on the "content_type" field.
func ContentTypeGTE ¶
ContentTypeGTE applies the GTE predicate on the "content_type" field.
func ContentTypeHasPrefix ¶
ContentTypeHasPrefix applies the HasPrefix predicate on the "content_type" field.
func ContentTypeHasSuffix ¶
ContentTypeHasSuffix applies the HasSuffix predicate on the "content_type" field.
func ContentTypeIn ¶
ContentTypeIn applies the In predicate on the "content_type" field.
func ContentTypeLT ¶
ContentTypeLT applies the LT predicate on the "content_type" field.
func ContentTypeLTE ¶
ContentTypeLTE applies the LTE predicate on the "content_type" field.
func ContentTypeNEQ ¶
ContentTypeNEQ applies the NEQ predicate on the "content_type" field.
func ContentTypeNotIn ¶
ContentTypeNotIn applies the NotIn predicate on the "content_type" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Downloads ¶
Downloads applies equality check predicate on the "downloads" field. It's identical to DownloadsEQ.
func DownloadsEQ ¶
DownloadsEQ applies the EQ predicate on the "downloads" field.
func DownloadsGT ¶
DownloadsGT applies the GT predicate on the "downloads" field.
func DownloadsGTE ¶
DownloadsGTE applies the GTE predicate on the "downloads" field.
func DownloadsIn ¶
DownloadsIn applies the In predicate on the "downloads" field.
func DownloadsLT ¶
DownloadsLT applies the LT predicate on the "downloads" field.
func DownloadsLTE ¶
DownloadsLTE applies the LTE predicate on the "downloads" field.
func DownloadsNEQ ¶
DownloadsNEQ applies the NEQ predicate on the "downloads" field.
func DownloadsNotIn ¶
DownloadsNotIn applies the NotIn predicate on the "downloads" field.
func FolderID ¶
FolderID applies equality check predicate on the "folder_id" field. It's identical to FolderIDEQ.
func FolderIDContains ¶
FolderIDContains applies the Contains predicate on the "folder_id" field.
func FolderIDContainsFold ¶
FolderIDContainsFold applies the ContainsFold predicate on the "folder_id" field.
func FolderIDEQ ¶
FolderIDEQ applies the EQ predicate on the "folder_id" field.
func FolderIDEqualFold ¶
FolderIDEqualFold applies the EqualFold predicate on the "folder_id" field.
func FolderIDGT ¶
FolderIDGT applies the GT predicate on the "folder_id" field.
func FolderIDGTE ¶
FolderIDGTE applies the GTE predicate on the "folder_id" field.
func FolderIDHasPrefix ¶
FolderIDHasPrefix applies the HasPrefix predicate on the "folder_id" field.
func FolderIDHasSuffix ¶
FolderIDHasSuffix applies the HasSuffix predicate on the "folder_id" field.
func FolderIDIn ¶
FolderIDIn applies the In predicate on the "folder_id" field.
func FolderIDLT ¶
FolderIDLT applies the LT predicate on the "folder_id" field.
func FolderIDLTE ¶
FolderIDLTE applies the LTE predicate on the "folder_id" field.
func FolderIDNEQ ¶
FolderIDNEQ applies the NEQ predicate on the "folder_id" field.
func FolderIDNotIn ¶
FolderIDNotIn applies the NotIn predicate on the "folder_id" field.
func HasFolderWith ¶
HasFolderWith applies the HasEdge predicate on the "folder" edge with a given conditions (other predicates).
func IDContainsFold ¶ added in v1.1.1
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶ added in v1.1.1
IDEqualFold applies the EqualFold predicate on the ID field.
func Md5Contains ¶
Md5Contains applies the Contains predicate on the "md5" field.
func Md5ContainsFold ¶
Md5ContainsFold applies the ContainsFold predicate on the "md5" field.
func Md5EqualFold ¶
Md5EqualFold applies the EqualFold predicate on the "md5" field.
func Md5HasPrefix ¶
Md5HasPrefix applies the HasPrefix predicate on the "md5" field.
func Md5HasSuffix ¶
Md5HasSuffix applies the HasSuffix predicate on the "md5" field.
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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v1.1.1
OrderOption defines the ordering options for the File queries.
func ByContentType ¶ added in v1.1.1
func ByContentType(opts ...sql.OrderTermOption) OrderOption
ByContentType orders the results by the content_type field.
func ByCreatedAt ¶ added in v1.1.1
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDownloads ¶ added in v1.1.1
func ByDownloads(opts ...sql.OrderTermOption) OrderOption
ByDownloads orders the results by the downloads field.
func ByFolderField ¶ added in v1.1.1
func ByFolderField(field string, opts ...sql.OrderTermOption) OrderOption
ByFolderField orders the results by folder field.
func ByFolderID ¶ added in v1.1.1
func ByFolderID(opts ...sql.OrderTermOption) OrderOption
ByFolderID orders the results by the folder_id field.
func ByID ¶ added in v1.1.1
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMd5 ¶ added in v1.1.1
func ByMd5(opts ...sql.OrderTermOption) OrderOption
ByMd5 orders the results by the md5 field.
func ByName ¶ added in v1.1.1
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySize ¶ added in v1.1.1
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByUpdatedAt ¶ added in v1.1.1
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.