file

package
v0.0.0-...-9131046 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldExternalID holds the string denoting the external_id field in the database.
	FieldExternalID = "external_id"
	// FieldExternalInfoProvider holds the string denoting the external_info_provider field in the database.
	FieldExternalInfoProvider = "external_info_provider"
	// FieldResults holds the string denoting the results field in the database.
	FieldResults = "results"
	// FieldSynced holds the string denoting the synced field in the database.
	FieldSynced = "synced"
	// EdgeMovie holds the string denoting the movie edge name in mutations.
	EdgeMovie = "movie"
	// Table holds the table name of the file in the database.
	Table = "files"
	// MovieTable is the table that holds the movie relation/edge.
	MovieTable = "files"
	// MovieInverseTable is the table name for the Movie entity.
	// It exists in this package in order to avoid circular dependency with the "movie" package.
	MovieInverseTable = "movies"
	// MovieColumn is the table column denoting the movie relation/edge.
	MovieColumn = "movie_file"
)

Variables

Columns holds all SQL columns for file fields.

View Source
var (
	// DefaultSynced holds the default value on creation for the "synced" field.
	DefaultSynced bool
)
View Source
var ForeignKeys = []string{
	"movie_file",
}

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 ExternalID

func ExternalID(v string) predicate.File

ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.

func ExternalIDContains

func ExternalIDContains(v string) predicate.File

ExternalIDContains applies the Contains predicate on the "external_id" field.

func ExternalIDContainsFold

func ExternalIDContainsFold(v string) predicate.File

ExternalIDContainsFold applies the ContainsFold predicate on the "external_id" field.

func ExternalIDEQ

func ExternalIDEQ(v string) predicate.File

ExternalIDEQ applies the EQ predicate on the "external_id" field.

func ExternalIDEqualFold

func ExternalIDEqualFold(v string) predicate.File

ExternalIDEqualFold applies the EqualFold predicate on the "external_id" field.

func ExternalIDGT

func ExternalIDGT(v string) predicate.File

ExternalIDGT applies the GT predicate on the "external_id" field.

func ExternalIDGTE

func ExternalIDGTE(v string) predicate.File

ExternalIDGTE applies the GTE predicate on the "external_id" field.

func ExternalIDHasPrefix

func ExternalIDHasPrefix(v string) predicate.File

ExternalIDHasPrefix applies the HasPrefix predicate on the "external_id" field.

func ExternalIDHasSuffix

func ExternalIDHasSuffix(v string) predicate.File

ExternalIDHasSuffix applies the HasSuffix predicate on the "external_id" field.

func ExternalIDIn

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

ExternalIDIn applies the In predicate on the "external_id" field.

func ExternalIDIsNil

func ExternalIDIsNil() predicate.File

ExternalIDIsNil applies the IsNil predicate on the "external_id" field.

func ExternalIDLT

func ExternalIDLT(v string) predicate.File

ExternalIDLT applies the LT predicate on the "external_id" field.

func ExternalIDLTE

func ExternalIDLTE(v string) predicate.File

ExternalIDLTE applies the LTE predicate on the "external_id" field.

func ExternalIDNEQ

func ExternalIDNEQ(v string) predicate.File

ExternalIDNEQ applies the NEQ predicate on the "external_id" field.

func ExternalIDNotIn

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

ExternalIDNotIn applies the NotIn predicate on the "external_id" field.

func ExternalIDNotNil

func ExternalIDNotNil() predicate.File

ExternalIDNotNil applies the NotNil predicate on the "external_id" field.

func ExternalInfoProvider

func ExternalInfoProvider(v string) predicate.File

ExternalInfoProvider applies equality check predicate on the "external_info_provider" field. It's identical to ExternalInfoProviderEQ.

func ExternalInfoProviderContains

func ExternalInfoProviderContains(v string) predicate.File

ExternalInfoProviderContains applies the Contains predicate on the "external_info_provider" field.

func ExternalInfoProviderContainsFold

func ExternalInfoProviderContainsFold(v string) predicate.File

ExternalInfoProviderContainsFold applies the ContainsFold predicate on the "external_info_provider" field.

func ExternalInfoProviderEQ

func ExternalInfoProviderEQ(v string) predicate.File

ExternalInfoProviderEQ applies the EQ predicate on the "external_info_provider" field.

func ExternalInfoProviderEqualFold

func ExternalInfoProviderEqualFold(v string) predicate.File

ExternalInfoProviderEqualFold applies the EqualFold predicate on the "external_info_provider" field.

func ExternalInfoProviderGT

func ExternalInfoProviderGT(v string) predicate.File

ExternalInfoProviderGT applies the GT predicate on the "external_info_provider" field.

func ExternalInfoProviderGTE

func ExternalInfoProviderGTE(v string) predicate.File

