file

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 6 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"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldMappingID holds the string denoting the mapping_id field in the database.
	FieldMappingID = "mapping_id"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldFileName holds the string denoting the file_name field in the database.
	FieldFileName = "file_name"
	// FieldFileExtension holds the string denoting the file_extension field in the database.
	FieldFileExtension = "file_extension"
	// FieldFileSize holds the string denoting the file_size field in the database.
	FieldFileSize = "file_size"
	// FieldContentType holds the string denoting the content_type field in the database.
	FieldContentType = "content_type"
	// FieldStoreKey holds the string denoting the store_key field in the database.
	FieldStoreKey = "store_key"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldAnnotation holds the string denoting the annotation field in the database.
	FieldAnnotation = "annotation"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// Table holds the table name of the file in the database.
	Table = "files"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "files"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_files"
	// OrganizationTable is the table that holds the organization relation/edge. The primary key declared below.
	OrganizationTable = "organization_files"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// GroupTable is the table that holds the group relation/edge. The primary key declared below.
	GroupTable = "group_files"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "groups"
)

Variables

View Source
var (
	// OrganizationPrimaryKey and OrganizationColumn2 are the table columns denoting the
	// primary key for the organization relation (M2M).
	OrganizationPrimaryKey = []string{"organization_id", "file_id"}
	// GroupPrimaryKey and GroupColumn2 are the table columns denoting the
	// primary key for the group relation (M2M).
	GroupPrimaryKey = []string{"group_id", "file_id"}
)
View Source
var (
	Hooks        [2]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
	// DefaultMappingID holds the default value on creation for the "mapping_id" field.
	DefaultMappingID func() string
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// FileSizeValidator is a validator for the "file_size" field. It is called by the builders before save.
	FileSizeValidator func(int) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/datumforge/datum/internal/ent/generated/runtime"

Columns holds all SQL columns for file fields.

View Source
var ForeignKeys = []string{
	"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 Annotation

func Annotation(v string) predicate.File

Annotation applies equality check predicate on the "annotation" field. It's identical to AnnotationEQ.

func AnnotationContains

func AnnotationContains(v string) predicate.File

AnnotationContains applies the Contains predicate on the "annotation" field.

func AnnotationContainsFold

func AnnotationContainsFold(v string) predicate.File

AnnotationContainsFold applies the ContainsFold predicate on the "annotation" field.

func AnnotationEQ

func AnnotationEQ(v string) predicate.File

AnnotationEQ applies the EQ predicate on the "annotation" field.

func AnnotationEqualFold

func AnnotationEqualFold(v string) predicate.File

AnnotationEqualFold applies the EqualFold predicate on the "annotation" field.

func AnnotationGT

func AnnotationGT(v string) predicate.File

AnnotationGT applies the GT predicate on the "annotation" field.

func AnnotationGTE

func AnnotationGTE(v string) predicate.File

AnnotationGTE applies the GTE predicate on the "annotation" field.

func AnnotationHasPrefix

func AnnotationHasPrefix(v string) predicate.File

AnnotationHasPrefix applies the HasPrefix predicate on the "annotation" field.

func AnnotationHasSuffix

func AnnotationHasSuffix(v string) predicate.File

AnnotationHasSuffix applies the HasSuffix predicate on the "annotation" field.

func AnnotationIn

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

AnnotationIn applies the In predicate on the "annotation" field.

func AnnotationIsNil

func AnnotationIsNil() predicate.File

AnnotationIsNil applies the IsNil predicate on the "annotation" field.

func AnnotationLT

func AnnotationLT(v string) predicate.File

AnnotationLT applies the LT predicate on the "annotation" field.

func AnnotationLTE

func AnnotationLTE(v string) predicate.File

AnnotationLTE applies the LTE predicate on the "annotation" field.

func AnnotationNEQ

func AnnotationNEQ(v string) predicate.File

AnnotationNEQ applies the NEQ predicate on the "annotation" field.

func AnnotationNotIn

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

AnnotationNotIn applies the NotIn predicate on the "annotation" field.

func AnnotationNotNil

func AnnotationNotNil() predicate.File

AnnotationNotNil applies the NotNil predicate on the "annotation" field.

func Category

func Category(v string) predicate.File

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryContains

func CategoryContains(v string) predicate.File

CategoryContains applies the Contains predicate on the "category" field.

func CategoryContainsFold

func CategoryContainsFold(v string) predicate.File

CategoryContainsFold applies the ContainsFold predicate on the "category" field.

func CategoryEQ

func CategoryEQ(v string) predicate.File

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryEqualFold

func CategoryEqualFold(v string) predicate.File

CategoryEqualFold applies the EqualFold predicate on the "category" field.

func CategoryGT

func CategoryGT(v string) predicate.File

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE

func CategoryGTE(v string) predicate.File

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryHasPrefix

func CategoryHasPrefix(v string) predicate.File

CategoryHasPrefix applies the HasPrefix predicate on the "category" field.

func CategoryHasSuffix

func CategoryHasSuffix(v string) predicate.File

CategoryHasSuffix applies the HasSuffix predicate on the "category" field.

func CategoryIn

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

CategoryIn applies the In predicate on the "category" field.

func CategoryIsNil

func CategoryIsNil() predicate.File

CategoryIsNil applies the IsNil predicate on the "category" field.

func CategoryLT

func CategoryLT(v string) predicate.File

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE

func CategoryLTE(v string) predicate.File

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ

func CategoryNEQ(v string) predicate.File

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn

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

CategoryNotIn applies the NotIn predicate on the "category" field.

func CategoryNotNil

func CategoryNotNil() predicate.File

CategoryNotNil applies the NotNil predicate on the "category" field.

func ContentType

func ContentType(v string) predicate.File

ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ.

func ContentTypeContains

func ContentTypeContains(v string) predicate.File

ContentTypeContains applies the Contains predicate on the "content_type" field.

func ContentTypeContainsFold

func ContentTypeContainsFold(v string) predicate.File

ContentTypeContainsFold applies the ContainsFold predicate on the "content_type" field.

func ContentTypeEQ

func ContentTypeEQ(v string) predicate.File

ContentTypeEQ applies the EQ predicate on the "content_type" field.

func ContentTypeEqualFold

func ContentTypeEqualFold(v string) predicate.File

ContentTypeEqualFold applies the EqualFold predicate on the "content_type" field.

func ContentTypeGT

func ContentTypeGT(v string) predicate.File

ContentTypeGT applies the GT predicate on the "content_type" field.

func ContentTypeGTE

func ContentTypeGTE(v string) predicate.File

ContentTypeGTE applies the GTE predicate on the "content_type" field.

func ContentTypeHasPrefix

func ContentTypeHasPrefix(v string) predicate.File

ContentTypeHasPrefix applies the HasPrefix predicate on the "content_type" field.

func ContentTypeHasSuffix

func ContentTypeHasSuffix(v string) predicate.File

ContentTypeHasSuffix applies the HasSuffix predicate on the "content_type" field.

func ContentTypeIn

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

ContentTypeIn applies the In predicate on the "content_type" field.

func ContentTypeLT

func ContentTypeLT(v string) predicate.File

ContentTypeLT applies the LT predicate on the "content_type" field.

func ContentTypeLTE

func ContentTypeLTE(v string) predicate.File

ContentTypeLTE applies the LTE predicate on the "content_type" field.

func ContentTypeNEQ

func ContentTypeNEQ(v string) predicate.File

ContentTypeNEQ applies the NEQ predicate on the "content_type" field.

func ContentTypeNotIn

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

ContentTypeNotIn applies the NotIn predicate on the "content_type" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.File

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.File

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.File

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.File

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.File

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.File

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.File

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.File

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.File

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

func CreatedBy

func CreatedBy(v string) predicate.File

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.File

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.File

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.File

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.File

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.File

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.File

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.File

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.File

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

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

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.File

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.File

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.File

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.File

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

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

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.File

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.File

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.File

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.File

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.File

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

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

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.File

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.File

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.File

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.File

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

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

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.File

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v string) predicate.File

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.File

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.File

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.File

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.File

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.File

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.File

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.File

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.File

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

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

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.File

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.File

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.File

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.File

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

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

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.File

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func FileExtension

func FileExtension(v string) predicate.File

FileExtension applies equality check predicate on the "file_extension" field. It's identical to FileExtensionEQ.

func FileExtensionContains

func FileExtensionContains(v string) predicate.File

FileExtensionContains applies the Contains predicate on the "file_extension" field.

func FileExtensionContainsFold

func FileExtensionContainsFold(v string) predicate.File

FileExtensionContainsFold applies the ContainsFold predicate on the "file_extension" field.

func FileExtensionEQ

func FileExtensionEQ(v string) predicate.File

FileExtensionEQ applies the EQ predicate on the "file_extension" field.

func FileExtensionEqualFold

func FileExtensionEqualFold(v string) predicate.File

FileExtensionEqualFold applies the EqualFold predicate on the "file_extension" field.

func FileExtensionGT

func FileExtensionGT(v string) predicate.File

FileExtensionGT applies the GT predicate on the "file_extension" field.

func FileExtensionGTE

func FileExtensionGTE(v string) predicate.File

FileExtensionGTE applies the GTE predicate on the "file_extension" field.

func FileExtensionHasPrefix

func FileExtensionHasPrefix(v string) predicate.File

FileExtensionHasPrefix applies the HasPrefix predicate on the "file_extension" field.

func FileExtensionHasSuffix

func FileExtensionHasSuffix(v string) predicate.File

FileExtensionHasSuffix applies the HasSuffix predicate on the "file_extension" field.

func FileExtensionIn

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

FileExtensionIn applies the In predicate on the "file_extension" field.

func FileExtensionLT

func FileExtensionLT(v string) predicate.File

FileExtensionLT applies the LT predicate on the "file_extension" field.

func FileExtensionLTE

func FileExtensionLTE(v string) predicate.File

FileExtensionLTE applies the LTE predicate on the "file_extension" field.

func FileExtensionNEQ

func FileExtensionNEQ(v string) predicate.File

FileExtensionNEQ applies the NEQ predicate on the "file_extension" field.

func FileExtensionNotIn

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

FileExtensionNotIn applies the NotIn predicate on the "file_extension" field.

func FileName

func FileName(v string) predicate.File

FileName applies equality check predicate on the "file_name" field. It's identical to FileNameEQ.

func FileNameContains

func FileNameContains(v string) predicate.File

FileNameContains applies the Contains predicate on the "file_name" field.

func FileNameContainsFold

func FileNameContainsFold(v string) predicate.File

FileNameContainsFold applies the ContainsFold predicate on the "file_name" field.

func FileNameEQ

func FileNameEQ(v string) predicate.File

FileNameEQ applies the EQ predicate on the "file_name" field.

func FileNameEqualFold

func FileNameEqualFold(v string) predicate.File

FileNameEqualFold applies the EqualFold predicate on the "file_name" field.

func FileNameGT

func FileNameGT(v string) predicate.File

FileNameGT applies the GT predicate on the "file_name" field.

func FileNameGTE

func FileNameGTE(v string) predicate.File

FileNameGTE applies the GTE predicate on the "file_name" field.

func FileNameHasPrefix

func FileNameHasPrefix(v string) predicate.File

FileNameHasPrefix applies the HasPrefix predicate on the "file_name" field.

func FileNameHasSuffix

func FileNameHasSuffix(v string) predicate.File

FileNameHasSuffix applies the HasSuffix predicate on the "file_name" field.

func FileNameIn

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

FileNameIn applies the In predicate on the "file_name" field.

func FileNameLT

func FileNameLT(v string) predicate.File

FileNameLT applies the LT predicate on the "file_name" field.

func FileNameLTE

func FileNameLTE(v string) predicate.File

FileNameLTE applies the LTE predicate on the "file_name" field.

func FileNameNEQ

func FileNameNEQ(v string) predicate.File

FileNameNEQ applies the NEQ predicate on the "file_name" field.

func FileNameNotIn

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

FileNameNotIn applies the NotIn predicate on the "file_name" field.

func FileSize

func FileSize(v int) predicate.File

FileSize applies equality check predicate on the "file_size" field. It's identical to FileSizeEQ.

func FileSizeEQ

func FileSizeEQ(v int) predicate.File

FileSizeEQ applies the EQ predicate on the "file_size" field.

func FileSizeGT

func FileSizeGT(v int) predicate.File

FileSizeGT applies the GT predicate on the "file_size" field.

func FileSizeGTE

func FileSizeGTE(v int) predicate.File

FileSizeGTE applies the GTE predicate on the "file_size" field.

func FileSizeIn

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

FileSizeIn applies the In predicate on the "file_size" field.

func FileSizeIsNil

func FileSizeIsNil() predicate.File

FileSizeIsNil applies the IsNil predicate on the "file_size" field.

func FileSizeLT

func FileSizeLT(v int) predicate.File

FileSizeLT applies the LT predicate on the "file_size" field.

func FileSizeLTE

func FileSizeLTE(v int) predicate.File

FileSizeLTE applies the LTE predicate on the "file_size" field.

func FileSizeNEQ

func FileSizeNEQ(v int) predicate.File

FileSizeNEQ applies the NEQ predicate on the "file_size" field.

func FileSizeNotIn

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

FileSizeNotIn applies the NotIn predicate on the "file_size" field.

func FileSizeNotNil

func FileSizeNotNil() predicate.File

FileSizeNotNil applies the NotNil predicate on the "file_size" field.

func HasGroup

func HasGroup() predicate.File

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.File

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

func HasOrganization

func HasOrganization() predicate.File

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.File

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

func HasUser

func HasUser() predicate.File

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

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

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

func ID

func ID(id string) predicate.File

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.File

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.File

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MappingID

func MappingID(v string) predicate.File

MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.

func MappingIDContains

func MappingIDContains(v string) predicate.File

MappingIDContains applies the Contains predicate on the "mapping_id" field.

func MappingIDContainsFold

func MappingIDContainsFold(v string) predicate.File

MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.

func MappingIDEQ

func MappingIDEQ(v string) predicate.File

MappingIDEQ applies the EQ predicate on the "mapping_id" field.

func MappingIDEqualFold

func MappingIDEqualFold(v string) predicate.File

MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.

func MappingIDGT

func MappingIDGT(v string) predicate.File

MappingIDGT applies the GT predicate on the "mapping_id" field.

func MappingIDGTE

func MappingIDGTE(v string) predicate.File

MappingIDGTE applies the GTE predicate on the "mapping_id" field.

func MappingIDHasPrefix

func MappingIDHasPrefix(v string) predicate.File

MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.

func MappingIDHasSuffix

func MappingIDHasSuffix(v string) predicate.File

MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.

func MappingIDIn

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

MappingIDIn applies the In predicate on the "mapping_id" field.

func MappingIDLT

func MappingIDLT(v string) predicate.File

MappingIDLT applies the LT predicate on the "mapping_id" field.

func MappingIDLTE

func MappingIDLTE(v string) predicate.File

MappingIDLTE applies the LTE predicate on the "mapping_id" field.

func MappingIDNEQ

func MappingIDNEQ(v string) predicate.File

MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.

func MappingIDNotIn

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

MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func StoreKey

func StoreKey(v string) predicate.File

StoreKey applies equality check predicate on the "store_key" field. It's identical to StoreKeyEQ.

func StoreKeyContains

func StoreKeyContains(v string) predicate.File

StoreKeyContains applies the Contains predicate on the "store_key" field.

func StoreKeyContainsFold

func StoreKeyContainsFold(v string) predicate.File

StoreKeyContainsFold applies the ContainsFold predicate on the "store_key" field.

func StoreKeyEQ

func StoreKeyEQ(v string) predicate.File

StoreKeyEQ applies the EQ predicate on the "store_key" field.

func StoreKeyEqualFold

func StoreKeyEqualFold(v string) predicate.File

StoreKeyEqualFold applies the EqualFold predicate on the "store_key" field.

func StoreKeyGT

func StoreKeyGT(v string) predicate.File

StoreKeyGT applies the GT predicate on the "store_key" field.

func StoreKeyGTE

func StoreKeyGTE(v string) predicate.File

StoreKeyGTE applies the GTE predicate on the "store_key" field.

func StoreKeyHasPrefix

func StoreKeyHasPrefix(v string) predicate.File

StoreKeyHasPrefix applies the HasPrefix predicate on the "store_key" field.

func StoreKeyHasSuffix

func StoreKeyHasSuffix(v string) predicate.File

StoreKeyHasSuffix applies the HasSuffix predicate on the "store_key" field.

func StoreKeyIn

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

StoreKeyIn applies the In predicate on the "store_key" field.

func StoreKeyLT

func StoreKeyLT(v string) predicate.File

StoreKeyLT applies the LT predicate on the "store_key" field.

func StoreKeyLTE

func StoreKeyLTE(v string) predicate.File

StoreKeyLTE applies the LTE predicate on the "store_key" field.

func StoreKeyNEQ

func StoreKeyNEQ(v string) predicate.File

StoreKeyNEQ applies the NEQ predicate on the "store_key" field.

func StoreKeyNotIn

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

StoreKeyNotIn applies the NotIn predicate on the "store_key" field.

func TagsIsNil added in v0.5.2

func TagsIsNil() predicate.File

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil added in v0.5.2

func TagsNotNil() predicate.File

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.File

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.File

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.File

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.File

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.File

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.File

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.File

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.File

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.File

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.File

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.File

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.File

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.File

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.File

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.File

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.File

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.File

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.File

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

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

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.File

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.File

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.File

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.File

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

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

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.File

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 ByAnnotation

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

ByAnnotation orders the results by the annotation field.

func ByCategory

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

ByCategory orders the results by the category field.

func ByContentType

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

ByContentType orders the results by the content_type field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

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

ByDeletedBy orders the results by the deleted_by field.

func ByFileExtension

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

ByFileExtension orders the results by the file_extension field.

func ByFileName

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

ByFileName orders the results by the file_name field.

func ByFileSize

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

ByFileSize orders the results by the file_size field.

func ByGroup

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

ByGroup orders the results by group terms.

func ByGroupCount

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

ByGroupCount orders the results by group count.

func ByID

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

ByID orders the results by the id field.

func ByMappingID

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

ByMappingID orders the results by the mapping_id field.

func ByOrganization

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

ByOrganization orders the results by organization terms.

func ByOrganizationCount

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

ByOrganizationCount orders the results by organization count.

func ByStoreKey

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

ByStoreKey orders the results by the store_key field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByUserField

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

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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