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 FileType(v uint8) predicate.File
- func FileTypeEQ(v uint8) predicate.File
- func FileTypeGT(v uint8) predicate.File
- func FileTypeGTE(v uint8) predicate.File
- func FileTypeIn(vs ...uint8) predicate.File
- func FileTypeLT(v uint8) predicate.File
- func FileTypeLTE(v uint8) predicate.File
- func FileTypeNEQ(v uint8) predicate.File
- func FileTypeNotIn(vs ...uint8) predicate.File
- func HasTags() predicate.File
- func HasTagsWith(preds ...predicate.Tag) 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 Md5(v string) predicate.File
- func Md5Contains(v string) predicate.File
- func Md5ContainsFold(v string) predicate.File
- func Md5EQ(v string) predicate.File
- func Md5EqualFold(v string) predicate.File
- func Md5GT(v string) predicate.File
- func Md5GTE(v string) predicate.File
- func Md5HasPrefix(v string) predicate.File
- func Md5HasSuffix(v string) predicate.File
- func Md5In(vs ...string) predicate.File
- func Md5LT(v string) predicate.File
- func Md5LTE(v string) predicate.File
- func Md5NEQ(v string) predicate.File
- func Md5NotIn(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 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 uint64) predicate.File
- func SizeEQ(v uint64) predicate.File
- func SizeGT(v uint64) predicate.File
- func SizeGTE(v uint64) predicate.File
- func SizeIn(vs ...uint64) predicate.File
- func SizeLT(v uint64) predicate.File
- func SizeLTE(v uint64) predicate.File
- func SizeNEQ(v uint64) predicate.File
- func SizeNotIn(vs ...uint64) predicate.File
- func Status(v uint8) predicate.File
- func StatusEQ(v uint8) predicate.File
- func StatusGT(v uint8) predicate.File
- func StatusGTE(v uint8) predicate.File
- func StatusIn(vs ...uint8) predicate.File
- func StatusIsNil() predicate.File
- func StatusLT(v uint8) predicate.File
- func StatusLTE(v uint8) predicate.File
- func StatusNEQ(v uint8) predicate.File
- func StatusNotIn(vs ...uint8) predicate.File
- func StatusNotNil() 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 UserUUID(v string) predicate.File
- func UserUUIDContains(v string) predicate.File
- func UserUUIDContainsFold(v string) predicate.File
- func UserUUIDEQ(v string) predicate.File
- func UserUUIDEqualFold(v string) predicate.File
- func UserUUIDGT(v string) predicate.File
- func UserUUIDGTE(v string) predicate.File
- func UserUUIDHasPrefix(v string) predicate.File
- func UserUUIDHasSuffix(v string) predicate.File
- func UserUUIDIn(vs ...string) predicate.File
- func UserUUIDLT(v string) predicate.File
- func UserUUIDLTE(v string) predicate.File
- func UserUUIDNEQ(v string) predicate.File
- func UserUUIDNotIn(vs ...string) predicate.File
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFileType(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMd5(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserUUID(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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldFileType holds the string denoting the file_type field in the database. FieldFileType = "file_type" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldUserUUID holds the string denoting the user_uuid field in the database. FieldUserUUID = "user_uuid" // FieldMd5 holds the string denoting the md5 field in the database. FieldMd5 = "md5" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // Table holds the table name of the file in the database. Table = "fms_files" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "tag_files" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "fms_tags" )
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 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldName, FieldFileType, FieldSize, FieldPath, FieldUserUUID, FieldMd5, }
Columns holds all SQL columns for file fields.
var ( // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"tag_id", "file_id"} )
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 FileType ¶
FileType applies equality check predicate on the "file_type" field. It's identical to FileTypeEQ.
func FileTypeEQ ¶
FileTypeEQ applies the EQ predicate on the "file_type" field.
func FileTypeGT ¶
FileTypeGT applies the GT predicate on the "file_type" field.
func FileTypeGTE ¶
FileTypeGTE applies the GTE predicate on the "file_type" field.
func FileTypeIn ¶
FileTypeIn applies the In predicate on the "file_type" field.
func FileTypeLT ¶
FileTypeLT applies the LT predicate on the "file_type" field.
func FileTypeLTE ¶
FileTypeLTE applies the LTE predicate on the "file_type" field.
func FileTypeNEQ ¶
FileTypeNEQ applies the NEQ predicate on the "file_type" field.
func FileTypeNotIn ¶
FileTypeNotIn applies the NotIn predicate on the "file_type" field.
func HasTagsWith ¶ added in v1.0.12
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func Md5Contains ¶
Md5Contains applies the Contains predicate on the "md5" field.
func Md5ContainsFold ¶
Md5ContainsFold applies the ContainsFold predicate on the "md5" field.
func Md5EqualFold ¶
Md5EqualFold applies the EqualFold predicate on the "md5" field.
func Md5HasPrefix ¶
Md5HasPrefix applies the HasPrefix predicate on the "md5" field.
func Md5HasSuffix ¶
Md5HasSuffix applies the HasSuffix predicate on the "md5" 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 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 Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" 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 UserUUID ¶
UserUUID applies equality check predicate on the "user_uuid" field. It's identical to UserUUIDEQ.
func UserUUIDContains ¶
UserUUIDContains applies the Contains predicate on the "user_uuid" field.
func UserUUIDContainsFold ¶
UserUUIDContainsFold applies the ContainsFold predicate on the "user_uuid" field.
func UserUUIDEQ ¶
UserUUIDEQ applies the EQ predicate on the "user_uuid" field.
func UserUUIDEqualFold ¶
UserUUIDEqualFold applies the EqualFold predicate on the "user_uuid" field.
func UserUUIDGT ¶
UserUUIDGT applies the GT predicate on the "user_uuid" field.
func UserUUIDGTE ¶
UserUUIDGTE applies the GTE predicate on the "user_uuid" field.
func UserUUIDHasPrefix ¶
UserUUIDHasPrefix applies the HasPrefix predicate on the "user_uuid" field.
func UserUUIDHasSuffix ¶
UserUUIDHasSuffix applies the HasSuffix predicate on the "user_uuid" field.
func UserUUIDIn ¶
UserUUIDIn applies the In predicate on the "user_uuid" field.
func UserUUIDLT ¶
UserUUIDLT applies the LT predicate on the "user_uuid" field.
func UserUUIDLTE ¶
UserUUIDLTE applies the LTE predicate on the "user_uuid" field.
func UserUUIDNEQ ¶
UserUUIDNEQ applies the NEQ predicate on the "user_uuid" field.
func UserUUIDNotIn ¶
UserUUIDNotIn applies the NotIn predicate on the "user_uuid" 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFileType ¶
func ByFileType(opts ...sql.OrderTermOption) OrderOption
ByFileType orders the results by the file_type field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMd5 ¶
func ByMd5(opts ...sql.OrderTermOption) OrderOption
ByMd5 orders the results by the md5 field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTags ¶ added in v1.0.12
func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTags orders the results by tags terms.
func ByTagsCount ¶ added in v1.0.12
func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
ByTagsCount orders the results by tags count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserUUID ¶
func ByUserUUID(opts ...sql.OrderTermOption) OrderOption
ByUserUUID orders the results by the user_uuid field.