ExternalInfoProviderGTE applies the GTE predicate on the "external_info_provider" field.

func ExternalInfoProviderHasPrefix

func ExternalInfoProviderHasPrefix(v string) predicate.File

ExternalInfoProviderHasPrefix applies the HasPrefix predicate on the "external_info_provider" field.

func ExternalInfoProviderHasSuffix

func ExternalInfoProviderHasSuffix(v string) predicate.File

ExternalInfoProviderHasSuffix applies the HasSuffix predicate on the "external_info_provider" field.

func ExternalInfoProviderIn

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

ExternalInfoProviderIn applies the In predicate on the "external_info_provider" field.

func ExternalInfoProviderIsNil

func ExternalInfoProviderIsNil() predicate.File

ExternalInfoProviderIsNil applies the IsNil predicate on the "external_info_provider" field.

func ExternalInfoProviderLT

func ExternalInfoProviderLT(v string) predicate.File

ExternalInfoProviderLT applies the LT predicate on the "external_info_provider" field.

func ExternalInfoProviderLTE

func ExternalInfoProviderLTE(v string) predicate.File

ExternalInfoProviderLTE applies the LTE predicate on the "external_info_provider" field.

func ExternalInfoProviderNEQ

func ExternalInfoProviderNEQ(v string) predicate.File

ExternalInfoProviderNEQ applies the NEQ predicate on the "external_info_provider" field.

func ExternalInfoProviderNotIn

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

ExternalInfoProviderNotIn applies the NotIn predicate on the "external_info_provider" field.

func ExternalInfoProviderNotNil

func ExternalInfoProviderNotNil() predicate.File

ExternalInfoProviderNotNil applies the NotNil predicate on the "external_info_provider" field.

func HasMovie

func HasMovie() predicate.File

HasMovie applies the HasEdge predicate on the "movie" edge.

func HasMovieWith

func HasMovieWith(preds ...predicate.Movie) predicate.File

HasMovieWith applies the HasEdge predicate on the "movie" 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 Or

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

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.File

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.File

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.File

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.File

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.File

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.File

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.File

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.File

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.File

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

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

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.File

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.File

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.File

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

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

PathNotIn applies the NotIn predicate on the "path" field.

func Results

func Results(v string) predicate.File

Results applies equality check predicate on the "results" field. It's identical to ResultsEQ.

func ResultsContains

func ResultsContains(v string) predicate.File

ResultsContains applies the Contains predicate on the "results" field.

func ResultsContainsFold

func ResultsContainsFold(v string) predicate.File

ResultsContainsFold applies the ContainsFold predicate on the "results" field.

func ResultsEQ

func ResultsEQ(v string) predicate.File

ResultsEQ applies the EQ predicate on the "results" field.

func ResultsEqualFold

func ResultsEqualFold(v string) predicate.File

ResultsEqualFold applies the EqualFold predicate on the "results" field.

func ResultsGT

func ResultsGT(v string) predicate.File

ResultsGT applies the GT predicate on the "results" field.

func ResultsGTE

func ResultsGTE(v string) predicate.File

ResultsGTE applies the GTE predicate on the "results" field.

func ResultsHasPrefix

func ResultsHasPrefix(v string) predicate.File

ResultsHasPrefix applies the HasPrefix predicate on the "results" field.

func ResultsHasSuffix

func ResultsHasSuffix(v string) predicate.File

ResultsHasSuffix applies the HasSuffix predicate on the "results" field.

func ResultsIn

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

ResultsIn applies the In predicate on the "results" field.

func ResultsIsNil

func ResultsIsNil() predicate.File

ResultsIsNil applies the IsNil predicate on the "results" field.

func ResultsLT

func ResultsLT(v string) predicate.File

ResultsLT applies the LT predicate on the "results" field.

func ResultsLTE

func ResultsLTE(v string) predicate.File

ResultsLTE applies the LTE predicate on the "results" field.

func ResultsNEQ

func ResultsNEQ(v string) predicate.File

ResultsNEQ applies the NEQ predicate on the "results" field.

func ResultsNotIn

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

ResultsNotIn applies the NotIn predicate on the "results" field.

func ResultsNotNil

func ResultsNotNil() predicate.File

ResultsNotNil applies the NotNil predicate on the "results" field.

func Synced

func Synced(v bool) predicate.File

Synced applies equality check predicate on the "synced" field. It's identical to SyncedEQ.

func SyncedEQ

func SyncedEQ(v bool) predicate.File

SyncedEQ applies the EQ predicate on the "synced" field.

func SyncedNEQ

func SyncedNEQ(v bool) predicate.File

SyncedNEQ applies the NEQ predicate on the "synced" field.

func TypeEQ

func TypeEQ(v Type) predicate.File

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.File

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.File

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.File

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeAudio Type = "audio"
	TypeVideo Type = "video"
	TypeImage Type = "image"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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