file

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 4 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCreationTime holds the string denoting the creationtime field in the database.
	FieldCreationTime = "creation_time"
	// FieldLastModifiedTime holds the string denoting the lastmodifiedtime field in the database.
	FieldLastModifiedTime = "last_modified_time"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldContentType holds the string denoting the contenttype field in the database.
	FieldContentType = "content_type"
	// EdgeLinks holds the string denoting the links edge name in mutations.
	EdgeLinks = "links"
	// Table holds the table name of the file in the database.
	Table = "files"
	// LinksTable is the table that holds the links relation/edge.
	LinksTable = "links"
	// LinksInverseTable is the table name for the Link entity.
	// It exists in this package in order to avoid circular dependency with the "link" package.
	LinksInverseTable = "links"
	// LinksColumn is the table column denoting the links relation/edge.
	LinksColumn = "file_links"
)

Variables

View Source
var (
	// NameValidator is a validator for the "Name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultCreationTime holds the default value on creation for the "CreationTime" field.
	DefaultCreationTime func() time.Time
	// DefaultSize holds the default value on creation for the "Size" field.
	DefaultSize int
	// SizeValidator is a validator for the "Size" field. It is called by the builders before save.
	SizeValidator func(int) error
	// HashValidator is a validator for the "Hash" field. It is called by the builders before save.
	HashValidator func(string) error
)

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 Content

func Content(v []byte) predicate.File

Content applies equality check predicate on the "Content" field. It's identical to ContentEQ.

func ContentEQ

func ContentEQ(v []byte) predicate.File

ContentEQ applies the EQ predicate on the "Content" field.

func ContentGT

func ContentGT(v []byte) predicate.File

ContentGT applies the GT predicate on the "Content" field.

func ContentGTE

func ContentGTE(v []byte) predicate.File

ContentGTE applies the GTE predicate on the "Content" field.

func ContentIn

func ContentIn(vs ...[]byte) predicate.File

ContentIn applies the In predicate on the "Content" field.

func ContentLT

func ContentLT(v []byte) predicate.File

ContentLT applies the LT predicate on the "Content" field.

func ContentLTE

func ContentLTE(v []byte) predicate.File

ContentLTE applies the LTE predicate on the "Content" field.

func ContentNEQ

func ContentNEQ(v []byte) predicate.File

ContentNEQ applies the NEQ predicate on the "Content" field.

func ContentNotIn

func ContentNotIn(vs ...[]byte) predicate.File

ContentNotIn applies the NotIn predicate on the "Content" field.

func ContentType

func ContentType(v string) predicate.File

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

func ContentTypeContains

func ContentTypeContains(v string) predicate.File

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

func ContentTypeContainsFold

func ContentTypeContainsFold(v string) predicate.File

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

func ContentTypeEQ

func ContentTypeEQ(v string) predicate.File

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

func ContentTypeEqualFold

func ContentTypeEqualFold(v string) predicate.File

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

func ContentTypeGT

func ContentTypeGT(v string) predicate.File

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

func ContentTypeGTE

func ContentTypeGTE(v string) predicate.File

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

func ContentTypeHasPrefix

func ContentTypeHasPrefix(v string) predicate.File

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

func ContentTypeHasSuffix

func ContentTypeHasSuffix(v string) predicate.File

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

func ContentTypeIn

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

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

func ContentTypeLT

func ContentTypeLT(v string) predicate.File

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

func ContentTypeLTE

func ContentTypeLTE(v string) predicate.File

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

func ContentTypeNEQ

func ContentTypeNEQ(v string) predicate.File

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

func ContentTypeNotIn

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

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

func CreationTime

func CreationTime(v time.Time) predicate.File

CreationTime applies equality check predicate on the "CreationTime" field. It's identical to CreationTimeEQ.

func CreationTimeEQ

func CreationTimeEQ(v time.Time) predicate.File

CreationTimeEQ applies the EQ predicate on the "CreationTime" field.

func CreationTimeGT

func CreationTimeGT(v time.Time) predicate.File

CreationTimeGT applies the GT predicate on the "CreationTime" field.

func CreationTimeGTE

func CreationTimeGTE(v time.Time) predicate.File

CreationTimeGTE applies the GTE predicate on the "CreationTime" field.

func CreationTimeIn

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

CreationTimeIn applies the In predicate on the "CreationTime" field.

