files

package
v0.0.0-...-aa40251 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the files type in the database.
	Label = "files"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// EdgeSaves holds the string denoting the saves edge name in mutations.
	EdgeSaves = "saves"
	// Table holds the table name of the files in the database.
	Table = "files"
	// SavesTable is the table that holds the saves relation/edge.
	SavesTable = "saves"
	// SavesInverseTable is the table name for the Saves entity.
	// It exists in this package in order to avoid circular dependency with the "saves" package.
	SavesInverseTable = "saves"
	// SavesColumn is the table column denoting the saves relation/edge.
	SavesColumn = "files_saves"
)

Variables

Columns holds all SQL columns for files fields.

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Files) predicate.Files

And groups predicates with the AND operator between them.

func HasSaves

func HasSaves() predicate.Files

HasSaves applies the HasEdge predicate on the "saves" edge.

func HasSavesWith

func HasSavesWith(preds ...predicate.Saves) predicate.Files

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

func Hash

func Hash(v string) predicate.Files

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

func HashContains

func HashContains(v string) predicate.Files

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

func HashContainsFold

func HashContainsFold(v string) predicate.Files

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

func HashEQ

func HashEQ(v string) predicate.Files

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

func HashEqualFold

func HashEqualFold(v string) predicate.Files

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

func HashGT

func HashGT(v string) predicate.Files

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

func HashGTE

func HashGTE(v string) predicate.Files

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

func HashHasPrefix

func HashHasPrefix(v string) predicate.Files

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

func HashHasSuffix

func HashHasSuffix(v string) predicate.Files

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

func HashIn

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

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

func HashLT

func HashLT(v string) predicate.Files

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

func HashLTE

func HashLTE(v string) predicate.Files

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

func HashNEQ

func HashNEQ(v string) predicate.Files

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

func HashNotIn

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

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

func ID

func ID(id uint64) predicate.Files

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Files

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Files

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Files

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Files

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Files

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Files

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Files

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Files

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

func NameContains

func NameContains(v string) predicate.Files

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

func NameContainsFold

func NameContainsFold(v string) predicate.Files

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

func NameEQ

func NameEQ(v string) predicate.Files

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

func NameEqualFold

func NameEqualFold(v string) predicate.Files

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

func NameGT

func NameGT(v string) predicate.Files

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

func NameGTE

func NameGTE(v string) predicate.Files

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Files

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Files

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Files

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

func NameLTE

func NameLTE(v string) predicate.Files

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

func NameNEQ

func NameNEQ(v string) predicate.Files

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

func NameNotIn

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

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.Files) predicate.Files

Or groups predicates with the OR operator between them.

func Size

func Size(v uint64) predicate.Files

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

func SizeEQ

func SizeEQ(v uint64) predicate.Files

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

func SizeGT

func SizeGT(v uint64) predicate.Files

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

func SizeGTE

func SizeGTE(v uint64) predicate.Files

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

func SizeIn

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

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

func SizeLT

func SizeLT(v uint64) predicate.Files

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

func SizeLTE

func SizeLTE(v uint64) predicate.Files

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

func SizeNEQ

func SizeNEQ(v uint64) predicate.Files

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

func SizeNotIn

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

SizeNotIn applies the NotIn predicate on the "size" 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 Files queries.

func ByHash

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

ByHash orders the results by the hash field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func BySaves

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

BySaves orders the results by saves terms.

func BySavesCount

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

BySavesCount orders the results by saves count.

func BySize

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

BySize orders the results by the size field.

Jump to

Keyboard shortcuts

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