Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CloudFile) predicate.CloudFile
- func CreatedAt(v time.Time) predicate.CloudFile
- func CreatedAtEQ(v time.Time) predicate.CloudFile
- func CreatedAtGT(v time.Time) predicate.CloudFile
- func CreatedAtGTE(v time.Time) predicate.CloudFile
- func CreatedAtIn(vs ...time.Time) predicate.CloudFile
- func CreatedAtLT(v time.Time) predicate.CloudFile
- func CreatedAtLTE(v time.Time) predicate.CloudFile
- func CreatedAtNEQ(v time.Time) predicate.CloudFile
- func CreatedAtNotIn(vs ...time.Time) predicate.CloudFile
- func FileType(v uint8) predicate.CloudFile
- func FileTypeEQ(v uint8) predicate.CloudFile
- func FileTypeGT(v uint8) predicate.CloudFile
- func FileTypeGTE(v uint8) predicate.CloudFile
- func FileTypeIn(vs ...uint8) predicate.CloudFile
- func FileTypeLT(v uint8) predicate.CloudFile
- func FileTypeLTE(v uint8) predicate.CloudFile
- func FileTypeNEQ(v uint8) predicate.CloudFile
- func FileTypeNotIn(vs ...uint8) predicate.CloudFile
- func HasStorageProviders() predicate.CloudFile
- func HasStorageProvidersWith(preds ...predicate.StorageProvider) predicate.CloudFile
- func HasTags() predicate.CloudFile
- func HasTagsWith(preds ...predicate.CloudFileTag) predicate.CloudFile
- func ID(id uuid.UUID) predicate.CloudFile
- func IDEQ(id uuid.UUID) predicate.CloudFile
- func IDGT(id uuid.UUID) predicate.CloudFile
- func IDGTE(id uuid.UUID) predicate.CloudFile
- func IDIn(ids ...uuid.UUID) predicate.CloudFile
- func IDLT(id uuid.UUID) predicate.CloudFile
- func IDLTE(id uuid.UUID) predicate.CloudFile
- func IDNEQ(id uuid.UUID) predicate.CloudFile
- func IDNotIn(ids ...uuid.UUID) predicate.CloudFile
- func Name(v string) predicate.CloudFile
- func NameContains(v string) predicate.CloudFile
- func NameContainsFold(v string) predicate.CloudFile
- func NameEQ(v string) predicate.CloudFile
- func NameEqualFold(v string) predicate.CloudFile
- func NameGT(v string) predicate.CloudFile
- func NameGTE(v string) predicate.CloudFile
- func NameHasPrefix(v string) predicate.CloudFile
- func NameHasSuffix(v string) predicate.CloudFile
- func NameIn(vs ...string) predicate.CloudFile
- func NameLT(v string) predicate.CloudFile
- func NameLTE(v string) predicate.CloudFile
- func NameNEQ(v string) predicate.CloudFile
- func NameNotIn(vs ...string) predicate.CloudFile
- func Not(p predicate.CloudFile) predicate.CloudFile
- func Or(predicates ...predicate.CloudFile) predicate.CloudFile
- func Size(v uint64) predicate.CloudFile
- func SizeEQ(v uint64) predicate.CloudFile
- func SizeGT(v uint64) predicate.CloudFile
- func SizeGTE(v uint64) predicate.CloudFile
- func SizeIn(vs ...uint64) predicate.CloudFile
- func SizeLT(v uint64) predicate.CloudFile
- func SizeLTE(v uint64) predicate.CloudFile
- func SizeNEQ(v uint64) predicate.CloudFile
- func SizeNotIn(vs ...uint64) predicate.CloudFile
- func State(v bool) predicate.CloudFile
- func StateEQ(v bool) predicate.CloudFile
- func StateIsNil() predicate.CloudFile
- func StateNEQ(v bool) predicate.CloudFile
- func StateNotNil() predicate.CloudFile
- func URL(v string) predicate.CloudFile
- func URLContains(v string) predicate.CloudFile
- func URLContainsFold(v string) predicate.CloudFile
- func URLEQ(v string) predicate.CloudFile
- func URLEqualFold(v string) predicate.CloudFile
- func URLGT(v string) predicate.CloudFile
- func URLGTE(v string) predicate.CloudFile
- func URLHasPrefix(v string) predicate.CloudFile
- func URLHasSuffix(v string) predicate.CloudFile
- func URLIn(vs ...string) predicate.CloudFile
- func URLLT(v string) predicate.CloudFile
- func URLLTE(v string) predicate.CloudFile
- func URLNEQ(v string) predicate.CloudFile
- func URLNotIn(vs ...string) predicate.CloudFile
- func UpdatedAt(v time.Time) predicate.CloudFile
- func UpdatedAtEQ(v time.Time) predicate.CloudFile
- func UpdatedAtGT(v time.Time) predicate.CloudFile
- func UpdatedAtGTE(v time.Time) predicate.CloudFile
- func UpdatedAtIn(vs ...time.Time) predicate.CloudFile
- func UpdatedAtLT(v time.Time) predicate.CloudFile
- func UpdatedAtLTE(v time.Time) predicate.CloudFile
- func UpdatedAtNEQ(v time.Time) predicate.CloudFile
- func UpdatedAtNotIn(vs ...time.Time) predicate.CloudFile
- func UserID(v string) predicate.CloudFile
- func UserIDContains(v string) predicate.CloudFile
- func UserIDContainsFold(v string) predicate.CloudFile
- func UserIDEQ(v string) predicate.CloudFile
- func UserIDEqualFold(v string) predicate.CloudFile
- func UserIDGT(v string) predicate.CloudFile
- func UserIDGTE(v string) predicate.CloudFile
- func UserIDHasPrefix(v string) predicate.CloudFile
- func UserIDHasSuffix(v string) predicate.CloudFile
- func UserIDIn(vs ...string) predicate.CloudFile
- func UserIDLT(v string) predicate.CloudFile
- func UserIDLTE(v string) predicate.CloudFile
- func UserIDNEQ(v string) predicate.CloudFile
- func UserIDNotIn(vs ...string) predicate.CloudFile
- 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 ByName(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByStorageProvidersField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the cloudfile type in the database. Label = "cloud_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" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldFileType holds the string denoting the file_type field in the database. FieldFileType = "file_type" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeStorageProviders holds the string denoting the storage_providers edge name in mutations. EdgeStorageProviders = "storage_providers" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // Table holds the table name of the cloudfile in the database. Table = "fms_cloud_files" // StorageProvidersTable is the table that holds the storage_providers relation/edge. StorageProvidersTable = "fms_cloud_files" // StorageProvidersInverseTable is the table name for the StorageProvider entity. // It exists in this package in order to avoid circular dependency with the "storageprovider" package. StorageProvidersInverseTable = "fms_storage_providers" // StorageProvidersColumn is the table column denoting the storage_providers relation/edge. StorageProvidersColumn = "cloud_file_storage_providers" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "cloud_file_tag_cloud_files" // TagsInverseTable is the table name for the CloudFileTag entity. // It exists in this package in order to avoid circular dependency with the "cloudfiletag" package. TagsInverseTable = "fms_cloud_file_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 // DefaultState holds the default value on creation for the "state" field. DefaultState bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldState, FieldName, FieldURL, FieldSize, FieldFileType, FieldUserID, }
Columns holds all SQL columns for cloudfile fields.
var ForeignKeys = []string{
"cloud_file_storage_providers",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "fms_cloud_files" table and are not defined as standalone fields in the schema.
var ( // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"cloud_file_tag_id", "cloud_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 HasStorageProviders ¶
HasStorageProviders applies the HasEdge predicate on the "storage_providers" edge.
func HasStorageProvidersWith ¶
func HasStorageProvidersWith(preds ...predicate.StorageProvider) predicate.CloudFile
HasStorageProvidersWith applies the HasEdge predicate on the "storage_providers" edge with a given conditions (other predicates).
func HasTagsWith ¶
func HasTagsWith(preds ...predicate.CloudFileTag) predicate.CloudFile
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
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 State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateIsNil ¶
StateIsNil applies the IsNil predicate on the "state" field.
func StateNotNil ¶
StateNotNil applies the NotNil predicate on the "state" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" 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 UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" 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 CloudFile 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 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 ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByStorageProvidersField ¶
func ByStorageProvidersField(field string, opts ...sql.OrderTermOption) OrderOption
ByStorageProvidersField orders the results by storage_providers field.
func ByTags ¶
func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTags orders the results by tags terms.
func ByTagsCount ¶
func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
ByTagsCount orders the results by tags count.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.