Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func Content(v []byte) predicate.File
- func ContentEQ(v []byte) predicate.File
- func ContentGT(v []byte) predicate.File
- func ContentGTE(v []byte) predicate.File
- func ContentIn(vs ...[]byte) predicate.File
- func ContentLT(v []byte) predicate.File
- func ContentLTE(v []byte) predicate.File
- func ContentNEQ(v []byte) predicate.File
- func ContentNotIn(vs ...[]byte) predicate.File
- func ContentType(v string) predicate.File
- func ContentTypeContains(v string) predicate.File
- func ContentTypeContainsFold(v string) predicate.File
- func ContentTypeEQ(v string) predicate.File
- func ContentTypeEqualFold(v string) predicate.File
- func ContentTypeGT(v string) predicate.File
- func ContentTypeGTE(v string) predicate.File
- func ContentTypeHasPrefix(v string) predicate.File
- func ContentTypeHasSuffix(v string) predicate.File
- func ContentTypeIn(vs ...string) predicate.File
- func ContentTypeLT(v string) predicate.File
- func ContentTypeLTE(v string) predicate.File
- func ContentTypeNEQ(v string) predicate.File
- func ContentTypeNotIn(vs ...string) predicate.File
- func CreationTime(v time.Time) predicate.File
- func CreationTimeEQ(v time.Time) predicate.File
- func CreationTimeGT(v time.Time) predicate.File
- func CreationTimeGTE(v time.Time) predicate.File
- func CreationTimeIn(vs ...time.Time) predicate.File
- func CreationTimeLT(v time.Time) predicate.File
- func CreationTimeLTE(v time.Time) predicate.File
- func CreationTimeNEQ(v time.Time) predicate.File
- func CreationTimeNotIn(vs ...time.Time) predicate.File
- func HasLinks() predicate.File
- func HasLinksWith(preds ...predicate.Link) predicate.File
- func Hash(v string) predicate.File
- func HashContains(v string) predicate.File
- func HashContainsFold(v string) predicate.File
- func HashEQ(v string) predicate.File
- func HashEqualFold(v string) predicate.File
- func HashGT(v string) predicate.File
- func HashGTE(v string) predicate.File
- func HashHasPrefix(v string) predicate.File
- func HashHasSuffix(v string) predicate.File
- func HashIn(vs ...string) predicate.File
- func HashLT(v string) predicate.File
- func HashLTE(v string) predicate.File
- func HashNEQ(v string) predicate.File
- func HashNotIn(vs ...string) 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 LastModifiedTime(v time.Time) predicate.File
- func LastModifiedTimeEQ(v time.Time) predicate.File
- func LastModifiedTimeGT(v time.Time) predicate.File
- func LastModifiedTimeGTE(v time.Time) predicate.File
- func LastModifiedTimeIn(vs ...time.Time) predicate.File
- func LastModifiedTimeLT(v time.Time) predicate.File
- func LastModifiedTimeLTE(v time.Time) predicate.File
- func LastModifiedTimeNEQ(v time.Time) predicate.File
- func LastModifiedTimeNotIn(vs ...time.Time) 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 Size(v int) predicate.File
- func SizeEQ(v int) predicate.File
- func SizeGT(v int) predicate.File
- func SizeGTE(v int) predicate.File
- func SizeIn(vs ...int) predicate.File
- func SizeLT(v int) predicate.File
- func SizeLTE(v int) predicate.File
- func SizeNEQ(v int) predicate.File
- func SizeNotIn(vs ...int) predicate.File
- func ValidColumn(column string) bool
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" // FieldCreationTime holds the string denoting the creationtime field in the database. FieldCreationTime = "creation_time" // FieldLastModifiedTime holds the string denoting the lastmodifiedtime field in the database. FieldLastModifiedTime = "last_modified_time" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldContentType holds the string denoting the contenttype field in the database. FieldContentType = "content_type" // EdgeLinks holds the string denoting the links edge name in mutations. EdgeLinks = "links" // Table holds the table name of the file in the database. Table = "files" // LinksTable is the table that holds the links relation/edge. LinksTable = "links" // LinksInverseTable is the table name for the Link entity. // It exists in this package in order to avoid circular dependency with the "link" package. LinksInverseTable = "links" // LinksColumn is the table column denoting the links relation/edge. LinksColumn = "file_links" )
Variables ¶
var ( // NameValidator is a validator for the "Name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreationTime holds the default value on creation for the "CreationTime" field. DefaultCreationTime func() time.Time // DefaultSize holds the default value on creation for the "Size" field. DefaultSize int // SizeValidator is a validator for the "Size" field. It is called by the builders before save. SizeValidator func(int) error // HashValidator is a validator for the "Hash" field. It is called by the builders before save. HashValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldCreationTime, FieldLastModifiedTime, FieldSize, FieldContent, FieldHash, FieldContentType, }
Columns holds all SQL columns for file fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "Content" field. It's identical to ContentEQ.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "Content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "Content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "Content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "Content" field.
func ContentType ¶
ContentType applies equality check predicate on the "ContentType" field. It's identical to ContentTypeEQ.
func ContentTypeContains ¶
ContentTypeContains applies the Contains predicate on the "ContentType" field.
func ContentTypeContainsFold ¶
ContentTypeContainsFold applies the ContainsFold predicate on the "ContentType" field.
func ContentTypeEQ ¶
ContentTypeEQ applies the EQ predicate on the "ContentType" field.
func ContentTypeEqualFold ¶
ContentTypeEqualFold applies the EqualFold predicate on the "ContentType" field.
func ContentTypeGT ¶
ContentTypeGT applies the GT predicate on the "ContentType" field.
func ContentTypeGTE ¶
ContentTypeGTE applies the GTE predicate on the "ContentType" field.
func ContentTypeHasPrefix ¶
ContentTypeHasPrefix applies the HasPrefix predicate on the "ContentType" field.
func ContentTypeHasSuffix ¶
ContentTypeHasSuffix applies the HasSuffix predicate on the "ContentType" field.
func ContentTypeIn ¶
ContentTypeIn applies the In predicate on the "ContentType" field.
func ContentTypeLT ¶
ContentTypeLT applies the LT predicate on the "ContentType" field.
func ContentTypeLTE ¶
ContentTypeLTE applies the LTE predicate on the "ContentType" field.
func ContentTypeNEQ ¶
ContentTypeNEQ applies the NEQ predicate on the "ContentType" field.
func ContentTypeNotIn ¶
ContentTypeNotIn applies the NotIn predicate on the "ContentType" field.
func CreationTime ¶
CreationTime applies equality check predicate on the "CreationTime" field. It's identical to CreationTimeEQ.
func CreationTimeEQ ¶
CreationTimeEQ applies the EQ predicate on the "CreationTime" field.
func CreationTimeGT ¶
CreationTimeGT applies the GT predicate on the "CreationTime" field.
func CreationTimeGTE ¶
CreationTimeGTE applies the GTE predicate on the "CreationTime" field.
func CreationTimeIn ¶
CreationTimeIn applies the In predicate on the "CreationTime" field.
func CreationTimeLT ¶
CreationTimeLT applies the LT predicate on the "CreationTime" field.
func CreationTimeLTE ¶
CreationTimeLTE applies the LTE predicate on the "CreationTime" field.
func CreationTimeNEQ ¶
CreationTimeNEQ applies the NEQ predicate on the "CreationTime" field.
func CreationTimeNotIn ¶
CreationTimeNotIn applies the NotIn predicate on the "CreationTime" field.
func HasLinksWith ¶
HasLinksWith applies the HasEdge predicate on the "links" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "Hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "Hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "Hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "Hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "Hash" field.
func LastModifiedTime ¶
LastModifiedTime applies equality check predicate on the "LastModifiedTime" field. It's identical to LastModifiedTimeEQ.
func LastModifiedTimeEQ ¶
LastModifiedTimeEQ applies the EQ predicate on the "LastModifiedTime" field.
func LastModifiedTimeGT ¶
LastModifiedTimeGT applies the GT predicate on the "LastModifiedTime" field.
func LastModifiedTimeGTE ¶
LastModifiedTimeGTE applies the GTE predicate on the "LastModifiedTime" field.
func LastModifiedTimeIn ¶
LastModifiedTimeIn applies the In predicate on the "LastModifiedTime" field.
func LastModifiedTimeLT ¶
LastModifiedTimeLT applies the LT predicate on the "LastModifiedTime" field.
func LastModifiedTimeLTE ¶
LastModifiedTimeLTE applies the LTE predicate on the "LastModifiedTime" field.
func LastModifiedTimeNEQ ¶
LastModifiedTimeNEQ applies the NEQ predicate on the "LastModifiedTime" field.
func LastModifiedTimeNotIn ¶
LastModifiedTimeNotIn applies the NotIn predicate on the "LastModifiedTime" field.
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 ValidColumn ¶ added in v0.4.3
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.