file

package
v0.0.0-...-f8ce26a Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 3 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"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// 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"
	// FieldUserUUID holds the string denoting the user_uuid field in the database.
	FieldUserUUID = "user_uuid"
	// FieldMd5 holds the string denoting the md5 field in the database.
	FieldMd5 = "md5"
	// Table holds the table name of the file in the database.
	Table = "fms_files"
)

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
)

Columns holds all SQL columns for file fields.

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 ID

func ID(id uint64) predicate.File

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.File

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) 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 UUID

func UUID(v string) predicate.File

UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.

func UUIDContains

func UUIDContains(v string) predicate.File

UUIDContains applies the Contains predicate on the "uuid" field.

func UUIDContainsFold

func UUIDContainsFold(v string) predicate.File

UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.

func UUIDEQ

func UUIDEQ(v string) predicate.File

UUIDEQ applies the EQ predicate on the "uuid" field.

func UUIDEqualFold

func UUIDEqualFold(v string) predicate.File

UUIDEqualFold applies the EqualFold predicate on the "uuid" field.

func UUIDGT

func UUIDGT(v string) predicate.File

UUIDGT applies the GT predicate on the "uuid" field.

func UUIDGTE

func UUIDGTE(v string) predicate.File

UUIDGTE applies the GTE predicate on the "uuid" field.

func UUIDHasPrefix

func UUIDHasPrefix(v string) predicate.File

UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.

func UUIDHasSuffix

func UUIDHasSuffix(v string) predicate.File

UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.

func UUIDIn

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

UUIDIn applies the In predicate on the "uuid" field.

func UUIDLT

func UUIDLT(v string) predicate.File

UUIDLT applies the LT predicate on the "uuid" field.

func UUIDLTE

func UUIDLTE(v string) predicate.File

UUIDLTE applies the LTE predicate on the "uuid" field.

func UUIDNEQ

func UUIDNEQ(v string) predicate.File

UUIDNEQ applies the NEQ predicate on the "uuid" field.

func UUIDNotIn

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

UUIDNotIn applies the NotIn predicate on the "uuid" 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 UserUUID

func UserUUID(v string) predicate.File

UserUUID applies equality check predicate on the "user_uuid" field. It's identical to UserUUIDEQ.

func UserUUIDContains

func UserUUIDContains(v string) predicate.File

UserUUIDContains applies the Contains predicate on the "user_uuid" field.

func UserUUIDContainsFold

func UserUUIDContainsFold(v string) predicate.File

UserUUIDContainsFold applies the ContainsFold predicate on the "user_uuid" field.

func UserUUIDEQ

func UserUUIDEQ(v string) predicate.File

UserUUIDEQ applies the EQ predicate on the "user_uuid" field.

func UserUUIDEqualFold

func UserUUIDEqualFold(v string) predicate.File

UserUUIDEqualFold applies the EqualFold predicate on the "user_uuid" field.

func UserUUIDGT

func UserUUIDGT(v string) predicate.File

UserUUIDGT applies the GT predicate on the "user_uuid" field.

func UserUUIDGTE

func UserUUIDGTE(v string) predicate.File

UserUUIDGTE applies the GTE predicate on the "user_uuid" field.

func UserUUIDHasPrefix

func UserUUIDHasPrefix(v string) predicate.File

UserUUIDHasPrefix applies the HasPrefix predicate on the "user_uuid" field.

func UserUUIDHasSuffix

func UserUUIDHasSuffix(v string) predicate.File

UserUUIDHasSuffix applies the HasSuffix predicate on the "user_uuid" field.

func UserUUIDIn

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

UserUUIDIn applies the In predicate on the "user_uuid" field.

func UserUUIDLT

func UserUUIDLT(v string) predicate.File

UserUUIDLT applies the LT predicate on the "user_uuid" field.

func UserUUIDLTE

func UserUUIDLTE(v string) predicate.File

UserUUIDLTE applies the LTE predicate on the "user_uuid" field.

func UserUUIDNEQ

func UserUUIDNEQ(v string) predicate.File

UserUUIDNEQ applies the NEQ predicate on the "user_uuid" field.

func UserUUIDNotIn

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

UserUUIDNotIn applies the NotIn predicate on the "user_uuid" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Order

type Order func(*sql.Selector)

Order defines the ordering method for the File queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByFileType

func ByFileType(opts ...sql.OrderTermOption) Order

ByFileType orders the results by the file_type field.

func ByID

func ByID(opts ...sql.OrderTermOption) Order

ByID orders the results by the id field.

func ByMd5

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

ByMd5 orders the results by the md5 field.

func ByName

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

ByName orders the results by the name field.

func ByPath

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

ByPath orders the results by the path field.

func BySize

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

BySize orders the results by the size field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByUUID

func ByUUID(opts ...sql.OrderTermOption) Order

ByUUID orders the results by the uuid field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserUUID

func ByUserUUID(opts ...sql.OrderTermOption) Order

ByUserUUID orders the results by the user_uuid field.

Jump to

Keyboard shortcuts

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