fileinfo

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for fileinfo fields.

Functions

func And

func And(predicates ...predicate.FileInfo) predicate.FileInfo

And groups predicates with the AND operator between them.

func ContentType

func ContentType(v string) predicate.FileInfo

ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ.

func ContentTypeContains

func ContentTypeContains(v string) predicate.FileInfo

ContentTypeContains applies the Contains predicate on the "content_type" field.

func ContentTypeContainsFold

func ContentTypeContainsFold(v string) predicate.FileInfo

ContentTypeContainsFold applies the ContainsFold predicate on the "content_type" field.

func ContentTypeEQ

func ContentTypeEQ(v string) predicate.FileInfo

ContentTypeEQ applies the EQ predicate on the "content_type" field.

func ContentTypeEqualFold

func ContentTypeEqualFold(v string) predicate.FileInfo

ContentTypeEqualFold applies the EqualFold predicate on the "content_type" field.

func ContentTypeGT

func ContentTypeGT(v string) predicate.FileInfo

ContentTypeGT applies the GT predicate on the "content_type" field.

func ContentTypeGTE

func ContentTypeGTE(v string) predicate.FileInfo

ContentTypeGTE applies the GTE predicate on the "content_type" field.

func ContentTypeHasPrefix

func ContentTypeHasPrefix(v string) predicate.FileInfo

ContentTypeHasPrefix applies the HasPrefix predicate on the "content_type" field.

func ContentTypeHasSuffix

func ContentTypeHasSuffix(v string) predicate.FileInfo

ContentTypeHasSuffix applies the HasSuffix predicate on the "content_type" field.

func ContentTypeIn

func ContentTypeIn(vs ...string) predicate.FileInfo

ContentTypeIn applies the In predicate on the "content_type" field.

func ContentTypeLT

func ContentTypeLT(v string) predicate.FileInfo

ContentTypeLT applies the LT predicate on the "content_type" field.

func ContentTypeLTE

func ContentTypeLTE(v string) predicate.FileInfo

ContentTypeLTE applies the LTE predicate on the "content_type" field.

func ContentTypeNEQ

func ContentTypeNEQ(v string) predicate.FileInfo

ContentTypeNEQ applies the NEQ predicate on the "content_type" field.

func ContentTypeNotIn

func ContentTypeNotIn(vs ...string) predicate.FileInfo

ContentTypeNotIn applies the NotIn predicate on the "content_type" field.

func Description

func Description(v string) predicate.FileInfo

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.FileInfo

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.FileInfo

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.FileInfo

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.FileInfo

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.FileInfo

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.FileInfo

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.FileInfo

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.FileInfo

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.FileInfo

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.FileInfo

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.FileInfo

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.FileInfo

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.FileInfo

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.FileInfo

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.FileInfo

DescriptionNotNil applies the NotNil predicate on the "description" field.

func FileName

func FileName(v string) predicate.FileInfo

FileName applies equality check predicate on the "file_name" field. It's identical to FileNameEQ.

func FileNameContains

func FileNameContains(v string) predicate.FileInfo

FileNameContains applies the Contains predicate on the "file_name" field.

func FileNameContainsFold

func FileNameContainsFold(v string) predicate.FileInfo

FileNameContainsFold applies the ContainsFold predicate on the "file_name" field.

func FileNameEQ

func FileNameEQ(v string) predicate.FileInfo

FileNameEQ applies the EQ predicate on the "file_name" field.

func FileNameEqualFold

func FileNameEqualFold(v string) predicate.FileInfo

FileNameEqualFold applies the EqualFold predicate on the "file_name" field.

func FileNameGT

func FileNameGT(v string) predicate.FileInfo

FileNameGT applies the GT predicate on the "file_name" field.

func FileNameGTE

func FileNameGTE(v string) predicate.FileInfo

FileNameGTE applies the GTE predicate on the "file_name" field.

func FileNameHasPrefix

func FileNameHasPrefix(v string) predicate.FileInfo

FileNameHasPrefix applies the HasPrefix predicate on the "file_name" field.

func FileNameHasSuffix

func FileNameHasSuffix(v string) predicate.FileInfo

