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 FileChildren(v int) predicate.File
- func FileChildrenEQ(v int) predicate.File
- func FileChildrenIn(vs ...int) predicate.File
- func FileChildrenIsNil() predicate.File
- func FileChildrenNEQ(v int) predicate.File
- func FileChildrenNotIn(vs ...int) predicate.File
- func FileChildrenNotNil() predicate.File
- func HasChildren() predicate.File
- func HasChildrenWith(preds ...predicate.File) predicate.File
- func HasDirectLinks() predicate.File
- func HasDirectLinksWith(preds ...predicate.DirectLink) predicate.File
- func HasEntities() predicate.File
- func HasEntitiesWith(preds ...predicate.Entity) predicate.File
- func HasMetadata() predicate.File
- func HasMetadataWith(preds ...predicate.Metadata) predicate.File
- func HasOwner() predicate.File
- func HasOwnerWith(preds ...predicate.User) predicate.File
- func HasParent() predicate.File
- func HasParentWith(preds ...predicate.File) predicate.File
- func HasShares() predicate.File
- func HasSharesWith(preds ...predicate.Share) predicate.File
- func HasStoragePolicies() predicate.File
- func HasStoragePoliciesWith(preds ...predicate.StoragePolicy) 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 IsSymbolic(v bool) predicate.File
- func IsSymbolicEQ(v bool) predicate.File
- func IsSymbolicNEQ(v bool) 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 OwnerID(v int) predicate.File
- func OwnerIDEQ(v int) predicate.File
- func OwnerIDIn(vs ...int) predicate.File
- func OwnerIDNEQ(v int) predicate.File
- func OwnerIDNotIn(vs ...int) predicate.File
- func PrimaryEntity(v int) predicate.File
- func PrimaryEntityEQ(v int) predicate.File
- func PrimaryEntityGT(v int) predicate.File
- func PrimaryEntityGTE(v int) predicate.File
- func PrimaryEntityIn(vs ...int) predicate.File
- func PrimaryEntityIsNil() predicate.File
- func PrimaryEntityLT(v int) predicate.File
- func PrimaryEntityLTE(v int) predicate.File
- func PrimaryEntityNEQ(v int) predicate.File
- func PrimaryEntityNotIn(vs ...int) predicate.File
- func PrimaryEntityNotNil() predicate.File
- func PropsIsNil() predicate.File
- func PropsNotNil() 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 StoragePolicyFiles(v int) predicate.File
- func StoragePolicyFilesEQ(v int) predicate.File
- func StoragePolicyFilesIn(vs ...int) predicate.File
- func StoragePolicyFilesIsNil() predicate.File
- func StoragePolicyFilesNEQ(v int) predicate.File
- func StoragePolicyFilesNotIn(vs ...int) predicate.File
- func StoragePolicyFilesNotNil() predicate.File
- func Type(v int) predicate.File
- func TypeEQ(v int) predicate.File
- func TypeGT(v int) predicate.File
- func TypeGTE(v int) predicate.File
- func TypeIn(vs ...int) predicate.File
- func TypeLT(v int) predicate.File
- func TypeLTE(v int) predicate.File
- func TypeNEQ(v int) predicate.File
- func TypeNotIn(vs ...int) 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 ValidColumn(column string) bool
- type OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDirectLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDirectLinksCount(opts ...sql.OrderTermOption) OrderOption
- func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByFileChildren(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsSymbolic(opts ...sql.OrderTermOption) OrderOption
- func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPrimaryEntity(opts ...sql.OrderTermOption) OrderOption
- func ByShares(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySharesCount(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByStoragePoliciesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStoragePolicyFiles(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldPrimaryEntity holds the string denoting the primary_entity field in the database. FieldPrimaryEntity = "primary_entity" // FieldFileChildren holds the string denoting the file_children field in the database. FieldFileChildren = "file_children" // FieldIsSymbolic holds the string denoting the is_symbolic field in the database. FieldIsSymbolic = "is_symbolic" // FieldProps holds the string denoting the props field in the database. FieldProps = "props" // FieldStoragePolicyFiles holds the string denoting the storage_policy_files field in the database. FieldStoragePolicyFiles = "storage_policy_files" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeStoragePolicies holds the string denoting the storage_policies edge name in mutations. EdgeStoragePolicies = "storage_policies" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeMetadata holds the string denoting the metadata edge name in mutations. EdgeMetadata = "metadata" // EdgeEntities holds the string denoting the entities edge name in mutations. EdgeEntities = "entities" EdgeShares = "shares" // EdgeDirectLinks holds the string denoting the direct_links edge name in mutations. EdgeDirectLinks = "direct_links" // Table holds the table name of the file in the database. Table = "files" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "files" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" // StoragePoliciesTable is the table that holds the storage_policies relation/edge. StoragePoliciesTable = "files" // StoragePoliciesInverseTable is the table name for the StoragePolicy entity. // It exists in this package in order to avoid circular dependency with the "storagepolicy" package. StoragePoliciesInverseTable = "storage_policies" // StoragePoliciesColumn is the table column denoting the storage_policies relation/edge. StoragePoliciesColumn = "storage_policy_files" // ParentTable is the table that holds the parent relation/edge. ParentTable = "files" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "file_children" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "files" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "file_children" // MetadataTable is the table that holds the metadata relation/edge. MetadataTable = "metadata" // MetadataInverseTable is the table name for the Metadata entity. // It exists in this package in order to avoid circular dependency with the "metadata" package. MetadataInverseTable = "metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "file_id" // EntitiesTable is the table that holds the entities relation/edge. The primary key declared below. EntitiesTable = "file_entities" // EntitiesInverseTable is the table name for the Entity entity. // It exists in this package in order to avoid circular dependency with the "entity" package. EntitiesInverseTable = "entities" SharesTable = "shares" // It exists in this package in order to avoid circular dependency with the "share" package. SharesInverseTable = "shares" SharesColumn = "file_shares" // DirectLinksTable is the table that holds the direct_links relation/edge. DirectLinksTable = "direct_links" // DirectLinksInverseTable is the table name for the DirectLink entity. // It exists in this package in order to avoid circular dependency with the "directlink" package. DirectLinksInverseTable = "direct_links" // DirectLinksColumn is the table column denoting the direct_links relation/edge. DirectLinksColumn = "file_id" )
Variables ¶
var ( Hooks [1]ent.Hook // 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 // DefaultSize holds the default value on creation for the "size" field. DefaultSize int64 // DefaultIsSymbolic holds the default value on creation for the "is_symbolic" field. DefaultIsSymbolic bool )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/cloudreve/Cloudreve/v4/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldType, FieldName, FieldOwnerID, FieldSize, FieldPrimaryEntity, FieldFileChildren, FieldIsSymbolic, FieldProps, FieldStoragePolicyFiles, }
Columns holds all SQL columns for file fields.
var ( // EntitiesPrimaryKey and EntitiesColumn2 are the table columns denoting the // primary key for the entities relation (M2M). EntitiesPrimaryKey = []string{"file_id", "entity_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 FileChildren ¶
FileChildren applies equality check predicate on the "file_children" field. It's identical to FileChildrenEQ.
func FileChildrenEQ ¶
FileChildrenEQ applies the EQ predicate on the "file_children" field.
func FileChildrenIn ¶
FileChildrenIn applies the In predicate on the "file_children" field.
func FileChildrenIsNil ¶
FileChildrenIsNil applies the IsNil predicate on the "file_children" field.
func FileChildrenNEQ ¶
FileChildrenNEQ applies the NEQ predicate on the "file_children" field.
func FileChildrenNotIn ¶
FileChildrenNotIn applies the NotIn predicate on the "file_children" field.
func FileChildrenNotNil ¶
FileChildrenNotNil applies the NotNil predicate on the "file_children" field.
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasDirectLinks ¶
HasDirectLinks applies the HasEdge predicate on the "direct_links" edge.
func HasDirectLinksWith ¶
func HasDirectLinksWith(preds ...predicate.DirectLink) predicate.File
HasDirectLinksWith applies the HasEdge predicate on the "direct_links" edge with a given conditions (other predicates).
func HasEntities ¶
HasEntities applies the HasEdge predicate on the "entities" edge.
func HasEntitiesWith ¶
HasEntitiesWith applies the HasEdge predicate on the "entities" edge with a given conditions (other predicates).
func HasMetadata ¶
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasSharesWith ¶
HasSharesWith applies the HasEdge predicate on the "shares" edge with a given conditions (other predicates).
func HasStoragePolicies ¶
HasStoragePolicies applies the HasEdge predicate on the "storage_policies" edge.
func HasStoragePoliciesWith ¶
func HasStoragePoliciesWith(preds ...predicate.StoragePolicy) predicate.File
HasStoragePoliciesWith applies the HasEdge predicate on the "storage_policies" edge with a given conditions (other predicates).
func IsSymbolic ¶
IsSymbolic applies equality check predicate on the "is_symbolic" field. It's identical to IsSymbolicEQ.
func IsSymbolicEQ ¶
IsSymbolicEQ applies the EQ predicate on the "is_symbolic" field.
func IsSymbolicNEQ ¶
IsSymbolicNEQ applies the NEQ predicate on the "is_symbolic" 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 OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func PrimaryEntity ¶
PrimaryEntity applies equality check predicate on the "primary_entity" field. It's identical to PrimaryEntityEQ.
func PrimaryEntityEQ ¶
PrimaryEntityEQ applies the EQ predicate on the "primary_entity" field.
func PrimaryEntityGT ¶
PrimaryEntityGT applies the GT predicate on the "primary_entity" field.
func PrimaryEntityGTE ¶
PrimaryEntityGTE applies the GTE predicate on the "primary_entity" field.
func PrimaryEntityIn ¶
PrimaryEntityIn applies the In predicate on the "primary_entity" field.
func PrimaryEntityIsNil ¶
PrimaryEntityIsNil applies the IsNil predicate on the "primary_entity" field.
func PrimaryEntityLT ¶
PrimaryEntityLT applies the LT predicate on the "primary_entity" field.
func PrimaryEntityLTE ¶
PrimaryEntityLTE applies the LTE predicate on the "primary_entity" field.
func PrimaryEntityNEQ ¶
PrimaryEntityNEQ applies the NEQ predicate on the "primary_entity" field.
func PrimaryEntityNotIn ¶
PrimaryEntityNotIn applies the NotIn predicate on the "primary_entity" field.
func PrimaryEntityNotNil ¶
PrimaryEntityNotNil applies the NotNil predicate on the "primary_entity" field.
func PropsIsNil ¶
PropsIsNil applies the IsNil predicate on the "props" field.
func PropsNotNil ¶
PropsNotNil applies the NotNil predicate on the "props" field.
func StoragePolicyFiles ¶
StoragePolicyFiles applies equality check predicate on the "storage_policy_files" field. It's identical to StoragePolicyFilesEQ.
func StoragePolicyFilesEQ ¶
StoragePolicyFilesEQ applies the EQ predicate on the "storage_policy_files" field.
func StoragePolicyFilesIn ¶
StoragePolicyFilesIn applies the In predicate on the "storage_policy_files" field.
func StoragePolicyFilesIsNil ¶
StoragePolicyFilesIsNil applies the IsNil predicate on the "storage_policy_files" field.
func StoragePolicyFilesNEQ ¶
StoragePolicyFilesNEQ applies the NEQ predicate on the "storage_policy_files" field.
func StoragePolicyFilesNotIn ¶
StoragePolicyFilesNotIn applies the NotIn predicate on the "storage_policy_files" field.
func StoragePolicyFilesNotNil ¶
StoragePolicyFilesNotNil applies the NotNil predicate on the "storage_policy_files" 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 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 ByChildren ¶
func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChildren orders the results by children terms.
func ByChildrenCount ¶
func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
ByChildrenCount orders the results by children count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDirectLinks ¶
func ByDirectLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDirectLinks orders the results by direct_links terms.
func ByDirectLinksCount ¶
func ByDirectLinksCount(opts ...sql.OrderTermOption) OrderOption
ByDirectLinksCount orders the results by direct_links count.
func ByEntities ¶
func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEntities orders the results by entities terms.
func ByEntitiesCount ¶
func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption
ByEntitiesCount orders the results by entities count.
func ByFileChildren ¶
func ByFileChildren(opts ...sql.OrderTermOption) OrderOption
ByFileChildren orders the results by the file_children field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsSymbolic ¶
func ByIsSymbolic(opts ...sql.OrderTermOption) OrderOption
ByIsSymbolic orders the results by the is_symbolic field.
func ByMetadata ¶
func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMetadata orders the results by metadata terms.
func ByMetadataCount ¶
func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
ByMetadataCount orders the results by metadata count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.
func ByPrimaryEntity ¶
func ByPrimaryEntity(opts ...sql.OrderTermOption) OrderOption
ByPrimaryEntity orders the results by the primary_entity field.
func ByShares ¶
func ByShares(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByShares orders the results by shares terms.
func BySharesCount ¶
func BySharesCount(opts ...sql.OrderTermOption) OrderOption
BySharesCount orders the results by shares count.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByStoragePoliciesField ¶
func ByStoragePoliciesField(field string, opts ...sql.OrderTermOption) OrderOption
ByStoragePoliciesField orders the results by storage_policies field.
func ByStoragePolicyFiles ¶
func ByStoragePolicyFiles(opts ...sql.OrderTermOption) OrderOption
ByStoragePolicyFiles orders the results by the storage_policy_files field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.