Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func Caption(v string) predicate.File
- func CaptionContains(v string) predicate.File
- func CaptionContainsFold(v string) predicate.File
- func CaptionEQ(v string) predicate.File
- func CaptionEqualFold(v string) predicate.File
- func CaptionGT(v string) predicate.File
- func CaptionGTE(v string) predicate.File
- func CaptionHasPrefix(v string) predicate.File
- func CaptionHasSuffix(v string) predicate.File
- func CaptionIn(vs ...string) predicate.File
- func CaptionIsNil() predicate.File
- func CaptionLT(v string) predicate.File
- func CaptionLTE(v string) predicate.File
- func CaptionNEQ(v string) predicate.File
- func CaptionNotIn(vs ...string) predicate.File
- func CaptionNotNil() 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 CreatedAtIsNil() 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 CreatedAtNotNil() predicate.File
- func HasAdminCreatedBy() predicate.File
- func HasAdminCreatedByWith(preds ...predicate.AdminUser) predicate.File
- func HasAdminUpdatedBy() predicate.File
- func HasAdminUpdatedByWith(preds ...predicate.AdminUser) predicate.File
- func HasCreatedBy() predicate.File
- func HasCreatedByWith(preds ...predicate.User) predicate.File
- func HasUpdatedBy() predicate.File
- func HasUpdatedByWith(preds ...predicate.User) predicate.File
- func ID(id string) predicate.File
- func IDContainsFold(id string) predicate.File
- func IDEQ(id string) predicate.File
- func IDEqualFold(id string) predicate.File
- func IDGT(id string) predicate.File
- func IDGTE(id string) predicate.File
- func IDIn(ids ...string) predicate.File
- func IDLT(id string) predicate.File
- func IDLTE(id string) predicate.File
- func IDNEQ(id string) predicate.File
- func IDNotIn(ids ...string) predicate.File
- func MimeType(v string) predicate.File
- func MimeTypeContains(v string) predicate.File
- func MimeTypeContainsFold(v string) predicate.File
- func MimeTypeEQ(v string) predicate.File
- func MimeTypeEqualFold(v string) predicate.File
- func MimeTypeGT(v string) predicate.File
- func MimeTypeGTE(v string) predicate.File
- func MimeTypeHasPrefix(v string) predicate.File
- func MimeTypeHasSuffix(v string) predicate.File
- func MimeTypeIn(vs ...string) predicate.File
- func MimeTypeLT(v string) predicate.File
- func MimeTypeLTE(v string) predicate.File
- func MimeTypeNEQ(v string) predicate.File
- func MimeTypeNotIn(vs ...string) 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 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 StorageFileName(v string) predicate.File
- func StorageFileNameContains(v string) predicate.File
- func StorageFileNameContainsFold(v string) predicate.File
- func StorageFileNameEQ(v string) predicate.File
- func StorageFileNameEqualFold(v string) predicate.File
- func StorageFileNameGT(v string) predicate.File
- func StorageFileNameGTE(v string) predicate.File
- func StorageFileNameHasPrefix(v string) predicate.File
- func StorageFileNameHasSuffix(v string) predicate.File
- func StorageFileNameIn(vs ...string) predicate.File
- func StorageFileNameLT(v string) predicate.File
- func StorageFileNameLTE(v string) predicate.File
- func StorageFileNameNEQ(v string) predicate.File
- func StorageFileNameNotIn(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 UpdatedAtIsNil() 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 UpdatedAtNotNil() predicate.File
- func ValidColumn(column string) bool
- type OrderOption
- func ByAdminCreatedByField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAdminUpdatedByField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCaption(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMimeType(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByStorageFileName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedByField(field string, opts ...sql.OrderTermOption) OrderOption
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" // FieldCaption holds the string denoting the caption field in the database. FieldCaption = "caption" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldMimeType holds the string denoting the mime_type field in the database. FieldMimeType = "mime_type" // FieldStorageFileName holds the string denoting the storage_file_name field in the database. FieldStorageFileName = "storage_file_name" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // EdgeAdminCreatedBy holds the string denoting the admin_created_by edge name in mutations. EdgeAdminCreatedBy = "admin_created_by" // EdgeAdminUpdatedBy holds the string denoting the admin_updated_by edge name in mutations. EdgeAdminUpdatedBy = "admin_updated_by" // EdgeCreatedBy holds the string denoting the created_by edge name in mutations. EdgeCreatedBy = "created_by" // EdgeUpdatedBy holds the string denoting the updated_by edge name in mutations. EdgeUpdatedBy = "updated_by" // Table holds the table name of the file in the database. Table = "files" // AdminCreatedByTable is the table that holds the admin_created_by relation/edge. AdminCreatedByTable = "files" // AdminCreatedByInverseTable is the table name for the AdminUser entity. // It exists in this package in order to avoid circular dependency with the "adminuser" package. AdminCreatedByInverseTable = "admin_users" // AdminCreatedByColumn is the table column denoting the admin_created_by relation/edge. AdminCreatedByColumn = "file_admin_created_by" // AdminUpdatedByTable is the table that holds the admin_updated_by relation/edge. AdminUpdatedByTable = "files" // AdminUpdatedByInverseTable is the table name for the AdminUser entity. // It exists in this package in order to avoid circular dependency with the "adminuser" package. AdminUpdatedByInverseTable = "admin_users" // AdminUpdatedByColumn is the table column denoting the admin_updated_by relation/edge. AdminUpdatedByColumn = "file_admin_updated_by" // CreatedByTable is the table that holds the created_by relation/edge. CreatedByTable = "files" // CreatedByInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatedByInverseTable = "users" // CreatedByColumn is the table column denoting the created_by relation/edge. CreatedByColumn = "file_created_by" // UpdatedByTable is the table that holds the updated_by relation/edge. UpdatedByTable = "files" // UpdatedByInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UpdatedByInverseTable = "users" // UpdatedByColumn is the table column denoting the updated_by relation/edge. UpdatedByColumn = "file_updated_by" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCaption, FieldName, FieldMimeType, FieldStorageFileName, FieldSize, }
Columns holds all SQL columns for file fields.
var ForeignKeys = []string{
"file_admin_created_by",
"file_admin_updated_by",
"file_created_by",
"file_updated_by",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "files" table and are not defined as standalone fields in the schema.
Functions ¶
func Caption ¶
Caption applies equality check predicate on the "caption" field. It's identical to CaptionEQ.
func CaptionContains ¶
CaptionContains applies the Contains predicate on the "caption" field.
func CaptionContainsFold ¶
CaptionContainsFold applies the ContainsFold predicate on the "caption" field.
func CaptionEqualFold ¶
CaptionEqualFold applies the EqualFold predicate on the "caption" field.
func CaptionGTE ¶
CaptionGTE applies the GTE predicate on the "caption" field.
func CaptionHasPrefix ¶
CaptionHasPrefix applies the HasPrefix predicate on the "caption" field.
func CaptionHasSuffix ¶
CaptionHasSuffix applies the HasSuffix predicate on the "caption" field.
func CaptionIsNil ¶
CaptionIsNil applies the IsNil predicate on the "caption" field.
func CaptionLTE ¶
CaptionLTE applies the LTE predicate on the "caption" field.
func CaptionNEQ ¶
CaptionNEQ applies the NEQ predicate on the "caption" field.
func CaptionNotIn ¶
CaptionNotIn applies the NotIn predicate on the "caption" field.
func CaptionNotNil ¶
CaptionNotNil applies the NotNil predicate on the "caption" field.
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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func HasAdminCreatedBy ¶
HasAdminCreatedBy applies the HasEdge predicate on the "admin_created_by" edge.
func HasAdminCreatedByWith ¶
HasAdminCreatedByWith applies the HasEdge predicate on the "admin_created_by" edge with a given conditions (other predicates).
func HasAdminUpdatedBy ¶
HasAdminUpdatedBy applies the HasEdge predicate on the "admin_updated_by" edge.
func HasAdminUpdatedByWith ¶
HasAdminUpdatedByWith applies the HasEdge predicate on the "admin_updated_by" edge with a given conditions (other predicates).
func HasCreatedBy ¶
HasCreatedBy applies the HasEdge predicate on the "created_by" edge.
func HasCreatedByWith ¶
HasCreatedByWith applies the HasEdge predicate on the "created_by" edge with a given conditions (other predicates).
func HasUpdatedBy ¶
HasUpdatedBy applies the HasEdge predicate on the "updated_by" edge.
func HasUpdatedByWith ¶
HasUpdatedByWith applies the HasEdge predicate on the "updated_by" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MimeType ¶
MimeType applies equality check predicate on the "mime_type" field. It's identical to MimeTypeEQ.
func MimeTypeContains ¶
MimeTypeContains applies the Contains predicate on the "mime_type" field.
func MimeTypeContainsFold ¶
MimeTypeContainsFold applies the ContainsFold predicate on the "mime_type" field.
func MimeTypeEQ ¶
MimeTypeEQ applies the EQ predicate on the "mime_type" field.
func MimeTypeEqualFold ¶
MimeTypeEqualFold applies the EqualFold predicate on the "mime_type" field.
func MimeTypeGT ¶
MimeTypeGT applies the GT predicate on the "mime_type" field.
func MimeTypeGTE ¶
MimeTypeGTE applies the GTE predicate on the "mime_type" field.
func MimeTypeHasPrefix ¶
MimeTypeHasPrefix applies the HasPrefix predicate on the "mime_type" field.
func MimeTypeHasSuffix ¶
MimeTypeHasSuffix applies the HasSuffix predicate on the "mime_type" field.
func MimeTypeIn ¶
MimeTypeIn applies the In predicate on the "mime_type" field.
func MimeTypeLT ¶
MimeTypeLT applies the LT predicate on the "mime_type" field.
func MimeTypeLTE ¶
MimeTypeLTE applies the LTE predicate on the "mime_type" field.
func MimeTypeNEQ ¶
MimeTypeNEQ applies the NEQ predicate on the "mime_type" field.
func MimeTypeNotIn ¶
MimeTypeNotIn applies the NotIn predicate on the "mime_type" 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 StorageFileName ¶
StorageFileName applies equality check predicate on the "storage_file_name" field. It's identical to StorageFileNameEQ.
func StorageFileNameContains ¶
StorageFileNameContains applies the Contains predicate on the "storage_file_name" field.
func StorageFileNameContainsFold ¶
StorageFileNameContainsFold applies the ContainsFold predicate on the "storage_file_name" field.
func StorageFileNameEQ ¶
StorageFileNameEQ applies the EQ predicate on the "storage_file_name" field.
func StorageFileNameEqualFold ¶
StorageFileNameEqualFold applies the EqualFold predicate on the "storage_file_name" field.
func StorageFileNameGT ¶
StorageFileNameGT applies the GT predicate on the "storage_file_name" field.
func StorageFileNameGTE ¶
StorageFileNameGTE applies the GTE predicate on the "storage_file_name" field.
func StorageFileNameHasPrefix ¶
StorageFileNameHasPrefix applies the HasPrefix predicate on the "storage_file_name" field.
func StorageFileNameHasSuffix ¶
StorageFileNameHasSuffix applies the HasSuffix predicate on the "storage_file_name" field.
func StorageFileNameIn ¶
StorageFileNameIn applies the In predicate on the "storage_file_name" field.
func StorageFileNameLT ¶
StorageFileNameLT applies the LT predicate on the "storage_file_name" field.
func StorageFileNameLTE ¶
StorageFileNameLTE applies the LTE predicate on the "storage_file_name" field.
func StorageFileNameNEQ ¶
StorageFileNameNEQ applies the NEQ predicate on the "storage_file_name" field.
func StorageFileNameNotIn ¶
StorageFileNameNotIn applies the NotIn predicate on the "storage_file_name" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" 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 File queries.
func ByAdminCreatedByField ¶
func ByAdminCreatedByField(field string, opts ...sql.OrderTermOption) OrderOption
ByAdminCreatedByField orders the results by admin_created_by field.
func ByAdminUpdatedByField ¶
func ByAdminUpdatedByField(field string, opts ...sql.OrderTermOption) OrderOption
ByAdminUpdatedByField orders the results by admin_updated_by field.
func ByCaption ¶
func ByCaption(opts ...sql.OrderTermOption) OrderOption
ByCaption orders the results by the caption field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedByField ¶
func ByCreatedByField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatedByField orders the results by created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMimeType ¶
func ByMimeType(opts ...sql.OrderTermOption) OrderOption
ByMimeType orders the results by the mime_type field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByStorageFileName ¶
func ByStorageFileName(opts ...sql.OrderTermOption) OrderOption
ByStorageFileName orders the results by the storage_file_name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedByField ¶
func ByUpdatedByField(field string, opts ...sql.OrderTermOption) OrderOption
ByUpdatedByField orders the results by updated_by field.