FileNameHasSuffix applies the HasSuffix predicate on the "file_name" field.

func FileNameIn

func FileNameIn(vs ...string) predicate.FileInfo

FileNameIn applies the In predicate on the "file_name" field.

func FileNameLT

func FileNameLT(v string) predicate.FileInfo

FileNameLT applies the LT predicate on the "file_name" field.

func FileNameLTE

func FileNameLTE(v string) predicate.FileInfo

FileNameLTE applies the LTE predicate on the "file_name" field.

func FileNameNEQ

func FileNameNEQ(v string) predicate.FileInfo

FileNameNEQ applies the NEQ predicate on the "file_name" field.

func FileNameNotIn

func FileNameNotIn(vs ...string) predicate.FileInfo

FileNameNotIn applies the NotIn predicate on the "file_name" field.

func FilePath

func FilePath(v string) predicate.FileInfo

FilePath applies equality check predicate on the "file_path" field. It's identical to FilePathEQ.

func FilePathContains

func FilePathContains(v string) predicate.FileInfo

FilePathContains applies the Contains predicate on the "file_path" field.

func FilePathContainsFold

func FilePathContainsFold(v string) predicate.FileInfo

FilePathContainsFold applies the ContainsFold predicate on the "file_path" field.

func FilePathEQ

func FilePathEQ(v string) predicate.FileInfo

FilePathEQ applies the EQ predicate on the "file_path" field.

func FilePathEqualFold

func FilePathEqualFold(v string) predicate.FileInfo

FilePathEqualFold applies the EqualFold predicate on the "file_path" field.

func FilePathGT

func FilePathGT(v string) predicate.FileInfo

FilePathGT applies the GT predicate on the "file_path" field.

func FilePathGTE

func FilePathGTE(v string) predicate.FileInfo

FilePathGTE applies the GTE predicate on the "file_path" field.

func FilePathHasPrefix

func FilePathHasPrefix(v string) predicate.FileInfo

FilePathHasPrefix applies the HasPrefix predicate on the "file_path" field.

func FilePathHasSuffix

func FilePathHasSuffix(v string) predicate.FileInfo

FilePathHasSuffix applies the HasSuffix predicate on the "file_path" field.

func FilePathIn

func FilePathIn(vs ...string) predicate.FileInfo

FilePathIn applies the In predicate on the "file_path" field.

func FilePathLT

func FilePathLT(v string) predicate.FileInfo

FilePathLT applies the LT predicate on the "file_path" field.

func FilePathLTE

func FilePathLTE(v string) predicate.FileInfo

FilePathLTE applies the LTE predicate on the "file_path" field.

func FilePathNEQ

func FilePathNEQ(v string) predicate.FileInfo

FilePathNEQ applies the NEQ predicate on the "file_path" field.

func FilePathNotIn

func FilePathNotIn(vs ...string) predicate.FileInfo

FilePathNotIn applies the NotIn predicate on the "file_path" field.

func FileSize

func FileSize(v int64) predicate.FileInfo

FileSize applies equality check predicate on the "file_size" field. It's identical to FileSizeEQ.

func FileSizeEQ

func FileSizeEQ(v int64) predicate.FileInfo

FileSizeEQ applies the EQ predicate on the "file_size" field.

func FileSizeGT

func FileSizeGT(v int64) predicate.FileInfo

FileSizeGT applies the GT predicate on the "file_size" field.

func FileSizeGTE

func FileSizeGTE(v int64) predicate.FileInfo

FileSizeGTE applies the GTE predicate on the "file_size" field.

func FileSizeIn

func FileSizeIn(vs ...int64) predicate.FileInfo

FileSizeIn applies the In predicate on the "file_size" field.

func FileSizeLT

func FileSizeLT(v int64) predicate.FileInfo

FileSizeLT applies the LT predicate on the "file_size" field.

func FileSizeLTE

func FileSizeLTE(v int64) predicate.FileInfo

FileSizeLTE applies the LTE predicate on the "file_size" field.

func FileSizeNEQ

func FileSizeNEQ(v int64) predicate.FileInfo

FileSizeNEQ applies the NEQ predicate on the "file_size" field.

func FileSizeNotIn

