file

package
v0.1.5-0...-40e571d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 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"    // FieldSize holds the string denoting the size vertex property in the database.
	FieldSize  = "fsize" // FieldName holds the string denoting the name vertex property in the database.
	FieldName  = "name"  // FieldUser holds the string denoting the user vertex property in the database.
	FieldUser  = "user"  // FieldGroup holds the string denoting the group vertex property in the database.
	FieldGroup = "group"

	// 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"

	// Table holds the table name of the file in the database.
	Table = "files"
	// OwnerTable is the table the 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 the 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 "filetype" package.
	TypeInverseTable = "file_types"
	// TypeColumn is the table column denoting the type relation/edge.
	TypeColumn = "file_type_files"
)

Variables

View Source
var (
	// 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 File type.

Functions

func And

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

And groups list of predicates with the AND operator between them.

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 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 identifier.

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 Or

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

Or groups list of 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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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