func CreationTimeLT

func CreationTimeLT(v time.Time) predicate.File

CreationTimeLT applies the LT predicate on the "CreationTime" field.

func CreationTimeLTE

func CreationTimeLTE(v time.Time) predicate.File

CreationTimeLTE applies the LTE predicate on the "CreationTime" field.

func CreationTimeNEQ

func CreationTimeNEQ(v time.Time) predicate.File

CreationTimeNEQ applies the NEQ predicate on the "CreationTime" field.

func CreationTimeNotIn

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

CreationTimeNotIn applies the NotIn predicate on the "CreationTime" field.

func HasLinks() predicate.File

HasLinks applies the HasEdge predicate on the "links" edge.

func HasLinksWith

func HasLinksWith(preds ...predicate.Link) predicate.File

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

func Hash

func Hash(v string) predicate.File

Hash applies equality check predicate on the "Hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.File

HashContains applies the Contains predicate on the "Hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.File

HashContainsFold applies the ContainsFold predicate on the "Hash" field.

func HashEQ

func HashEQ(v string) predicate.File

HashEQ applies the EQ predicate on the "Hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.File

HashEqualFold applies the EqualFold predicate on the "Hash" field.

func HashGT

func HashGT(v string) predicate.File

HashGT applies the GT predicate on the "Hash" field.

func HashGTE

func HashGTE(v string) predicate.File

HashGTE applies the GTE predicate on the "Hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.File

HashHasPrefix applies the HasPrefix predicate on the "Hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.File

HashHasSuffix applies the HasSuffix predicate on the "Hash" field.

func HashIn

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

HashIn applies the In predicate on the "Hash" field.

func HashLT

func HashLT(v string) predicate.File

HashLT applies the LT predicate on the "Hash" field.

func HashLTE

func HashLTE(v string) predicate.File

HashLTE applies the LTE predicate on the "Hash" field.

func HashNEQ

func HashNEQ(v string) predicate.File

HashNEQ applies the NEQ predicate on the "Hash" field.

func HashNotIn

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

HashNotIn applies the NotIn predicate on the "Hash" field.

func ID

func ID(id int) predicate.File

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.File

IDNotIn applies the NotIn predicate on the ID field.

func LastModifiedTime

func LastModifiedTime(v time.Time) predicate.File

LastModifiedTime applies equality check predicate on the "LastModifiedTime" field. It's identical to LastModifiedTimeEQ.

func LastModifiedTimeEQ

func LastModifiedTimeEQ(v time.Time) predicate.File

LastModifiedTimeEQ applies the EQ predicate on the "LastModifiedTime" field.

func LastModifiedTimeGT

func LastModifiedTimeGT(v time.Time) predicate.File

LastModifiedTimeGT applies the GT predicate on the "LastModifiedTime" field.

func LastModifiedTimeGTE

func LastModifiedTimeGTE(v time.Time) predicate.File

LastModifiedTimeGTE applies the GTE predicate on the "LastModifiedTime" field.

func LastModifiedTimeIn

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

LastModifiedTimeIn applies the In predicate on the "LastModifiedTime" field.

func LastModifiedTimeLT

func LastModifiedTimeLT(v time.Time) predicate.File

LastModifiedTimeLT applies the LT predicate on the "LastModifiedTime" field.

func LastModifiedTimeLTE

func LastModifiedTimeLTE(v time.Time) predicate.File

LastModifiedTimeLTE applies the LTE predicate on the "LastModifiedTime" field.

func LastModifiedTimeNEQ

func LastModifiedTimeNEQ(v time.Time) predicate.File

LastModifiedTimeNEQ applies the NEQ predicate on the "LastModifiedTime" field.

func LastModifiedTimeNotIn

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

LastModifiedTimeNotIn applies the NotIn predicate on the "LastModifiedTime" 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 Size

func Size(v int) predicate.File

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

func SizeEQ

func SizeEQ(v int) predicate.File

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

func SizeGT

func SizeGT(v int) predicate.File

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

func SizeGTE

func SizeGTE(v int) predicate.File

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

func SizeIn

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

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

func SizeLT

func SizeLT(v int) predicate.File

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

func SizeLTE

func SizeLTE(v int) predicate.File

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

func SizeNEQ

func SizeNEQ(v int) predicate.File

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

func SizeNotIn

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

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

func ValidColumn added in v0.4.3

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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