file

package
v0.0.0-...-0bafe12 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.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"
	// FieldSetID holds the string denoting the set_id field in the database.
	FieldSetID = "set_id"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "fsize"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldUser holds the string denoting the user field in the database.
	FieldUser = "user"
	// FieldGroup holds the string denoting the group field in the database.
	FieldGroup = "group"
	// FieldOp holds the string denoting the op field in the database.
	FieldOp = "op"
	// FieldFieldID holds the string denoting the field_id field in the database.
	FieldFieldID = "field_id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeType holds the string denoting the type edge name in mutations.
	EdgeType = "type"
	// EdgeField holds the string denoting the field edge name in mutations.
	EdgeField = "field"
	// Table holds the table name of the file in the database.
	Table = "files"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "files"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_files"
	// TypeTable is the table that holds the type relation/edge.
	TypeTable = "files"
	// TypeInverseTable is the table name for the FileType entity.
	// It exists in this package in order to avoid circular dependency with the "file_type" package.
	TypeInverseTable = "file_types"
	// TypeColumn is the table column denoting the type relation/edge.
	TypeColumn = "file_type_files"
	// FieldTable is the table that holds the field relation/edge.
	FieldTable = "field_types"
	// FieldInverseTable is the table name for the FieldType entity.
	// It exists in this package in order to avoid circular dependency with the "field_type" package.
	FieldInverseTable = "field_types"
	// FieldColumn is the table column denoting the field relation/edge.
	FieldColumn = "file_field"
)

Variables

View Source
var (
	// SetIDValidator is a validator for the "set_id" field. It is called by the builders before save.
	SetIDValidator func(int) error
	// 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
)

Columns holds all SQL columns for file fields.

