Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func HasUser() predicate.File
- func HasUserWith(preds ...predicate.User) 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 uuid.UUID) predicate.File
- func IDEQ(id uuid.UUID) predicate.File
- func IDGT(id uuid.UUID) predicate.File
- func IDGTE(id uuid.UUID) predicate.File
- func IDIn(ids ...uuid.UUID) predicate.File
- func IDLT(id uuid.UUID) predicate.File
- func IDLTE(id uuid.UUID) predicate.File
- func IDNEQ(id uuid.UUID) predicate.File
- func IDNotIn(ids ...uuid.UUID) predicate.File
- func MetadataIsNil() predicate.File
- func MetadataNotNil() predicate.File
- func Not(p predicate.File) predicate.File
- func Or(predicates ...predicate.File) predicate.File
- func PinnedAt(v time.Time) predicate.File
- func PinnedAtEQ(v time.Time) predicate.File
- func PinnedAtGT(v time.Time) predicate.File
- func PinnedAtGTE(v time.Time) predicate.File
- func PinnedAtIn(vs ...time.Time) predicate.File
- func PinnedAtLT(v time.Time) predicate.File
- func PinnedAtLTE(v time.Time) predicate.File
- func PinnedAtNEQ(v time.Time) predicate.File
- func PinnedAtNotIn(vs ...time.Time) predicate.File
- func Size(v int64) predicate.File
- func SizeEQ(v int64) predicate.File
- func SizeGT(v int64) predicate.File
- func SizeGTE(v int64) predicate.File
- func SizeIn(vs ...int64) predicate.File
- func SizeLT(v int64) predicate.File
- func SizeLTE(v int64) predicate.File
- func SizeNEQ(v int64) predicate.File
- func SizeNotIn(vs ...int64) predicate.File
- func UnpinnedAt(v time.Time) predicate.File
- func UnpinnedAtEQ(v time.Time) predicate.File
- func UnpinnedAtGT(v time.Time) predicate.File
- func UnpinnedAtGTE(v time.Time) predicate.File
- func UnpinnedAtIn(vs ...time.Time) predicate.File
- func UnpinnedAtLT(v time.Time) predicate.File
- func UnpinnedAtLTE(v time.Time) predicate.File
- func UnpinnedAtNEQ(v time.Time) predicate.File
- func UnpinnedAtNotIn(vs ...time.Time) predicate.File
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" // FieldHash holds the string denoting the hash vertex property in the database. FieldHash = "hash" // FieldSize holds the string denoting the size vertex property in the database. FieldSize = "size" // FieldPinnedAt holds the string denoting the pinned_at vertex property in the database. FieldPinnedAt = "pinned_at" // FieldUnpinnedAt holds the string denoting the unpinned_at vertex property in the database. FieldUnpinnedAt = "unpinned_at" // FieldMetadata holds the string denoting the metadata vertex property in the database. FieldMetadata = "metadata" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the file in the database. Table = "files" // UserTable is the table the holds the user relation/edge. UserTable = "files" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_files" )
Variables ¶
var ( // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error // SizeValidator is a validator for the "size" field. It is called by the builders before save. SizeValidator func(int64) error // DefaultPinnedAt holds the default value on creation for the pinned_at field. DefaultPinnedAt func() time.Time )
var Columns = []string{ FieldID, FieldHash, FieldSize, FieldPinnedAt, FieldUnpinnedAt, FieldMetadata, }
Columns holds all SQL columns for file fields.
var ForeignKeys = []string{
"user_files",
}
ForeignKeys holds the SQL foreign-keys that are owned by the File type.
Functions ¶
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" 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 MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func PinnedAt ¶
PinnedAt applies equality check predicate on the "pinned_at" field. It's identical to PinnedAtEQ.
func PinnedAtEQ ¶
PinnedAtEQ applies the EQ predicate on the "pinned_at" field.
func PinnedAtGT ¶
PinnedAtGT applies the GT predicate on the "pinned_at" field.
func PinnedAtGTE ¶
PinnedAtGTE applies the GTE predicate on the "pinned_at" field.
func PinnedAtIn ¶
PinnedAtIn applies the In predicate on the "pinned_at" field.
func PinnedAtLT ¶
PinnedAtLT applies the LT predicate on the "pinned_at" field.
func PinnedAtLTE ¶
PinnedAtLTE applies the LTE predicate on the "pinned_at" field.
func PinnedAtNEQ ¶
PinnedAtNEQ applies the NEQ predicate on the "pinned_at" field.
func PinnedAtNotIn ¶
PinnedAtNotIn applies the NotIn predicate on the "pinned_at" field.
func UnpinnedAt ¶
UnpinnedAt applies equality check predicate on the "unpinned_at" field. It's identical to UnpinnedAtEQ.
func UnpinnedAtEQ ¶
UnpinnedAtEQ applies the EQ predicate on the "unpinned_at" field.
func UnpinnedAtGT ¶
UnpinnedAtGT applies the GT predicate on the "unpinned_at" field.
func UnpinnedAtGTE ¶
UnpinnedAtGTE applies the GTE predicate on the "unpinned_at" field.
func UnpinnedAtIn ¶
UnpinnedAtIn applies the In predicate on the "unpinned_at" field.
func UnpinnedAtLT ¶
UnpinnedAtLT applies the LT predicate on the "unpinned_at" field.
func UnpinnedAtLTE ¶
UnpinnedAtLTE applies the LTE predicate on the "unpinned_at" field.
func UnpinnedAtNEQ ¶
UnpinnedAtNEQ applies the NEQ predicate on the "unpinned_at" field.
Types ¶
This section is empty.