Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func ExternalID(v string) predicate.File
- func ExternalIDContains(v string) predicate.File
- func ExternalIDContainsFold(v string) predicate.File
- func ExternalIDEQ(v string) predicate.File
- func ExternalIDEqualFold(v string) predicate.File
- func ExternalIDGT(v string) predicate.File
- func ExternalIDGTE(v string) predicate.File
- func ExternalIDHasPrefix(v string) predicate.File
- func ExternalIDHasSuffix(v string) predicate.File
- func ExternalIDIn(vs ...string) predicate.File
- func ExternalIDIsNil() predicate.File
- func ExternalIDLT(v string) predicate.File
- func ExternalIDLTE(v string) predicate.File
- func ExternalIDNEQ(v string) predicate.File
- func ExternalIDNotIn(vs ...string) predicate.File
- func ExternalIDNotNil() predicate.File
- func ExternalInfoProvider(v string) predicate.File
- func ExternalInfoProviderContains(v string) predicate.File
- func ExternalInfoProviderContainsFold(v string) predicate.File
- func ExternalInfoProviderEQ(v string) predicate.File
- func ExternalInfoProviderEqualFold(v string) predicate.File
- func ExternalInfoProviderGT(v string) predicate.File
- func ExternalInfoProviderGTE(v string) predicate.File
- func ExternalInfoProviderHasPrefix(v string) predicate.File
- func ExternalInfoProviderHasSuffix(v string) predicate.File
- func ExternalInfoProviderIn(vs ...string) predicate.File
- func ExternalInfoProviderIsNil() predicate.File
- func ExternalInfoProviderLT(v string) predicate.File
- func ExternalInfoProviderLTE(v string) predicate.File
- func ExternalInfoProviderNEQ(v string) predicate.File
- func ExternalInfoProviderNotIn(vs ...string) predicate.File
- func ExternalInfoProviderNotNil() predicate.File
- func HasMovie() predicate.File
- func HasMovieWith(preds ...predicate.Movie) predicate.File
- func ID(id int) predicate.File
- func IDEQ(id int) predicate.File
- func IDGT(id int) predicate.File
- func IDGTE(id int) predicate.File
- func IDIn(ids ...int) predicate.File
- func IDLT(id int) predicate.File
- func IDLTE(id int) predicate.File
- func IDNEQ(id int) predicate.File
- func IDNotIn(ids ...int) predicate.File
- func Name(v string) predicate.File
- func NameContains(v string) predicate.File
- func NameContainsFold(v string) predicate.File
- func NameEQ(v string) predicate.File
- func NameEqualFold(v string) predicate.File
- func NameGT(v string) predicate.File
- func NameGTE(v string) predicate.File
- func NameHasPrefix(v string) predicate.File
- func NameHasSuffix(v string) predicate.File
- func NameIn(vs ...string) predicate.File
- func NameLT(v string) predicate.File
- func NameLTE(v string) predicate.File
- func NameNEQ(v string) predicate.File
- func NameNotIn(vs ...string) predicate.File
- func Not(p predicate.File) predicate.File
- func Or(predicates ...predicate.File) predicate.File
- func Path(v string) predicate.File
- func PathContains(v string) predicate.File
- func PathContainsFold(v string) predicate.File
- func PathEQ(v string) predicate.File
- func PathEqualFold(v string) predicate.File
- func PathGT(v string) predicate.File
- func PathGTE(v string) predicate.File
- func PathHasPrefix(v string) predicate.File
- func PathHasSuffix(v string) predicate.File
- func PathIn(vs ...string) predicate.File
- func PathLT(v string) predicate.File
- func PathLTE(v string) predicate.File
- func PathNEQ(v string) predicate.File
- func PathNotIn(vs ...string) predicate.File
- func Results(v string) predicate.File
- func ResultsContains(v string) predicate.File
- func ResultsContainsFold(v string) predicate.File
- func ResultsEQ(v string) predicate.File
- func ResultsEqualFold(v string) predicate.File
- func ResultsGT(v string) predicate.File
- func ResultsGTE(v string) predicate.File
- func ResultsHasPrefix(v string) predicate.File
- func ResultsHasSuffix(v string) predicate.File
- func ResultsIn(vs ...string) predicate.File
- func ResultsIsNil() predicate.File
- func ResultsLT(v string) predicate.File
- func ResultsLTE(v string) predicate.File
- func ResultsNEQ(v string) predicate.File
- func ResultsNotIn(vs ...string) predicate.File
- func ResultsNotNil() predicate.File
- func Synced(v bool) predicate.File
- func SyncedEQ(v bool) predicate.File
- func SyncedNEQ(v bool) predicate.File
- func TypeEQ(v Type) predicate.File
- func TypeIn(vs ...Type) predicate.File
- func TypeNEQ(v Type) predicate.File
- func TypeNotIn(vs ...Type) predicate.File
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldName, FieldPath, FieldType, FieldExternalID, FieldExternalInfoProvider, FieldResults, FieldSynced, }
Columns holds all SQL columns for file fields.
var ( // DefaultSynced holds the default value on creation for the "synced" field. DefaultSynced bool )
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 ExternalID ¶
ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.
func ExternalIDContains ¶
ExternalIDContains applies the Contains predicate on the "external_id" field.
func ExternalIDContainsFold ¶
ExternalIDContainsFold applies the ContainsFold predicate on the "external_id" field.
func ExternalIDEQ ¶
ExternalIDEQ applies the EQ predicate on the "external_id" field.
func ExternalIDEqualFold ¶
ExternalIDEqualFold applies the EqualFold predicate on the "external_id" field.
func ExternalIDGT ¶
ExternalIDGT applies the GT predicate on the "external_id" field.
func ExternalIDGTE ¶
ExternalIDGTE applies the GTE predicate on the "external_id" field.
func ExternalIDHasPrefix ¶
ExternalIDHasPrefix applies the HasPrefix predicate on the "external_id" field.
func ExternalIDHasSuffix ¶
ExternalIDHasSuffix applies the HasSuffix predicate on the "external_id" field.
func ExternalIDIn ¶
ExternalIDIn applies the In predicate on the "external_id" field.
func ExternalIDIsNil ¶
ExternalIDIsNil applies the IsNil predicate on the "external_id" field.
func ExternalIDLT ¶
ExternalIDLT applies the LT predicate on the "external_id" field.
func ExternalIDLTE ¶
ExternalIDLTE applies the LTE predicate on the "external_id" field.
func ExternalIDNEQ ¶
ExternalIDNEQ applies the NEQ predicate on the "external_id" field.
func ExternalIDNotIn ¶
ExternalIDNotIn applies the NotIn predicate on the "external_id" field.
func ExternalIDNotNil ¶
ExternalIDNotNil applies the NotNil predicate on the "external_id" field.
func ExternalInfoProvider ¶
ExternalInfoProvider applies equality check predicate on the "external_info_provider" field. It's identical to ExternalInfoProviderEQ.
func ExternalInfoProviderContains ¶
ExternalInfoProviderContains applies the Contains predicate on the "external_info_provider" field.
func ExternalInfoProviderContainsFold ¶
ExternalInfoProviderContainsFold applies the ContainsFold predicate on the "external_info_provider" field.
func ExternalInfoProviderEQ ¶
ExternalInfoProviderEQ applies the EQ predicate on the "external_info_provider" field.
func ExternalInfoProviderEqualFold ¶
ExternalInfoProviderEqualFold applies the EqualFold predicate on the "external_info_provider" field.
func ExternalInfoProviderGT ¶
ExternalInfoProviderGT applies the GT predicate on the "external_info_provider" field.
func ExternalInfoProviderGTE ¶
ExternalInfoProviderGTE applies the GTE predicate on the "external_info_provider" field.
func ExternalInfoProviderHasPrefix ¶
ExternalInfoProviderHasPrefix applies the HasPrefix predicate on the "external_info_provider" field.
func ExternalInfoProviderHasSuffix ¶
ExternalInfoProviderHasSuffix applies the HasSuffix predicate on the "external_info_provider" field.
func ExternalInfoProviderIn ¶
ExternalInfoProviderIn applies the In predicate on the "external_info_provider" field.
func ExternalInfoProviderIsNil ¶
ExternalInfoProviderIsNil applies the IsNil predicate on the "external_info_provider" field.
func ExternalInfoProviderLT ¶
ExternalInfoProviderLT applies the LT predicate on the "external_info_provider" field.
func ExternalInfoProviderLTE ¶
ExternalInfoProviderLTE applies the LTE predicate on the "external_info_provider" field.
func ExternalInfoProviderNEQ ¶
ExternalInfoProviderNEQ applies the NEQ predicate on the "external_info_provider" field.
func ExternalInfoProviderNotIn ¶
ExternalInfoProviderNotIn applies the NotIn predicate on the "external_info_provider" field.
func ExternalInfoProviderNotNil ¶
ExternalInfoProviderNotNil applies the NotNil predicate on the "external_info_provider" field.
func HasMovieWith ¶
HasMovieWith applies the HasEdge predicate on the "movie" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func Results ¶
Results applies equality check predicate on the "results" field. It's identical to ResultsEQ.
func ResultsContains ¶
ResultsContains applies the Contains predicate on the "results" field.
func ResultsContainsFold ¶
ResultsContainsFold applies the ContainsFold predicate on the "results" field.
func ResultsEqualFold ¶
ResultsEqualFold applies the EqualFold predicate on the "results" field.
func ResultsGTE ¶
ResultsGTE applies the GTE predicate on the "results" field.
func ResultsHasPrefix ¶
ResultsHasPrefix applies the HasPrefix predicate on the "results" field.
func ResultsHasSuffix ¶
ResultsHasSuffix applies the HasSuffix predicate on the "results" field.
func ResultsIsNil ¶
ResultsIsNil applies the IsNil predicate on the "results" field.
func ResultsLTE ¶
ResultsLTE applies the LTE predicate on the "results" field.
func ResultsNEQ ¶
ResultsNEQ applies the NEQ predicate on the "results" field.
func ResultsNotIn ¶
ResultsNotIn applies the NotIn predicate on the "results" field.
func ResultsNotNil ¶
ResultsNotNil applies the NotNil predicate on the "results" field.
func Synced ¶
Synced applies equality check predicate on the "synced" field. It's identical to SyncedEQ.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).