View Source
var ForeignKeys = []string{
	"file_type_files",
	"group_files",
	"user_files",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "files" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.File

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.File

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.File

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.File

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

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

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeIsNil

func CreateTimeIsNil() predicate.File

CreateTimeIsNil applies the IsNil predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.File

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.File

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.File

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

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

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func CreateTimeNotNil

func CreateTimeNotNil() predicate.File

CreateTimeNotNil applies the NotNil predicate on the "create_time" field.

func FieldIDEQ

func FieldIDEQ(v int) predicate.File

FieldIDEQ applies the EQ predicate on the "field_id" field.

func FieldIDGT

func FieldIDGT(v int) predicate.File

FieldIDGT applies the GT predicate on the "field_id" field.

func FieldIDGTE

func FieldIDGTE(v int) predicate.File

FieldIDGTE applies the GTE predicate on the "field_id" field.

func FieldIDIn

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

FieldIDIn applies the In predicate on the "field_id" field.

func FieldIDIsNil

func FieldIDIsNil() predicate.File

FieldIDIsNil applies the IsNil predicate on the "field_id" field.

func FieldIDLT

func FieldIDLT(v int) predicate.File

FieldIDLT applies the LT predicate on the "field_id" field.

func FieldIDLTE

func FieldIDLTE(v int) predicate.File

FieldIDLTE applies the LTE predicate on the "field_id" field.

func FieldIDNEQ

func FieldIDNEQ(v int) predicate.File

FieldIDNEQ applies the NEQ predicate on the "field_id" field.

func FieldIDNotIn

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

FieldIDNotIn applies the NotIn predicate on the "field_id" field.

func FieldIDNotNil

func FieldIDNotNil() predicate.File

FieldIDNotNil applies the NotNil predicate on the "field_id" field.

func Group

func Group(v string) predicate.File

Group applies equality check predicate on the "group" field. It's identical to GroupEQ.

func GroupContains

func GroupContains(v string) predicate.File

GroupContains applies the Contains predicate on the "group" field.

func GroupContainsFold

func GroupContainsFold(v string) predicate.File

GroupContainsFold applies the ContainsFold predicate on the "group" field.

func GroupEQ

func GroupEQ(v string) predicate.File

GroupEQ applies the EQ predicate on the "group" field.

func GroupEqualFold

func GroupEqualFold(v string) predicate.File

GroupEqualFold applies the EqualFold predicate on the "group" field.

func GroupGT

func GroupGT(v string) predicate.File

GroupGT applies the GT predicate on the "group" field.

func GroupGTE

func GroupGTE(v string) predicate.File

GroupGTE applies the GTE predicate on the "group" field.

func GroupHasPrefix

func GroupHasPrefix(v string) predicate.File

GroupHasPrefix applies the HasPrefix predicate on the "group" field.

func GroupHasSuffix

func GroupHasSuffix(v string) predicate.File

GroupHasSuffix applies the HasSuffix predicate on the "group" field.

func GroupIn

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

GroupIn applies the In predicate on the "group" field.

func GroupIsNil

func GroupIsNil() predicate.File

GroupIsNil applies the IsNil predicate on the "group" field.

func GroupLT

func GroupLT(v string) predicate.File

GroupLT applies the LT predicate on the "group" field.

func GroupLTE

func GroupLTE(v string) predicate.File

GroupLTE applies the LTE predicate on the "group" field.

func GroupNEQ

func GroupNEQ(v string) predicate.File

GroupNEQ applies the NEQ predicate on the "group" field.

func GroupNotIn

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

GroupNotIn applies the NotIn predicate on the "group" field.

func GroupNotNil

func GroupNotNil() predicate.File

GroupNotNil applies the NotNil predicate on the "group" field.

func HasField

func HasField() predicate.File

HasField applies the HasEdge predicate on the "field" edge.

func HasFieldWith

func HasFieldWith(preds ...predicate.FieldType) predicate.File

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

func HasOwner

func HasOwner() predicate.File

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.File

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

func HasType

func HasType() predicate.File

HasType applies the HasEdge predicate on the "type" edge.

func HasTypeWith

func HasTypeWith(preds ...predicate.FileType) predicate.File

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

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 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 Op

func Op(v bool) predicate.File

Op applies equality check predicate on the "op" field. It's identical to OpEQ.

func OpEQ

func OpEQ(v bool) predicate.File

OpEQ applies the EQ predicate on the "op" field.

func OpIsNil

func OpIsNil() predicate.File

OpIsNil applies the IsNil predicate on the "op" field.

func OpNEQ

func OpNEQ(v bool) predicate.File

OpNEQ applies the NEQ predicate on the "op" field.

func OpNotNil

func OpNotNil() predicate.File

OpNotNil applies the NotNil predicate on the "op" field.

func Or

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

Or groups predicates with the OR operator between them.

func SetID

func SetID(v int) predicate.File

SetID applies equality check predicate on the "set_id" field. It's identical to SetIDEQ.

func SetIDEQ

func SetIDEQ(v int) predicate.File

SetIDEQ applies the EQ predicate on the "set_id" field.

func SetIDGT

func SetIDGT(v int) predicate.File

SetIDGT applies the GT predicate on the "set_id" field.

func SetIDGTE

func SetIDGTE(v int) predicate.File

SetIDGTE applies the GTE predicate on the "set_id" field.

func SetIDIn

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

SetIDIn applies the In predicate on the "set_id" field.

func SetIDIsNil

func SetIDIsNil() predicate.File

SetIDIsNil applies the IsNil predicate on the "set_id" field.

func SetIDLT

func SetIDLT(v int) predicate.File

SetIDLT applies the LT predicate on the "set_id" field.

func SetIDLTE

func SetIDLTE(v int) predicate.File

SetIDLTE applies the LTE predicate on the "set_id" field.

func SetIDNEQ

func SetIDNEQ(v int) predicate.File

SetIDNEQ applies the NEQ predicate on the "set_id" field.

func SetIDNotIn

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

SetIDNotIn applies the NotIn predicate on the "set_id" field.

func SetIDNotNil

func SetIDNotNil() predicate.File

SetIDNotNil applies the NotNil predicate on the "set_id" field.

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 User

func User(v string) predicate.File

User applies equality check predicate on the "user" field. It's identical to UserEQ.

func UserContains

func UserContains(v string) predicate.File

UserContains applies the Contains predicate on the "user" field.

func UserContainsFold

func UserContainsFold(v string) predicate.File

UserContainsFold applies the ContainsFold predicate on the "user" field.

func UserEQ

func UserEQ(v string) predicate.File

UserEQ applies the EQ predicate on the "user" field.

func UserEqualFold

func UserEqualFold(v string) predicate.File

UserEqualFold applies the EqualFold predicate on the "user" field.

func UserGT

func UserGT(v string) predicate.File

UserGT applies the GT predicate on the "user" field.

func UserGTE

func UserGTE(v string) predicate.File

UserGTE applies the GTE predicate on the "user" field.

func UserHasPrefix

func UserHasPrefix(v string) predicate.File

UserHasPrefix applies the HasPrefix predicate on the "user" field.

func UserHasSuffix

func UserHasSuffix(v string) predicate.File

UserHasSuffix applies the HasSuffix predicate on the "user" field.

func UserIn

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

UserIn applies the In predicate on the "user" field.

func UserIsNil

func UserIsNil() predicate.File

UserIsNil applies the IsNil predicate on the "user" field.

func UserLT

func UserLT(v string) predicate.File

UserLT applies the LT predicate on the "user" field.

func UserLTE

func UserLTE(v string) predicate.File

UserLTE applies the LTE predicate on the "user" field.

func UserNEQ

func UserNEQ(v string) predicate.File

UserNEQ applies the NEQ predicate on the "user" field.

func UserNotIn

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

UserNotIn applies the NotIn predicate on the "user" field.

func UserNotNil

func UserNotNil() predicate.File

UserNotNil applies the NotNil predicate on the "user" 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 ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByField

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

ByField orders the results by field terms.

func ByFieldCount

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

ByFieldCount orders the results by field count.

func ByFieldID

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

ByFieldID orders the results by the field_id field.

func ByGroup

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

ByGroup orders the results by the group 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 ByOp

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

ByOp orders the results by the op field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func BySetID

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

BySetID orders the results by the set_id field.

func BySize

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

BySize orders the results by the size field.

func ByTypeField

func ByTypeField(field string, opts ...sql.OrderTermOption) OrderOption

ByTypeField orders the results by type field.

func ByUser

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

ByUser orders the results by the user field.

Jump to

Keyboard shortcuts

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