filetype

package
v0.0.0-...-eeb60d1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the filetype type in the database.
	Label = "filetype"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "type"
	// FieldAllowedSize holds the string denoting the allowed_size field in the database.
	FieldAllowedSize = "allowed_size"
	// FieldIsBanned holds the string denoting the is_banned field in the database.
	FieldIsBanned = "is_banned"
	// 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"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// FileFieldID holds the string denoting the ID field of the File.
	FileFieldID = "id"
	// Table holds the table name of the filetype in the database.
	Table = "filetypes"
	// FilesTable is the table that holds the files relation/edge.
	FilesTable = "files"
	// FilesInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FilesInverseTable = "files"
	// FilesColumn is the table column denoting the files relation/edge.
	FilesColumn = "type"
)

Variables

View Source
var (
	// DefaultAllowedSize holds the default value on creation for the "allowed_size" field.
	DefaultAllowedSize int
	// DefaultIsBanned holds the default value on creation for the "is_banned" field.
	DefaultIsBanned bool
	// 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
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for filetype fields.

Functions

func AllowedSize

func AllowedSize(v int) predicate.Filetype

AllowedSize applies equality check predicate on the "allowed_size" field. It's identical to AllowedSizeEQ.

func AllowedSizeEQ

func AllowedSizeEQ(v int) predicate.Filetype

AllowedSizeEQ applies the EQ predicate on the "allowed_size" field.

func AllowedSizeGT

func AllowedSizeGT(v int) predicate.Filetype

AllowedSizeGT applies the GT predicate on the "allowed_size" field.

func AllowedSizeGTE

func AllowedSizeGTE(v int) predicate.Filetype

AllowedSizeGTE applies the GTE predicate on the "allowed_size" field.

func AllowedSizeIn

func AllowedSizeIn(vs ...int) predicate.Filetype

AllowedSizeIn applies the In predicate on the "allowed_size" field.

func AllowedSizeLT

func AllowedSizeLT(v int) predicate.Filetype

AllowedSizeLT applies the LT predicate on the "allowed_size" field.

func AllowedSizeLTE

func AllowedSizeLTE(v int) predicate.Filetype

AllowedSizeLTE applies the LTE predicate on the "allowed_size" field.

func AllowedSizeNEQ

func AllowedSizeNEQ(v int) predicate.Filetype

AllowedSizeNEQ applies the NEQ predicate on the "allowed_size" field.

func AllowedSizeNotIn

func AllowedSizeNotIn(vs ...int) predicate.Filetype

AllowedSizeNotIn applies the NotIn predicate on the "allowed_size" field.

func And

func And(predicates ...predicate.Filetype) predicate.Filetype

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Filetype

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Filetype

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Filetype

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Filetype

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Filetype

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Filetype

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Filetype

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Filetype

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Filetype

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Filetype

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Filetype

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func HasFiles

func HasFiles() predicate.Filetype

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith

func HasFilesWith(preds ...predicate.File) predicate.Filetype

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

func ID

func ID(id string) predicate.Filetype

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Filetype

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Filetype

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Filetype

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Filetype

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Filetype

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Filetype

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Filetype

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Filetype

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Filetype

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Filetype

IDNotIn applies the NotIn predicate on the ID field.

func IsBanned

func IsBanned(v bool) predicate.Filetype

IsBanned applies equality check predicate on the "is_banned" field. It's identical to IsBannedEQ.

func IsBannedEQ

func IsBannedEQ(v bool) predicate.Filetype

IsBannedEQ applies the EQ predicate on the "is_banned" field.

func IsBannedNEQ

func IsBannedNEQ(v bool) predicate.Filetype

IsBannedNEQ applies the NEQ predicate on the "is_banned" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Filetype) predicate.Filetype

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Filetype

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Filetype

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Filetype

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Filetype

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Filetype

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Filetype

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Filetype

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Filetype

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Filetype

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Filetype queries.

func ByAllowedSize

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

ByAllowedSize orders the results by the allowed_size field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByFiles

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

ByFiles orders the results by files terms.

func ByFilesCount

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

ByFilesCount orders the results by files count.

func ByID

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

ByID orders the results by the id field.

func ByIsBanned

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

ByIsBanned orders the results by the is_banned field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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