Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FileInfo) predicate.FileInfo
- func ContentType(v string) predicate.FileInfo
- func ContentTypeContains(v string) predicate.FileInfo
- func ContentTypeContainsFold(v string) predicate.FileInfo
- func ContentTypeEQ(v string) predicate.FileInfo
- func ContentTypeEqualFold(v string) predicate.FileInfo
- func ContentTypeGT(v string) predicate.FileInfo
- func ContentTypeGTE(v string) predicate.FileInfo
- func ContentTypeHasPrefix(v string) predicate.FileInfo
- func ContentTypeHasSuffix(v string) predicate.FileInfo
- func ContentTypeIn(vs ...string) predicate.FileInfo
- func ContentTypeLT(v string) predicate.FileInfo
- func ContentTypeLTE(v string) predicate.FileInfo
- func ContentTypeNEQ(v string) predicate.FileInfo
- func ContentTypeNotIn(vs ...string) predicate.FileInfo
- func Description(v string) predicate.FileInfo
- func DescriptionContains(v string) predicate.FileInfo
- func DescriptionContainsFold(v string) predicate.FileInfo
- func DescriptionEQ(v string) predicate.FileInfo
- func DescriptionEqualFold(v string) predicate.FileInfo
- func DescriptionGT(v string) predicate.FileInfo
- func DescriptionGTE(v string) predicate.FileInfo
- func DescriptionHasPrefix(v string) predicate.FileInfo
- func DescriptionHasSuffix(v string) predicate.FileInfo
- func DescriptionIn(vs ...string) predicate.FileInfo
- func DescriptionIsNil() predicate.FileInfo
- func DescriptionLT(v string) predicate.FileInfo
- func DescriptionLTE(v string) predicate.FileInfo
- func DescriptionNEQ(v string) predicate.FileInfo
- func DescriptionNotIn(vs ...string) predicate.FileInfo
- func DescriptionNotNil() predicate.FileInfo
- func FileName(v string) predicate.FileInfo
- func FileNameContains(v string) predicate.FileInfo
- func FileNameContainsFold(v string) predicate.FileInfo
- func FileNameEQ(v string) predicate.FileInfo
- func FileNameEqualFold(v string) predicate.FileInfo
- func FileNameGT(v string) predicate.FileInfo
- func FileNameGTE(v string) predicate.FileInfo
- func FileNameHasPrefix(v string) predicate.FileInfo
- func FileNameHasSuffix(v string) predicate.FileInfo
- func FileNameIn(vs ...string) predicate.FileInfo
- func FileNameLT(v string) predicate.FileInfo
- func FileNameLTE(v string) predicate.FileInfo
- func FileNameNEQ(v string) predicate.FileInfo
- func FileNameNotIn(vs ...string) predicate.FileInfo
- func FilePath(v string) predicate.FileInfo
- func FilePathContains(v string) predicate.FileInfo
- func FilePathContainsFold(v string) predicate.FileInfo
- func FilePathEQ(v string) predicate.FileInfo
- func FilePathEqualFold(v string) predicate.FileInfo
- func FilePathGT(v string) predicate.FileInfo
- func FilePathGTE(v string) predicate.FileInfo
- func FilePathHasPrefix(v string) predicate.FileInfo
- func FilePathHasSuffix(v string) predicate.FileInfo
- func FilePathIn(vs ...string) predicate.FileInfo
- func FilePathLT(v string) predicate.FileInfo
- func FilePathLTE(v string) predicate.FileInfo
- func FilePathNEQ(v string) predicate.FileInfo
- func FilePathNotIn(vs ...string) predicate.FileInfo
- func FileSize(v int64) predicate.FileInfo
- func FileSizeEQ(v int64) predicate.FileInfo
- func FileSizeGT(v int64) predicate.FileInfo
- func FileSizeGTE(v int64) predicate.FileInfo
- func FileSizeIn(vs ...int64) predicate.FileInfo
- func FileSizeLT(v int64) predicate.FileInfo
- func FileSizeLTE(v int64) predicate.FileInfo
- func FileSizeNEQ(v int64) predicate.FileInfo
- func FileSizeNotIn(vs ...int64) predicate.FileInfo
- func FileType(v string) predicate.FileInfo
- func FileTypeContains(v string) predicate.FileInfo
- func FileTypeContainsFold(v string) predicate.FileInfo
- func FileTypeEQ(v string) predicate.FileInfo
- func FileTypeEqualFold(v string) predicate.FileInfo
- func FileTypeGT(v string) predicate.FileInfo
- func FileTypeGTE(v string) predicate.FileInfo
- func FileTypeHasPrefix(v string) predicate.FileInfo
- func FileTypeHasSuffix(v string) predicate.FileInfo
- func FileTypeIn(vs ...string) predicate.FileInfo
- func FileTypeLT(v string) predicate.FileInfo
- func FileTypeLTE(v string) predicate.FileInfo
- func FileTypeNEQ(v string) predicate.FileInfo
- func FileTypeNotIn(vs ...string) predicate.FileInfo
- func ID(id int64) predicate.FileInfo
- func IDEQ(id int64) predicate.FileInfo
- func IDGT(id int64) predicate.FileInfo
- func IDGTE(id int64) predicate.FileInfo
- func IDIn(ids ...int64) predicate.FileInfo
- func IDLT(id int64) predicate.FileInfo
- func IDLTE(id int64) predicate.FileInfo
- func IDNEQ(id int64) predicate.FileInfo
- func IDNotIn(ids ...int64) predicate.FileInfo
- func Not(p predicate.FileInfo) predicate.FileInfo
- func Or(predicates ...predicate.FileInfo) predicate.FileInfo
- func UploadTime(v time.Time) predicate.FileInfo
- func UploadTimeEQ(v time.Time) predicate.FileInfo
- func UploadTimeGT(v time.Time) predicate.FileInfo
- func UploadTimeGTE(v time.Time) predicate.FileInfo
- func UploadTimeIn(vs ...time.Time) predicate.FileInfo
- func UploadTimeLT(v time.Time) predicate.FileInfo
- func UploadTimeLTE(v time.Time) predicate.FileInfo
- func UploadTimeNEQ(v time.Time) predicate.FileInfo
- func UploadTimeNotIn(vs ...time.Time) predicate.FileInfo
- func ValidColumn(column string) bool
- type OrderOption
- func ByContentType(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByFileName(opts ...sql.OrderTermOption) OrderOption
- func ByFilePath(opts ...sql.OrderTermOption) OrderOption
- func ByFileSize(opts ...sql.OrderTermOption) OrderOption
- func ByFileType(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByUploadTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the fileinfo type in the database. Label = "file_info" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFileName holds the string denoting the file_name field in the database. FieldFileName = "file_name" // FieldFilePath holds the string denoting the file_path field in the database. FieldFilePath = "file_path" // FieldFileType holds the string denoting the file_type field in the database. FieldFileType = "file_type" // FieldFileSize holds the string denoting the file_size field in the database. FieldFileSize = "file_size" // FieldContentType holds the string denoting the content_type field in the database. FieldContentType = "content_type" // FieldUploadTime holds the string denoting the upload_time field in the database. FieldUploadTime = "upload_time" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // Table holds the table name of the fileinfo in the database. Table = "file_infos" )
Variables ¶
var ( // FileNameValidator is a validator for the "file_name" field. It is called by the builders before save. FileNameValidator func(string) error // FilePathValidator is a validator for the "file_path" field. It is called by the builders before save. FilePathValidator func(string) error // FileTypeValidator is a validator for the "file_type" field. It is called by the builders before save. FileTypeValidator func(string) error // FileSizeValidator is a validator for the "file_size" field. It is called by the builders before save. FileSizeValidator func(int64) error // ContentTypeValidator is a validator for the "content_type" field. It is called by the builders before save. ContentTypeValidator func(string) error // DefaultUploadTime holds the default value on creation for the "upload_time" field. DefaultUploadTime func() time.Time )
var Columns = []string{ FieldID, FieldFileName, FieldFilePath, FieldFileType, FieldFileSize, FieldContentType, FieldUploadTime, FieldDescription, }
Columns holds all SQL columns for fileinfo 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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func FileName ¶
FileName applies equality check predicate on the "file_name" field. It's identical to FileNameEQ.
func FileNameContains ¶
FileNameContains applies the Contains predicate on the "file_name" field.
func FileNameContainsFold ¶
FileNameContainsFold applies the ContainsFold predicate on the "file_name" field.
func FileNameEQ ¶
FileNameEQ applies the EQ predicate on the "file_name" field.
func FileNameEqualFold ¶
FileNameEqualFold applies the EqualFold predicate on the "file_name" field.
func FileNameGT ¶
FileNameGT applies the GT predicate on the "file_name" field.
func FileNameGTE ¶
FileNameGTE applies the GTE predicate on the "file_name" field.
func FileNameHasPrefix ¶
FileNameHasPrefix applies the HasPrefix predicate on the "file_name" field.
func FileNameHasSuffix ¶
FileNameHasSuffix applies the HasSuffix predicate on the "file_name" field.
func FileNameIn ¶
FileNameIn applies the In predicate on the "file_name" field.
func FileNameLT ¶
FileNameLT applies the LT predicate on the "file_name" field.
func FileNameLTE ¶
FileNameLTE applies the LTE predicate on the "file_name" field.
func FileNameNEQ ¶
FileNameNEQ applies the NEQ predicate on the "file_name" field.
func FileNameNotIn ¶
FileNameNotIn applies the NotIn predicate on the "file_name" field.
func FilePath ¶
FilePath applies equality check predicate on the "file_path" field. It's identical to FilePathEQ.
func FilePathContains ¶
FilePathContains applies the Contains predicate on the "file_path" field.
func FilePathContainsFold ¶
FilePathContainsFold applies the ContainsFold predicate on the "file_path" field.
func FilePathEQ ¶
FilePathEQ applies the EQ predicate on the "file_path" field.
func FilePathEqualFold ¶
FilePathEqualFold applies the EqualFold predicate on the "file_path" field.
func FilePathGT ¶
FilePathGT applies the GT predicate on the "file_path" field.
func FilePathGTE ¶
FilePathGTE applies the GTE predicate on the "file_path" field.
func FilePathHasPrefix ¶
FilePathHasPrefix applies the HasPrefix predicate on the "file_path" field.
func FilePathHasSuffix ¶
FilePathHasSuffix applies the HasSuffix predicate on the "file_path" field.
func FilePathIn ¶
FilePathIn applies the In predicate on the "file_path" field.
func FilePathLT ¶
FilePathLT applies the LT predicate on the "file_path" field.
func FilePathLTE ¶
FilePathLTE applies the LTE predicate on the "file_path" field.
func FilePathNEQ ¶
FilePathNEQ applies the NEQ predicate on the "file_path" field.
func FilePathNotIn ¶
FilePathNotIn applies the NotIn predicate on the "file_path" field.
func FileSize ¶
FileSize applies equality check predicate on the "file_size" field. It's identical to FileSizeEQ.
func FileSizeEQ ¶
FileSizeEQ applies the EQ predicate on the "file_size" field.
func FileSizeGT ¶
FileSizeGT applies the GT predicate on the "file_size" field.
func FileSizeGTE ¶
FileSizeGTE applies the GTE predicate on the "file_size" field.
func FileSizeIn ¶
FileSizeIn applies the In predicate on the "file_size" field.
func FileSizeLT ¶
FileSizeLT applies the LT predicate on the "file_size" field.
func FileSizeLTE ¶
FileSizeLTE applies the LTE predicate on the "file_size" field.
func FileSizeNEQ ¶
FileSizeNEQ applies the NEQ predicate on the "file_size" field.
func FileSizeNotIn ¶
FileSizeNotIn applies the NotIn predicate on the "file_size" field.
func FileType ¶
FileType applies equality check predicate on the "file_type" field. It's identical to FileTypeEQ.
func FileTypeContains ¶
FileTypeContains applies the Contains predicate on the "file_type" field.
func FileTypeContainsFold ¶
FileTypeContainsFold applies the ContainsFold predicate on the "file_type" field.
func FileTypeEQ ¶
FileTypeEQ applies the EQ predicate on the "file_type" field.
func FileTypeEqualFold ¶
FileTypeEqualFold applies the EqualFold predicate on the "file_type" field.
func FileTypeGT ¶
FileTypeGT applies the GT predicate on the "file_type" field.
func FileTypeGTE ¶
FileTypeGTE applies the GTE predicate on the "file_type" field.
func FileTypeHasPrefix ¶
FileTypeHasPrefix applies the HasPrefix predicate on the "file_type" field.
func FileTypeHasSuffix ¶
FileTypeHasSuffix applies the HasSuffix predicate on the "file_type" field.
func FileTypeIn ¶
FileTypeIn applies the In predicate on the "file_type" field.
func FileTypeLT ¶
FileTypeLT applies the LT predicate on the "file_type" field.
func FileTypeLTE ¶
FileTypeLTE applies the LTE predicate on the "file_type" field.
func FileTypeNEQ ¶
FileTypeNEQ applies the NEQ predicate on the "file_type" field.
func FileTypeNotIn ¶
FileTypeNotIn applies the NotIn predicate on the "file_type" field.
func UploadTime ¶
UploadTime applies equality check predicate on the "upload_time" field. It's identical to UploadTimeEQ.
func UploadTimeEQ ¶
UploadTimeEQ applies the EQ predicate on the "upload_time" field.
func UploadTimeGT ¶
UploadTimeGT applies the GT predicate on the "upload_time" field.
func UploadTimeGTE ¶
UploadTimeGTE applies the GTE predicate on the "upload_time" field.
func UploadTimeIn ¶
UploadTimeIn applies the In predicate on the "upload_time" field.
func UploadTimeLT ¶
UploadTimeLT applies the LT predicate on the "upload_time" field.
func UploadTimeLTE ¶
UploadTimeLTE applies the LTE predicate on the "upload_time" field.
func UploadTimeNEQ ¶
UploadTimeNEQ applies the NEQ predicate on the "upload_time" field.
func UploadTimeNotIn ¶
UploadTimeNotIn applies the NotIn predicate on the "upload_time" 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 FileInfo queries.
func ByContentType ¶
func ByContentType(opts ...sql.OrderTermOption) OrderOption
ByContentType orders the results by the content_type field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByFileName ¶
func ByFileName(opts ...sql.OrderTermOption) OrderOption
ByFileName orders the results by the file_name field.
func ByFilePath ¶
func ByFilePath(opts ...sql.OrderTermOption) OrderOption
ByFilePath orders the results by the file_path field.
func ByFileSize ¶
func ByFileSize(opts ...sql.OrderTermOption) OrderOption
ByFileSize orders the results by the file_size field.
func ByFileType ¶
func ByFileType(opts ...sql.OrderTermOption) OrderOption
ByFileType orders the results by the file_type field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUploadTime ¶
func ByUploadTime(opts ...sql.OrderTermOption) OrderOption
ByUploadTime orders the results by the upload_time field.