func FileSizeNotIn(vs ...int64) predicate.FileInfo

FileSizeNotIn applies the NotIn predicate on the "file_size" field.

func FileType

func FileType(v string) predicate.FileInfo

FileType applies equality check predicate on the "file_type" field. It's identical to FileTypeEQ.

func FileTypeContains

func FileTypeContains(v string) predicate.FileInfo

FileTypeContains applies the Contains predicate on the "file_type" field.

func FileTypeContainsFold

func FileTypeContainsFold(v string) predicate.FileInfo

FileTypeContainsFold applies the ContainsFold predicate on the "file_type" field.

func FileTypeEQ

func FileTypeEQ(v string) predicate.FileInfo

FileTypeEQ applies the EQ predicate on the "file_type" field.

func FileTypeEqualFold

func FileTypeEqualFold(v string) predicate.FileInfo

FileTypeEqualFold applies the EqualFold predicate on the "file_type" field.

func FileTypeGT

func FileTypeGT(v string) predicate.FileInfo

FileTypeGT applies the GT predicate on the "file_type" field.

func FileTypeGTE

func FileTypeGTE(v string) predicate.FileInfo

FileTypeGTE applies the GTE predicate on the "file_type" field.

func FileTypeHasPrefix

func FileTypeHasPrefix(v string) predicate.FileInfo

FileTypeHasPrefix applies the HasPrefix predicate on the "file_type" field.

func FileTypeHasSuffix

func FileTypeHasSuffix(v string) predicate.FileInfo

FileTypeHasSuffix applies the HasSuffix predicate on the "file_type" field.

func FileTypeIn

func FileTypeIn(vs ...string) predicate.FileInfo

FileTypeIn applies the In predicate on the "file_type" field.

func FileTypeLT

func FileTypeLT(v string) predicate.FileInfo

FileTypeLT applies the LT predicate on the "file_type" field.

func FileTypeLTE

func FileTypeLTE(v string) predicate.FileInfo

FileTypeLTE applies the LTE predicate on the "file_type" field.

func FileTypeNEQ

func FileTypeNEQ(v string) predicate.FileInfo

FileTypeNEQ applies the NEQ predicate on the "file_type" field.

func FileTypeNotIn

func FileTypeNotIn(vs ...string) predicate.FileInfo

FileTypeNotIn applies the NotIn predicate on the "file_type" field.

func ID

func ID(id int64) predicate.FileInfo

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.FileInfo

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.FileInfo

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.FileInfo

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.FileInfo

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.FileInfo

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.FileInfo

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.FileInfo

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.FileInfo

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.FileInfo) predicate.FileInfo

Or groups predicates with the OR operator between them.

func UploadTime

func UploadTime(v time.Time) predicate.FileInfo

UploadTime applies equality check predicate on the "upload_time" field. It's identical to UploadTimeEQ.

func UploadTimeEQ

func UploadTimeEQ(v time.Time) predicate.FileInfo

UploadTimeEQ applies the EQ predicate on the "upload_time" field.

func UploadTimeGT

func UploadTimeGT(v time.Time) predicate.FileInfo

UploadTimeGT applies the GT predicate on the "upload_time" field.

func UploadTimeGTE

func UploadTimeGTE(v time.Time) predicate.FileInfo

UploadTimeGTE applies the GTE predicate on the "upload_time" field.

func UploadTimeIn

func UploadTimeIn(vs ...time.Time) predicate.FileInfo

UploadTimeIn applies the In predicate on the "upload_time" field.

func UploadTimeLT

func UploadTimeLT(v time.Time) predicate.FileInfo

UploadTimeLT applies the LT predicate on the "upload_time" field.

func UploadTimeLTE

func UploadTimeLTE(v time.Time) predicate.FileInfo

UploadTimeLTE applies the LTE predicate on the "upload_time" field.

func UploadTimeNEQ

func UploadTimeNEQ(v time.Time) predicate.FileInfo

UploadTimeNEQ applies the NEQ predicate on the "upload_time" field.

func UploadTimeNotIn

func UploadTimeNotIn(vs ...time.Time) predicate.FileInfo

UploadTimeNotIn applies the NotIn predicate on the "upload_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL