Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func CreatedAt(v time.Time) predicate.File
- func CreatedAtEQ(v time.Time) predicate.File
- func CreatedAtGT(v time.Time) predicate.File
- func CreatedAtGTE(v time.Time) predicate.File
- func CreatedAtIn(vs ...time.Time) predicate.File
- func CreatedAtLT(v time.Time) predicate.File
- func CreatedAtLTE(v time.Time) predicate.File
- func CreatedAtNEQ(v time.Time) predicate.File
- func CreatedAtNotIn(vs ...time.Time) predicate.File
- func DeletedAt(v time.Time) predicate.File
- func DeletedAtEQ(v time.Time) predicate.File
- func DeletedAtGT(v time.Time) predicate.File
- func DeletedAtGTE(v time.Time) predicate.File
- func DeletedAtIn(vs ...time.Time) predicate.File
- func DeletedAtIsNil() predicate.File
- func DeletedAtLT(v time.Time) predicate.File
- func DeletedAtLTE(v time.Time) predicate.File
- func DeletedAtNEQ(v time.Time) predicate.File
- func DeletedAtNotIn(vs ...time.Time) predicate.File
- func DeletedAtNotNil() predicate.File
- func Disk(v string) predicate.File
- func DiskContains(v string) predicate.File
- func DiskContainsFold(v string) predicate.File
- func DiskEQ(v string) predicate.File
- func DiskEqualFold(v string) predicate.File
- func DiskGT(v string) predicate.File
- func DiskGTE(v string) predicate.File
- func DiskHasPrefix(v string) predicate.File
- func DiskHasSuffix(v string) predicate.File
- func DiskIn(vs ...string) predicate.File
- func DiskLT(v string) predicate.File
- func DiskLTE(v string) predicate.File
- func DiskNEQ(v string) predicate.File
- func DiskNotIn(vs ...string) predicate.File
- func HasPages() predicate.File
- func HasPagesWith(preds ...predicate.Page) predicate.File
- func HasPosts() predicate.File
- func HasPostsWith(preds ...predicate.Post) predicate.File
- func HasUser() predicate.File
- func HasUserAvatars() predicate.File
- func HasUserAvatarsWith(preds ...predicate.User) predicate.File
- func HasUserWith(preds ...predicate.User) 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 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 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 Type(v string) predicate.File
- func TypeContains(v string) predicate.File
- func TypeContainsFold(v string) predicate.File
- func TypeEQ(v string) predicate.File
- func TypeEqualFold(v string) predicate.File
- func TypeGT(v string) predicate.File
- func TypeGTE(v string) predicate.File
- func TypeHasPrefix(v string) predicate.File
- func TypeHasSuffix(v string) predicate.File
- func TypeIn(vs ...string) predicate.File
- func TypeLT(v string) predicate.File
- func TypeLTE(v string) predicate.File
- func TypeNEQ(v string) predicate.File
- func TypeNotIn(vs ...string) predicate.File
- func UpdatedAt(v time.Time) predicate.File
- func UpdatedAtEQ(v time.Time) predicate.File
- func UpdatedAtGT(v time.Time) predicate.File
- func UpdatedAtGTE(v time.Time) predicate.File
- func UpdatedAtIn(vs ...time.Time) predicate.File
- func UpdatedAtLT(v time.Time) predicate.File
- func UpdatedAtLTE(v time.Time) predicate.File
- func UpdatedAtNEQ(v time.Time) predicate.File
- func UpdatedAtNotIn(vs ...time.Time) predicate.File
- func UserID(v int) predicate.File
- func UserIDEQ(v int) predicate.File
- func UserIDIn(vs ...int) predicate.File
- func UserIDIsNil() predicate.File
- func UserIDNEQ(v int) predicate.File
- func UserIDNotIn(vs ...int) predicate.File
- func UserIDNotNil() 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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDisk holds the string denoting the disk field in the database. FieldDisk = "disk" // 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" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // EdgePages holds the string denoting the pages edge name in mutations. EdgePages = "pages" // EdgeUserAvatars holds the string denoting the user_avatars edge name in mutations. EdgeUserAvatars = "user_avatars" // Table holds the table name of the file in the database. Table = "files" // UserTable is the table that 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_id" // PostsTable is the table that holds the posts relation/edge. PostsTable = "posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostsInverseTable = "posts" // PostsColumn is the table column denoting the posts relation/edge. PostsColumn = "featured_image_id" // PagesTable is the table that holds the pages relation/edge. PagesTable = "pages" // PagesInverseTable is the table name for the Page entity. // It exists in this package in order to avoid circular dependency with the "page" package. PagesInverseTable = "pages" // PagesColumn is the table column denoting the pages relation/edge. PagesColumn = "featured_image_id" // UserAvatarsTable is the table that holds the user_avatars relation/edge. UserAvatarsTable = "users" // UserAvatarsInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserAvatarsInverseTable = "users" // UserAvatarsColumn is the table column denoting the user_avatars relation/edge. UserAvatarsColumn = "avatar_image_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldDisk, FieldPath, FieldType, FieldSize, FieldUserID, }
Columns holds all SQL columns for file fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DiskContains ¶
DiskContains applies the Contains predicate on the "disk" field.
func DiskContainsFold ¶
DiskContainsFold applies the ContainsFold predicate on the "disk" field.
func DiskEqualFold ¶
DiskEqualFold applies the EqualFold predicate on the "disk" field.
func DiskHasPrefix ¶
DiskHasPrefix applies the HasPrefix predicate on the "disk" field.
func DiskHasSuffix ¶
DiskHasSuffix applies the HasSuffix predicate on the "disk" field.
func HasPagesWith ¶
HasPagesWith applies the HasEdge predicate on the "pages" edge with a given conditions (other predicates).
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
func HasUserAvatars ¶
HasUserAvatars applies the HasEdge predicate on the "user_avatars" edge.
func HasUserAvatarsWith ¶
HasUserAvatarsWith applies the HasEdge predicate on the "user_avatars" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
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 TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDIsNil ¶
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
UserIDNotNil applies the NotNil predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.