Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Files) predicate.Files
- func HasSaves() predicate.Files
- func HasSavesWith(preds ...predicate.Saves) predicate.Files
- func Hash(v string) predicate.Files
- func HashContains(v string) predicate.Files
- func HashContainsFold(v string) predicate.Files
- func HashEQ(v string) predicate.Files
- func HashEqualFold(v string) predicate.Files
- func HashGT(v string) predicate.Files
- func HashGTE(v string) predicate.Files
- func HashHasPrefix(v string) predicate.Files
- func HashHasSuffix(v string) predicate.Files
- func HashIn(vs ...string) predicate.Files
- func HashLT(v string) predicate.Files
- func HashLTE(v string) predicate.Files
- func HashNEQ(v string) predicate.Files
- func HashNotIn(vs ...string) predicate.Files
- func ID(id uint64) predicate.Files
- func IDEQ(id uint64) predicate.Files
- func IDGT(id uint64) predicate.Files
- func IDGTE(id uint64) predicate.Files
- func IDIn(ids ...uint64) predicate.Files
- func IDLT(id uint64) predicate.Files
- func IDLTE(id uint64) predicate.Files
- func IDNEQ(id uint64) predicate.Files
- func IDNotIn(ids ...uint64) predicate.Files
- func Name(v string) predicate.Files
- func NameContains(v string) predicate.Files
- func NameContainsFold(v string) predicate.Files
- func NameEQ(v string) predicate.Files
- func NameEqualFold(v string) predicate.Files
- func NameGT(v string) predicate.Files
- func NameGTE(v string) predicate.Files
- func NameHasPrefix(v string) predicate.Files
- func NameHasSuffix(v string) predicate.Files
- func NameIn(vs ...string) predicate.Files
- func NameLT(v string) predicate.Files
- func NameLTE(v string) predicate.Files
- func NameNEQ(v string) predicate.Files
- func NameNotIn(vs ...string) predicate.Files
- func Not(p predicate.Files) predicate.Files
- func Or(predicates ...predicate.Files) predicate.Files
- func Size(v uint64) predicate.Files
- func SizeEQ(v uint64) predicate.Files
- func SizeGT(v uint64) predicate.Files
- func SizeGTE(v uint64) predicate.Files
- func SizeIn(vs ...uint64) predicate.Files
- func SizeLT(v uint64) predicate.Files
- func SizeLTE(v uint64) predicate.Files
- func SizeNEQ(v uint64) predicate.Files
- func SizeNotIn(vs ...uint64) predicate.Files
- func ValidColumn(column string) bool
- type OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySaves(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySavesCount(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the files type in the database. Label = "files" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // EdgeSaves holds the string denoting the saves edge name in mutations. EdgeSaves = "saves" // Table holds the table name of the files in the database. Table = "files" // SavesTable is the table that holds the saves relation/edge. SavesTable = "saves" // SavesInverseTable is the table name for the Saves entity. // It exists in this package in order to avoid circular dependency with the "saves" package. SavesInverseTable = "saves" // SavesColumn is the table column denoting the saves relation/edge. SavesColumn = "files_saves" )
Variables ¶
Columns holds all SQL columns for files fields.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func HasSavesWith ¶
HasSavesWith applies the HasEdge predicate on the "saves" 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 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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Files queries.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySaves ¶
func BySaves(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySaves orders the results by saves terms.
func BySavesCount ¶
func BySavesCount(opts ...sql.OrderTermOption) OrderOption
BySavesCount orders the results by saves count.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.