ent: github.com/facebookincubator/ent/entc/integration/ent/file Index | Files

package file

import "github.com/facebookincubator/ent/entc/integration/ent/file"

Index

Package Files

file.go where.go

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"
    // FieldSize holds the string denoting the size vertex property in the database.
    FieldSize = "fsize"
    // FieldName holds the string denoting the name vertex property in the database.
    FieldName = "name"
    // FieldUser holds the string denoting the user vertex property in the database.
    FieldUser = "user"
    // FieldGroup holds the string denoting the group vertex property in the database.
    FieldGroup = "group"

    // Table holds the table name of the file in the database.
    Table = "files"
    // OwnerTable is the table the holds the owner relation/edge.
    OwnerTable = "files"
    // OwnerInverseTable is the table name for the User entity.
    // It exists in this package in order to avoid circular dependency with the "user" package.
    OwnerInverseTable = "users"
    // OwnerColumn is the table column denoting the owner relation/edge.
    OwnerColumn = "owner_id"
    // TypeTable is the table the holds the type relation/edge.
    TypeTable = "files"
    // TypeInverseTable is the table name for the FileType entity.
    // It exists in this package in order to avoid circular dependency with the "filetype" package.
    TypeInverseTable = "file_types"
    // TypeColumn is the table column denoting the type relation/edge.
    TypeColumn = "type_id"

    // OwnerInverseLabel holds the string label denoting the owner inverse edge type in the database.
    OwnerInverseLabel = "user_files"
    // TypeInverseLabel holds the string label denoting the type inverse edge type in the database.
    TypeInverseLabel = "file_type_files"
)

Variables

var (

    // DefaultSize holds the default value on creation for the size field.
    DefaultSize = descSize.Default.(int)
    // SizeValidator is a validator for the "size" field. It is called by the builders before save.
    SizeValidator = descSize.Validators[0].(func(int) error)
)
var Columns = []string{
    FieldID,
    FieldSize,
    FieldName,
    FieldUser,
    FieldGroup,
}

Columns holds all SQL columns are file fields.

func And Uses

func And(predicates ...predicate.File) predicate.File

And groups list of predicates with the AND operator between them.

func Group Uses

func Group(v string) predicate.File

Group applies equality check predicate on the "group" field. It's identical to GroupEQ.

func GroupContains Uses

func GroupContains(v string) predicate.File

GroupContains applies the Contains predicate on the "group" field.

func GroupEQ Uses

func GroupEQ(v string) predicate.File

GroupEQ applies the EQ predicate on the "group" field.

func GroupGT Uses

func GroupGT(v string) predicate.File

GroupGT applies the GT predicate on the "group" field.

func GroupGTE Uses

func GroupGTE(v string) predicate.File

GroupGTE applies the GTE predicate on the "group" field.

func GroupHasPrefix Uses

func GroupHasPrefix(v string) predicate.File

GroupHasPrefix applies the HasPrefix predicate on the "group" field.

func GroupHasSuffix Uses

func GroupHasSuffix(v string) predicate.File

GroupHasSuffix applies the HasSuffix predicate on the "group" field.

func GroupIn Uses

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

GroupIn applies the In predicate on the "group" field.

func GroupIsNil Uses

func GroupIsNil() predicate.File

GroupIsNil applies the IsNil predicate on the "group" field.

func GroupLT Uses

func GroupLT(v string) predicate.File

GroupLT applies the LT predicate on the "group" field.

func GroupLTE Uses

func GroupLTE(v string) predicate.File

GroupLTE applies the LTE predicate on the "group" field.

func GroupNEQ Uses

func GroupNEQ(v string) predicate.File

GroupNEQ applies the NEQ predicate on the "group" field.

func GroupNotIn Uses

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

GroupNotIn applies the NotIn predicate on the "group" field.

func GroupNotNil Uses

func GroupNotNil() predicate.File

GroupNotNil applies the NotNil predicate on the "group" field.

func HasOwner Uses

func HasOwner() predicate.File

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith Uses

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

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

func HasType Uses

func HasType() predicate.File

HasType applies the HasEdge predicate on the "type" edge.

