folder

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the folder type in the database.
	Label = "folder"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSpaceID holds the string denoting the space_id field in the database.
	FieldSpaceID = "space_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// 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"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// EdgeSpace holds the string denoting the space edge name in mutations.
	EdgeSpace = "space"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// Table holds the table name of the folder in the database.
	Table = "folders"
	// SpaceTable is the table that holds the space relation/edge.
	SpaceTable = "folders"
	// SpaceInverseTable is the table name for the Space entity.
	// It exists in this package in order to avoid circular dependency with the "space" package.
	SpaceInverseTable = "spaces"
	// SpaceColumn is the table column denoting the space relation/edge.
	SpaceColumn = "space_id"
	// 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 = "folder_id"
)

Variables

View Source
var (
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// 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 folder fields.

Functions

func And

func And(predicates ...predicate.Folder) predicate.Folder

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Folder

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Folder

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Folder

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Folder

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Folder

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Folder

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Folder

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

func CreatedAtNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Folder

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Folder

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Folder

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Folder

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Folder

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.Folder

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Folder

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Folder

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Folder

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Folder

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.Folder

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasFiles

func HasFiles() predicate.Folder

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

func HasFilesWith

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

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

func HasSpace

func HasSpace() predicate.Folder

HasSpace applies the HasEdge predicate on the "space" edge.

func HasSpaceWith

func HasSpaceWith(preds ...predicate.Space) predicate.Folder

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

func ID

func ID(id string) predicate.Folder

ID filters vertices based on their ID field.

func IDContainsFold added in v1.1.1

func IDContainsFold(id string) predicate.Folder

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Folder

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold added in v1.1.1

func IDEqualFold(id string) predicate.Folder

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Folder

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Folder

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Folder

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Folder

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Folder

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Folder

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

func NameContains

func NameContains(v string) predicate.Folder

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

func NameContainsFold

func NameContainsFold(v string) predicate.Folder

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

func NameEQ

func NameEQ(v string) predicate.Folder

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

func NameEqualFold

func NameEqualFold(v string) predicate.Folder

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

func NameGT

func NameGT(v string) predicate.Folder

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

func NameGTE

func NameGTE(v string) predicate.Folder

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Folder

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Folder

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Folder

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

func NameLTE

func NameLTE(v string) predicate.Folder

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

func NameNEQ

func NameNEQ(v string) predicate.Folder

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func SpaceID

func SpaceID(v string) predicate.Folder

SpaceID applies equality check predicate on the "space_id" field. It's identical to SpaceIDEQ.

func SpaceIDContains

func SpaceIDContains(v string) predicate.Folder

SpaceIDContains applies the Contains predicate on the "space_id" field.

func SpaceIDContainsFold

func SpaceIDContainsFold(v string) predicate.Folder

SpaceIDContainsFold applies the ContainsFold predicate on the "space_id" field.

func SpaceIDEQ

func SpaceIDEQ(v string) predicate.Folder

SpaceIDEQ applies the EQ predicate on the "space_id" field.

func SpaceIDEqualFold

func SpaceIDEqualFold(v string) predicate.Folder

SpaceIDEqualFold applies the EqualFold predicate on the "space_id" field.

func SpaceIDGT

func SpaceIDGT(v string) predicate.Folder

SpaceIDGT applies the GT predicate on the "space_id" field.

func SpaceIDGTE

func SpaceIDGTE(v string) predicate.Folder

SpaceIDGTE applies the GTE predicate on the "space_id" field.

func SpaceIDHasPrefix

func SpaceIDHasPrefix(v string) predicate.Folder

SpaceIDHasPrefix applies the HasPrefix predicate on the "space_id" field.

func SpaceIDHasSuffix

func SpaceIDHasSuffix(v string) predicate.Folder

SpaceIDHasSuffix applies the HasSuffix predicate on the "space_id" field.

func SpaceIDIn

func SpaceIDIn(vs ...string) predicate.Folder

SpaceIDIn applies the In predicate on the "space_id" field.

func SpaceIDLT

func SpaceIDLT(v string) predicate.Folder

SpaceIDLT applies the LT predicate on the "space_id" field.

func SpaceIDLTE

func SpaceIDLTE(v string) predicate.Folder

SpaceIDLTE applies the LTE predicate on the "space_id" field.

func SpaceIDNEQ

func SpaceIDNEQ(v string) predicate.Folder

SpaceIDNEQ applies the NEQ predicate on the "space_id" field.

func SpaceIDNotIn

func SpaceIDNotIn(vs ...string) predicate.Folder

SpaceIDNotIn applies the NotIn predicate on the "space_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Folder

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Folder

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Folder

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Folder

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Folder

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Folder

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Folder

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

func UpdatedAtNotIn

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

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 added in v1.1.1

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Folder queries.

func ByCreatedAt added in v1.1.1

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

ByCreatedAt orders the results by the created_at field.

func ByExpiresAt added in v1.1.1

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

ByExpiresAt orders the results by the expires_at field.

func ByFiles added in v1.1.1

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

ByFiles orders the results by files terms.

func ByFilesCount added in v1.1.1

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

ByFilesCount orders the results by files count.

func ByID added in v1.1.1

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

ByID orders the results by the id field.

func ByName added in v1.1.1

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

ByName orders the results by the name field.

func BySpaceField added in v1.1.1

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

BySpaceField orders the results by space field.

func BySpaceID added in v1.1.1

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

BySpaceID orders the results by the space_id field.

func ByUpdatedAt added in v1.1.1

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