file

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldFileType holds the string denoting the file_type field in the database.
	FieldFileType = "file_type"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldMd5 holds the string denoting the md5 field in the database.
	FieldMd5 = "md5"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// Table holds the table name of the file in the database.
	Table = "fms_files"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "file_tag_files"
	// TagsInverseTable is the table name for the FileTag entity.
	// It exists in this package in order to avoid circular dependency with the "filetag" package.
	TagsInverseTable = "fms_file_tags"
)

Variables

View Source
var (
	// 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
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus uint8
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for file fields.

View Source
var (
	// TagsPrimaryKey and TagsColumn2 are the table columns denoting the
	// primary key for the tags relation (M2M).
	TagsPrimaryKey = []string{"file_tag_id", "file_id"}
)

Functions

func And

func And(predicates ...predicate.File) predicate.File

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.File

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.File

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.File

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.File

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.File

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.File

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.File

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.File

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.File

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func FileType

func FileType(v uint8) predicate.File

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

func FileTypeEQ

func FileTypeEQ(v uint8) predicate.File

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

func FileTypeGT

func FileTypeGT(v uint8) predicate.File

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

func FileTypeGTE

func FileTypeGTE(v uint8) predicate.File

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

func FileTypeIn

func FileTypeIn(vs ...uint8) predicate.File

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

func FileTypeLT

func FileTypeLT(v uint8) predicate.File

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

func FileTypeLTE

func FileTypeLTE(v uint8) predicate.File

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

func FileTypeNEQ

func FileTypeNEQ(v uint8) predicate.File

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

func FileTypeNotIn

func FileTypeNotIn(vs ...uint8) predicate.File

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

func HasTags added in v1.0.12

func HasTags() predicate.File

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith added in v1.0.12

func HasTagsWith(preds ...predicate.FileTag) predicate.File

HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.File

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.File

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.File

IDNotIn applies the NotIn predicate on the ID field.

func Md5

func Md5(v string) predicate.File

Md5 applies equality check predicate on the "md5" field. It's identical to Md5EQ.

func Md5Contains

func Md5Contains(v string) predicate.File

Md5Contains applies the Contains predicate on the "md5" field.

func Md5ContainsFold

func Md5ContainsFold(v string) predicate.File

Md5ContainsFold applies the ContainsFold predicate on the "md5" field.

func Md5EQ

func Md5EQ(v string) predicate.File

Md5EQ applies the EQ predicate on the "md5" field.

func Md5EqualFold

func Md5EqualFold(v string) predicate.File

Md5EqualFold applies the EqualFold predicate on the "md5" field.

func Md5GT

func Md5GT(v string) predicate.File

Md5GT applies the GT predicate on the "md5" field.

func Md5GTE

func Md5GTE(v string) predicate.File

Md5GTE applies the GTE predicate on the "md5" field.

func Md5HasPrefix

func Md5HasPrefix(v string) predicate.File

Md5HasPrefix applies the HasPrefix predicate on the "md5" field.

func Md5HasSuffix

func Md5HasSuffix(v string) predicate.File

Md5HasSuffix applies the HasSuffix predicate on the "md5" field.

func Md5In

func Md5In(vs ...string) predicate.File

Md5In applies the In predicate on the "md5" field.

func Md5LT

func Md5LT(v string) predicate.File

Md5LT applies the LT predicate on the "md5" field.

func Md5LTE

func Md5LTE(v string) predicate.File

Md5LTE applies the LTE predicate on the "md5" field.

func Md5NEQ

func Md5NEQ(v string) predicate.File

Md5NEQ applies the NEQ predicate on the "md5" field.

func Md5NotIn

func Md5NotIn(vs ...string) predicate.File

Md5NotIn applies the NotIn predicate on the "md5" field.

func Name

func Name(v string) predicate.File

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.File

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.File

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.File

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.File

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.File

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.File

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.File

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.File

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.File

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.File

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.File

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.File

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.File

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.File) predicate.File

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.File

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.File

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.File

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.File

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.File

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.File

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.File

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.File

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.File

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.File

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.File

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.File

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.File

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.File

PathNotIn applies the NotIn predicate on the "path" field.

func Size

func Size(v uint64) predicate.File

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ

func SizeEQ(v uint64) predicate.File

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT

func SizeGT(v uint64) predicate.File

SizeGT applies the GT predicate on the "size" field.

func SizeGTE

func SizeGTE(v uint64) predicate.File

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn

func SizeIn(vs ...uint64) predicate.File

SizeIn applies the In predicate on the "size" field.

func SizeLT

func SizeLT(v uint64) predicate.File

SizeLT applies the LT predicate on the "size" field.

func SizeLTE

func SizeLTE(v uint64) predicate.File

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ

func SizeNEQ(v uint64) predicate.File

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn

func SizeNotIn(vs ...uint64) predicate.File

SizeNotIn applies the NotIn predicate on the "size" field.

func Status

func Status(v uint8) predicate.File

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v uint8) predicate.File

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v uint8) predicate.File

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v uint8) predicate.File

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...uint8) predicate.File

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.File

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.File

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v uint8) predicate.File

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v uint8) predicate.File

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.File

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.File

StatusNotNil applies the NotNil predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.File

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.File

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.File

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.File

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.File

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.File

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.File

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.File

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.File

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID added in v1.1.3

func UserID(v string) predicate.File

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains added in v1.1.3

func UserIDContains(v string) predicate.File

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold added in v1.1.3

func UserIDContainsFold(v string) predicate.File

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ added in v1.1.3

func UserIDEQ(v string) predicate.File

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold added in v1.1.3

func UserIDEqualFold(v string) predicate.File

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT added in v1.1.3

func UserIDGT(v string) predicate.File

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE added in v1.1.3

func UserIDGTE(v string) predicate.File

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix added in v1.1.3

func UserIDHasPrefix(v string) predicate.File

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix added in v1.1.3

func UserIDHasSuffix(v string) predicate.File

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn added in v1.1.3

func UserIDIn(vs ...string) predicate.File

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT added in v1.1.3

func UserIDLT(v string) predicate.File

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE added in v1.1.3

func UserIDLTE(v string) predicate.File

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ added in v1.1.3

func UserIDNEQ(v string) predicate.File

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn added in v1.1.3

func UserIDNotIn(vs ...string) predicate.File

UserIDNotIn applies the NotIn predicate on the "user_id" 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 File queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at 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 ByMd5

func ByMd5(opts ...sql.OrderTermOption) OrderOption

ByMd5 orders the results by the md5 field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func BySize

func BySize(opts ...sql.OrderTermOption) OrderOption

BySize orders the results by the size field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTags added in v1.0.12

func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTags orders the results by tags terms.

func ByTagsCount added in v1.0.12

func ByTagsCount(opts ...sql.OrderTermOption) OrderOption

ByTagsCount orders the results by tags count.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUserID added in v1.1.3

func ByUserID(opts ...sql.OrderTermOption) OrderOption

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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