func HasTypeWith Uses

func HasTypeWith(preds ...predicate.FileType) predicate.File

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

func ID Uses

func ID(id string) predicate.File

ID filters vertices based on their identifier.

func IDEQ Uses

func IDEQ(id string) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDGT Uses

func IDGT(id string) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE Uses

func IDGTE(id string) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn Uses

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

IDIn applies the In predicate on the ID field.

func IDLT Uses

func IDLT(id string) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE Uses

func IDLTE(id string) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ Uses

func IDNEQ(id string) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn Uses

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

IDNotIn applies the NotIn predicate on the ID field.

func Name Uses

func Name(v string) predicate.File

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

func NameContains Uses

func NameContains(v string) predicate.File

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

func NameEQ Uses

func NameEQ(v string) predicate.File

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

func NameGT Uses

func NameGT(v string) predicate.File

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

func NameGTE Uses

func NameGTE(v string) predicate.File

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

func NameHasPrefix Uses

func NameHasPrefix(v string) predicate.File

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

func NameHasSuffix Uses

func NameHasSuffix(v string) predicate.File

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

func NameIn Uses

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

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

func NameLT Uses

func NameLT(v string) predicate.File

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

func NameLTE Uses

func NameLTE(v string) predicate.File

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

func NameNEQ Uses

func NameNEQ(v string) predicate.File

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

func NameNotIn Uses

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

NameNotIn applies the NotIn predicate on the "name" field.

func Not Uses

func Not(p predicate.File) predicate.File

Not applies the not operator on the given predicate.

func Or Uses

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

Or groups list of predicates with the OR operator between them.

func Size Uses

func Size(v int) predicate.File

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ Uses

func SizeEQ(v int) predicate.File

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT Uses

func SizeGT(v int) predicate.File

SizeGT applies the GT predicate on the "size" field.

func SizeGTE Uses

func SizeGTE(v int) predicate.File

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn Uses

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

SizeIn applies the In predicate on the "size" field.

func SizeLT Uses

func SizeLT(v int) predicate.File

SizeLT applies the LT predicate on the "size" field.

func SizeLTE Uses

func SizeLTE(v int) predicate.File

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ Uses

func SizeNEQ(v int) predicate.File

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn Uses

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

SizeNotIn applies the NotIn predicate on the "size" field.

func User Uses

func User(v string) predicate.File

User applies equality check predicate on the "user" field. It's identical to UserEQ.

func UserContains Uses

func UserContains(v string) predicate.File

UserContains applies the Contains predicate on the "user" field.

func UserEQ Uses

func UserEQ(v string) predicate.File

UserEQ applies the EQ predicate on the "user" field.

func UserGT Uses

func UserGT(v string) predicate.File

UserGT applies the GT predicate on the "user" field.

func UserGTE Uses

func UserGTE(v string) predicate.File

UserGTE applies the GTE predicate on the "user" field.

func UserHasPrefix Uses

func UserHasPrefix(v string) predicate.File

UserHasPrefix applies the HasPrefix predicate on the "user" field.

func UserHasSuffix Uses

func UserHasSuffix(v string) predicate.File

UserHasSuffix applies the HasSuffix predicate on the "user" field.

func UserIn Uses

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

UserIn applies the In predicate on the "user" field.

func UserIsNil Uses

func UserIsNil() predicate.File

UserIsNil applies the IsNil predicate on the "user" field.

func UserLT Uses

func UserLT(v string) predicate.File

UserLT applies the LT predicate on the "user" field.

func UserLTE Uses

func UserLTE(v string) predicate.File

UserLTE applies the LTE predicate on the "user" field.

func UserNEQ Uses

func UserNEQ(v string) predicate.File

UserNEQ applies the NEQ predicate on the "user" field.

func UserNotIn Uses

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

UserNotIn applies the NotIn predicate on the "user" field.

func UserNotNil Uses

func UserNotNil() predicate.File

UserNotNil applies the NotNil predicate on the "user" field.

Package file imports 7 packages (graph) and is imported by 2 packages. Updated 2019-11-19. Refresh now. Tools for package owners.