Documentation
¶
Index ¶
- Constants
- Variables
- func AccountID(v xid.ID) predicate.Node
- func AccountIDContains(v xid.ID) predicate.Node
- func AccountIDContainsFold(v xid.ID) predicate.Node
- func AccountIDEQ(v xid.ID) predicate.Node
- func AccountIDEqualFold(v xid.ID) predicate.Node
- func AccountIDGT(v xid.ID) predicate.Node
- func AccountIDGTE(v xid.ID) predicate.Node
- func AccountIDHasPrefix(v xid.ID) predicate.Node
- func AccountIDHasSuffix(v xid.ID) predicate.Node
- func AccountIDIn(vs ...xid.ID) predicate.Node
- func AccountIDLT(v xid.ID) predicate.Node
- func AccountIDLTE(v xid.ID) predicate.Node
- func AccountIDNEQ(v xid.ID) predicate.Node
- func AccountIDNotIn(vs ...xid.ID) predicate.Node
- func And(predicates ...predicate.Node) predicate.Node
- func Content(v string) predicate.Node
- func ContentContains(v string) predicate.Node
- func ContentContainsFold(v string) predicate.Node
- func ContentEQ(v string) predicate.Node
- func ContentEqualFold(v string) predicate.Node
- func ContentGT(v string) predicate.Node
- func ContentGTE(v string) predicate.Node
- func ContentHasPrefix(v string) predicate.Node
- func ContentHasSuffix(v string) predicate.Node
- func ContentIn(vs ...string) predicate.Node
- func ContentIsNil() predicate.Node
- func ContentLT(v string) predicate.Node
- func ContentLTE(v string) predicate.Node
- func ContentNEQ(v string) predicate.Node
- func ContentNotIn(vs ...string) predicate.Node
- func ContentNotNil() predicate.Node
- func CreatedAt(v time.Time) predicate.Node
- func CreatedAtEQ(v time.Time) predicate.Node
- func CreatedAtGT(v time.Time) predicate.Node
- func CreatedAtGTE(v time.Time) predicate.Node
- func CreatedAtIn(vs ...time.Time) predicate.Node
- func CreatedAtLT(v time.Time) predicate.Node
- func CreatedAtLTE(v time.Time) predicate.Node
- func CreatedAtNEQ(v time.Time) predicate.Node
- func CreatedAtNotIn(vs ...time.Time) predicate.Node
- func DeletedAt(v time.Time) predicate.Node
- func DeletedAtEQ(v time.Time) predicate.Node
- func DeletedAtGT(v time.Time) predicate.Node
- func DeletedAtGTE(v time.Time) predicate.Node
- func DeletedAtIn(vs ...time.Time) predicate.Node
- func DeletedAtIsNil() predicate.Node
- func DeletedAtLT(v time.Time) predicate.Node
- func DeletedAtLTE(v time.Time) predicate.Node
- func DeletedAtNEQ(v time.Time) predicate.Node
- func DeletedAtNotIn(vs ...time.Time) predicate.Node
- func DeletedAtNotNil() predicate.Node
- func Description(v string) predicate.Node
- func DescriptionContains(v string) predicate.Node
- func DescriptionContainsFold(v string) predicate.Node
- func DescriptionEQ(v string) predicate.Node
- func DescriptionEqualFold(v string) predicate.Node
- func DescriptionGT(v string) predicate.Node
- func DescriptionGTE(v string) predicate.Node
- func DescriptionHasPrefix(v string) predicate.Node
- func DescriptionHasSuffix(v string) predicate.Node
- func DescriptionIn(vs ...string) predicate.Node
- func DescriptionIsNil() predicate.Node
- func DescriptionLT(v string) predicate.Node
- func DescriptionLTE(v string) predicate.Node
- func DescriptionNEQ(v string) predicate.Node
- func DescriptionNotIn(vs ...string) predicate.Node
- func DescriptionNotNil() predicate.Node
- func HasAssets() predicate.Node
- func HasAssetsWith(preds ...predicate.Asset) predicate.Node
- func HasCollectionNodes() predicate.Node
- func HasCollectionNodesWith(preds ...predicate.CollectionNode) predicate.Node
- func HasCollections() predicate.Node
- func HasCollectionsWith(preds ...predicate.Collection) predicate.Node
- func HasContentLinks() predicate.Node
- func HasContentLinksWith(preds ...predicate.Link) predicate.Node
- func HasLink() predicate.Node
- func HasLinkWith(preds ...predicate.Link) predicate.Node
- func HasNodes() predicate.Node
- func HasNodesWith(preds ...predicate.Node) predicate.Node
- func HasOwner() predicate.Node
- func HasOwnerWith(preds ...predicate.Account) predicate.Node
- func HasParent() predicate.Node
- func HasParentWith(preds ...predicate.Node) predicate.Node
- func HasPrimaryImage() predicate.Node
- func HasPrimaryImageWith(preds ...predicate.Asset) predicate.Node
- func HasProperties() predicate.Node
- func HasPropertiesWith(preds ...predicate.Property) predicate.Node
- func HasPropertySchema() predicate.Node
- func HasPropertySchemaWith(preds ...predicate.PropertySchema) predicate.Node
- func HasTags() predicate.Node
- func HasTagsWith(preds ...predicate.Tag) predicate.Node
- func HideChildTree(v bool) predicate.Node
- func HideChildTreeEQ(v bool) predicate.Node
- func HideChildTreeNEQ(v bool) predicate.Node
- func ID(id xid.ID) predicate.Node
- func IDEQ(id xid.ID) predicate.Node
- func IDGT(id xid.ID) predicate.Node
- func IDGTE(id xid.ID) predicate.Node
- func IDIn(ids ...xid.ID) predicate.Node
- func IDLT(id xid.ID) predicate.Node
- func IDLTE(id xid.ID) predicate.Node
- func IDNEQ(id xid.ID) predicate.Node
- func IDNotIn(ids ...xid.ID) predicate.Node
- func IndexedAt(v time.Time) predicate.Node
- func IndexedAtEQ(v time.Time) predicate.Node
- func IndexedAtGT(v time.Time) predicate.Node
- func IndexedAtGTE(v time.Time) predicate.Node
- func IndexedAtIn(vs ...time.Time) predicate.Node
- func IndexedAtIsNil() predicate.Node
- func IndexedAtLT(v time.Time) predicate.Node
- func IndexedAtLTE(v time.Time) predicate.Node
- func IndexedAtNEQ(v time.Time) predicate.Node
- func IndexedAtNotIn(vs ...time.Time) predicate.Node
- func IndexedAtNotNil() predicate.Node
- func LinkID(v xid.ID) predicate.Node
- func LinkIDContains(v xid.ID) predicate.Node
- func LinkIDContainsFold(v xid.ID) predicate.Node
- func LinkIDEQ(v xid.ID) predicate.Node
- func LinkIDEqualFold(v xid.ID) predicate.Node
- func LinkIDGT(v xid.ID) predicate.Node
- func LinkIDGTE(v xid.ID) predicate.Node
- func LinkIDHasPrefix(v xid.ID) predicate.Node
- func LinkIDHasSuffix(v xid.ID) predicate.Node
- func LinkIDIn(vs ...xid.ID) predicate.Node
- func LinkIDIsNil() predicate.Node
- func LinkIDLT(v xid.ID) predicate.Node
- func LinkIDLTE(v xid.ID) predicate.Node
- func LinkIDNEQ(v xid.ID) predicate.Node
- func LinkIDNotIn(vs ...xid.ID) predicate.Node
- func LinkIDNotNil() predicate.Node
- func MetadataIsNil() predicate.Node
- func MetadataNotNil() predicate.Node
- func Name(v string) predicate.Node
- func NameContains(v string) predicate.Node
- func NameContainsFold(v string) predicate.Node
- func NameEQ(v string) predicate.Node
- func NameEqualFold(v string) predicate.Node
- func NameGT(v string) predicate.Node
- func NameGTE(v string) predicate.Node
- func NameHasPrefix(v string) predicate.Node
- func NameHasSuffix(v string) predicate.Node
- func NameIn(vs ...string) predicate.Node
- func NameLT(v string) predicate.Node
- func NameLTE(v string) predicate.Node
- func NameNEQ(v string) predicate.Node
- func NameNotIn(vs ...string) predicate.Node
- func Not(p predicate.Node) predicate.Node
- func Or(predicates ...predicate.Node) predicate.Node
- func ParentNodeID(v xid.ID) predicate.Node
- func ParentNodeIDContains(v xid.ID) predicate.Node
- func ParentNodeIDContainsFold(v xid.ID) predicate.Node
- func ParentNodeIDEQ(v xid.ID) predicate.Node
- func ParentNodeIDEqualFold(v xid.ID) predicate.Node
- func ParentNodeIDGT(v xid.ID) predicate.Node
- func ParentNodeIDGTE(v xid.ID) predicate.Node
- func ParentNodeIDHasPrefix(v xid.ID) predicate.Node
- func ParentNodeIDHasSuffix(v xid.ID) predicate.Node
- func ParentNodeIDIn(vs ...xid.ID) predicate.Node
- func ParentNodeIDIsNil() predicate.Node
- func ParentNodeIDLT(v xid.ID) predicate.Node
- func ParentNodeIDLTE(v xid.ID) predicate.Node
- func ParentNodeIDNEQ(v xid.ID) predicate.Node
- func ParentNodeIDNotIn(vs ...xid.ID) predicate.Node
- func ParentNodeIDNotNil() predicate.Node
- func PrimaryAssetID(v xid.ID) predicate.Node
- func PrimaryAssetIDContains(v xid.ID) predicate.Node
- func PrimaryAssetIDContainsFold(v xid.ID) predicate.Node
- func PrimaryAssetIDEQ(v xid.ID) predicate.Node
- func PrimaryAssetIDEqualFold(v xid.ID) predicate.Node
- func PrimaryAssetIDGT(v xid.ID) predicate.Node
- func PrimaryAssetIDGTE(v xid.ID) predicate.Node
- func PrimaryAssetIDHasPrefix(v xid.ID) predicate.Node
- func PrimaryAssetIDHasSuffix(v xid.ID) predicate.Node
- func PrimaryAssetIDIn(vs ...xid.ID) predicate.Node
- func PrimaryAssetIDIsNil() predicate.Node
- func PrimaryAssetIDLT(v xid.ID) predicate.Node
- func PrimaryAssetIDLTE(v xid.ID) predicate.Node
- func PrimaryAssetIDNEQ(v xid.ID) predicate.Node
- func PrimaryAssetIDNotIn(vs ...xid.ID) predicate.Node
- func PrimaryAssetIDNotNil() predicate.Node
- func PropertySchemaID(v xid.ID) predicate.Node
- func PropertySchemaIDContains(v xid.ID) predicate.Node
- func PropertySchemaIDContainsFold(v xid.ID) predicate.Node
- func PropertySchemaIDEQ(v xid.ID) predicate.Node
- func PropertySchemaIDEqualFold(v xid.ID) predicate.Node
- func PropertySchemaIDGT(v xid.ID) predicate.Node
- func PropertySchemaIDGTE(v xid.ID) predicate.Node
- func PropertySchemaIDHasPrefix(v xid.ID) predicate.Node
- func PropertySchemaIDHasSuffix(v xid.ID) predicate.Node
- func PropertySchemaIDIn(vs ...xid.ID) predicate.Node
- func PropertySchemaIDIsNil() predicate.Node
- func PropertySchemaIDLT(v xid.ID) predicate.Node
- func PropertySchemaIDLTE(v xid.ID) predicate.Node
- func PropertySchemaIDNEQ(v xid.ID) predicate.Node
- func PropertySchemaIDNotIn(vs ...xid.ID) predicate.Node
- func PropertySchemaIDNotNil() predicate.Node
- func Slug(v string) predicate.Node
- func SlugContains(v string) predicate.Node
- func SlugContainsFold(v string) predicate.Node
- func SlugEQ(v string) predicate.Node
- func SlugEqualFold(v string) predicate.Node
- func SlugGT(v string) predicate.Node
- func SlugGTE(v string) predicate.Node
- func SlugHasPrefix(v string) predicate.Node
- func SlugHasSuffix(v string) predicate.Node
- func SlugIn(vs ...string) predicate.Node
- func SlugLT(v string) predicate.Node
- func SlugLTE(v string) predicate.Node
- func SlugNEQ(v string) predicate.Node
- func SlugNotIn(vs ...string) predicate.Node
- func Sort(v lexorank.Key) predicate.Node
- func SortContains(v lexorank.Key) predicate.Node
- func SortContainsFold(v lexorank.Key) predicate.Node
- func SortEQ(v lexorank.Key) predicate.Node
- func SortEqualFold(v lexorank.Key) predicate.Node
- func SortGT(v lexorank.Key) predicate.Node
- func SortGTE(v lexorank.Key) predicate.Node
- func SortHasPrefix(v lexorank.Key) predicate.Node
- func SortHasSuffix(v lexorank.Key) predicate.Node
- func SortIn(vs ...lexorank.Key) predicate.Node
- func SortLT(v lexorank.Key) predicate.Node
- func SortLTE(v lexorank.Key) predicate.Node
- func SortNEQ(v lexorank.Key) predicate.Node
- func SortNotIn(vs ...lexorank.Key) predicate.Node
- func UpdatedAt(v time.Time) predicate.Node
- func UpdatedAtEQ(v time.Time) predicate.Node
- func UpdatedAtGT(v time.Time) predicate.Node
- func UpdatedAtGTE(v time.Time) predicate.Node
- func UpdatedAtIn(vs ...time.Time) predicate.Node
- func UpdatedAtLT(v time.Time) predicate.Node
- func UpdatedAtLTE(v time.Time) predicate.Node
- func UpdatedAtNEQ(v time.Time) predicate.Node
- func UpdatedAtNotIn(vs ...time.Time) predicate.Node
- func ValidColumn(column string) bool
- func VisibilityEQ(v Visibility) predicate.Node
- func VisibilityIn(vs ...Visibility) predicate.Node
- func VisibilityNEQ(v Visibility) predicate.Node
- func VisibilityNotIn(vs ...Visibility) predicate.Node
- func VisibilityValidator(v Visibility) error
- type OrderOption
- func ByAccountID(opts ...sql.OrderTermOption) OrderOption
- func ByAssets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAssetsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCollectionNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCollectionNodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByCollections(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCollectionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByContentLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByContentLinksCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByHideChildTree(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndexedAt(opts ...sql.OrderTermOption) OrderOption
- func ByLinkField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLinkID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentNodeID(opts ...sql.OrderTermOption) OrderOption
- func ByPrimaryAssetID(opts ...sql.OrderTermOption) OrderOption
- func ByPrimaryImageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProperties(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPropertiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPropertySchemaField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPropertySchemaID(opts ...sql.OrderTermOption) OrderOption
- func BySlug(opts ...sql.OrderTermOption) OrderOption
- func BySort(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 ByVisibility(opts ...sql.OrderTermOption) OrderOption
- type Visibility
Constants ¶
const ( // Label holds the string label denoting the node type in the database. Label = "node" // 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" // FieldIndexedAt holds the string denoting the indexed_at field in the database. FieldIndexedAt = "indexed_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldParentNodeID holds the string denoting the parent_node_id field in the database. FieldParentNodeID = "parent_node_id" // FieldHideChildTree holds the string denoting the hide_child_tree field in the database. FieldHideChildTree = "hide_child_tree" // FieldAccountID holds the string denoting the account_id field in the database. FieldAccountID = "account_id" // FieldPropertySchemaID holds the string denoting the property_schema_id field in the database. FieldPropertySchemaID = "property_schema_id" // FieldPrimaryAssetID holds the string denoting the primary_asset_id field in the database. FieldPrimaryAssetID = "primary_asset_id" // FieldLinkID holds the string denoting the link_id field in the database. FieldLinkID = "link_id" // FieldVisibility holds the string denoting the visibility field in the database. FieldVisibility = "visibility" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeNodes holds the string denoting the nodes edge name in mutations. EdgeNodes = "nodes" // EdgePrimaryImage holds the string denoting the primary_image edge name in mutations. EdgePrimaryImage = "primary_image" // EdgeAssets holds the string denoting the assets edge name in mutations. EdgeAssets = "assets" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeProperties holds the string denoting the properties edge name in mutations. EdgeProperties = "properties" // EdgePropertySchema holds the string denoting the property_schema edge name in mutations. EdgePropertySchema = "property_schema" // EdgeLink holds the string denoting the link edge name in mutations. EdgeLink = "link" // EdgeContentLinks holds the string denoting the content_links edge name in mutations. EdgeContentLinks = "content_links" // EdgeCollections holds the string denoting the collections edge name in mutations. EdgeCollections = "collections" // EdgeCollectionNodes holds the string denoting the collection_nodes edge name in mutations. EdgeCollectionNodes = "collection_nodes" // Table holds the table name of the node in the database. Table = "nodes" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "nodes" // OwnerInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. OwnerInverseTable = "accounts" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "account_id" // ParentTable is the table that holds the parent relation/edge. ParentTable = "nodes" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_node_id" // NodesTable is the table that holds the nodes relation/edge. NodesTable = "nodes" // NodesColumn is the table column denoting the nodes relation/edge. NodesColumn = "parent_node_id" // PrimaryImageTable is the table that holds the primary_image relation/edge. PrimaryImageTable = "nodes" // PrimaryImageInverseTable is the table name for the Asset entity. // It exists in this package in order to avoid circular dependency with the "asset" package. PrimaryImageInverseTable = "assets" // PrimaryImageColumn is the table column denoting the primary_image relation/edge. PrimaryImageColumn = "primary_asset_id" // AssetsTable is the table that holds the assets relation/edge. The primary key declared below. AssetsTable = "node_assets" // AssetsInverseTable is the table name for the Asset entity. // It exists in this package in order to avoid circular dependency with the "asset" package. AssetsInverseTable = "assets" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "tag_nodes" // 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 = "tags" // PropertiesTable is the table that holds the properties relation/edge. PropertiesTable = "properties" // PropertiesInverseTable is the table name for the Property entity. // It exists in this package in order to avoid circular dependency with the "property" package. PropertiesInverseTable = "properties" // PropertiesColumn is the table column denoting the properties relation/edge. PropertiesColumn = "node_id" // PropertySchemaTable is the table that holds the property_schema relation/edge. PropertySchemaTable = "nodes" // PropertySchemaInverseTable is the table name for the PropertySchema entity. // It exists in this package in order to avoid circular dependency with the "propertyschema" package. PropertySchemaInverseTable = "property_schemas" // PropertySchemaColumn is the table column denoting the property_schema relation/edge. PropertySchemaColumn = "property_schema_id" // LinkTable is the table that holds the link relation/edge. LinkTable = "nodes" // LinkInverseTable is the table name for the Link entity. // It exists in this package in order to avoid circular dependency with the "link" package. LinkInverseTable = "links" // LinkColumn is the table column denoting the link relation/edge. LinkColumn = "link_id" // ContentLinksTable is the table that holds the content_links relation/edge. The primary key declared below. ContentLinksTable = "link_node_content_references" // ContentLinksInverseTable is the table name for the Link entity. // It exists in this package in order to avoid circular dependency with the "link" package. ContentLinksInverseTable = "links" // CollectionsTable is the table that holds the collections relation/edge. The primary key declared below. CollectionsTable = "collection_nodes" // CollectionsInverseTable is the table name for the Collection entity. // It exists in this package in order to avoid circular dependency with the "collection" package. CollectionsInverseTable = "collections" // CollectionNodesTable is the table that holds the collection_nodes relation/edge. CollectionNodesTable = "collection_nodes" // CollectionNodesInverseTable is the table name for the CollectionNode entity. // It exists in this package in order to avoid circular dependency with the "collectionnode" package. CollectionNodesInverseTable = "collection_nodes" // CollectionNodesColumn is the table column denoting the collection_nodes relation/edge. CollectionNodesColumn = "node_id" )
const DefaultVisibility = VisibilityDraft
VisibilityDraft is the default value of the Visibility enum.
Variables ¶
var ( // AssetsPrimaryKey and AssetsColumn2 are the table columns denoting the // primary key for the assets relation (M2M). AssetsPrimaryKey = []string{"node_id", "asset_id"} // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"tag_id", "node_id"} // ContentLinksPrimaryKey and ContentLinksColumn2 are the table columns denoting the // primary key for the content_links relation (M2M). ContentLinksPrimaryKey = []string{"link_id", "node_id"} // CollectionsPrimaryKey and CollectionsColumn2 are the table columns denoting the // primary key for the collections relation (M2M). CollectionsPrimaryKey = []string{"collection_id", "node_id"} )
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 // DefaultHideChildTree holds the default value on creation for the "hide_child_tree" field. DefaultHideChildTree bool // DefaultSort holds the default value on creation for the "sort" field. DefaultSort func() lexorank.Key // DefaultID holds the default value on creation for the "id" field. DefaultID func() xid.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldIndexedAt, FieldName, FieldSlug, FieldDescription, FieldContent, FieldParentNodeID, FieldHideChildTree, FieldAccountID, FieldPropertySchemaID, FieldPrimaryAssetID, FieldLinkID, FieldVisibility, FieldSort, FieldMetadata, }
Columns holds all SQL columns for node fields.
Functions ¶
func AccountID ¶
AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
func AccountIDContains ¶
AccountIDContains applies the Contains predicate on the "account_id" field.
func AccountIDContainsFold ¶
AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.
func AccountIDEQ ¶
AccountIDEQ applies the EQ predicate on the "account_id" field.
func AccountIDEqualFold ¶
AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.
func AccountIDGT ¶
AccountIDGT applies the GT predicate on the "account_id" field.
func AccountIDGTE ¶
AccountIDGTE applies the GTE predicate on the "account_id" field.
func AccountIDHasPrefix ¶
AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.
func AccountIDHasSuffix ¶
AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.
func AccountIDIn ¶
AccountIDIn applies the In predicate on the "account_id" field.
func AccountIDLT ¶
AccountIDLT applies the LT predicate on the "account_id" field.
func AccountIDLTE ¶
AccountIDLTE applies the LTE predicate on the "account_id" field.
func AccountIDNEQ ¶
AccountIDNEQ applies the NEQ predicate on the "account_id" field.
func AccountIDNotIn ¶
AccountIDNotIn applies the NotIn predicate on the "account_id" field.
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIsNil ¶
ContentIsNil applies the IsNil predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotNil ¶
ContentNotNil applies the NotNil predicate on the "content" 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 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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasAssetsWith ¶
HasAssetsWith applies the HasEdge predicate on the "assets" edge with a given conditions (other predicates).
func HasCollectionNodes ¶
HasCollectionNodes applies the HasEdge predicate on the "collection_nodes" edge.
func HasCollectionNodesWith ¶
func HasCollectionNodesWith(preds ...predicate.CollectionNode) predicate.Node
HasCollectionNodesWith applies the HasEdge predicate on the "collection_nodes" edge with a given conditions (other predicates).
func HasCollections ¶
HasCollections applies the HasEdge predicate on the "collections" edge.
func HasCollectionsWith ¶
func HasCollectionsWith(preds ...predicate.Collection) predicate.Node
HasCollectionsWith applies the HasEdge predicate on the "collections" edge with a given conditions (other predicates).
func HasContentLinks ¶
HasContentLinks applies the HasEdge predicate on the "content_links" edge.
func HasContentLinksWith ¶
HasContentLinksWith applies the HasEdge predicate on the "content_links" edge with a given conditions (other predicates).
func HasLinkWith ¶
HasLinkWith applies the HasEdge predicate on the "link" edge with a given conditions (other predicates).
func HasNodesWith ¶
HasNodesWith applies the HasEdge predicate on the "nodes" 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 HasPrimaryImage ¶
HasPrimaryImage applies the HasEdge predicate on the "primary_image" edge.
func HasPrimaryImageWith ¶
HasPrimaryImageWith applies the HasEdge predicate on the "primary_image" edge with a given conditions (other predicates).
func HasProperties ¶
HasProperties applies the HasEdge predicate on the "properties" edge.
func HasPropertiesWith ¶
HasPropertiesWith applies the HasEdge predicate on the "properties" edge with a given conditions (other predicates).
func HasPropertySchema ¶
HasPropertySchema applies the HasEdge predicate on the "property_schema" edge.
func HasPropertySchemaWith ¶
func HasPropertySchemaWith(preds ...predicate.PropertySchema) predicate.Node
HasPropertySchemaWith applies the HasEdge predicate on the "property_schema" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HideChildTree ¶
HideChildTree applies equality check predicate on the "hide_child_tree" field. It's identical to HideChildTreeEQ.
func HideChildTreeEQ ¶
HideChildTreeEQ applies the EQ predicate on the "hide_child_tree" field.
func HideChildTreeNEQ ¶
HideChildTreeNEQ applies the NEQ predicate on the "hide_child_tree" field.
func IndexedAt ¶
IndexedAt applies equality check predicate on the "indexed_at" field. It's identical to IndexedAtEQ.
func IndexedAtEQ ¶
IndexedAtEQ applies the EQ predicate on the "indexed_at" field.
func IndexedAtGT ¶
IndexedAtGT applies the GT predicate on the "indexed_at" field.
func IndexedAtGTE ¶
IndexedAtGTE applies the GTE predicate on the "indexed_at" field.
func IndexedAtIn ¶
IndexedAtIn applies the In predicate on the "indexed_at" field.
func IndexedAtIsNil ¶
IndexedAtIsNil applies the IsNil predicate on the "indexed_at" field.
func IndexedAtLT ¶
IndexedAtLT applies the LT predicate on the "indexed_at" field.
func IndexedAtLTE ¶
IndexedAtLTE applies the LTE predicate on the "indexed_at" field.
func IndexedAtNEQ ¶
IndexedAtNEQ applies the NEQ predicate on the "indexed_at" field.
func IndexedAtNotIn ¶
IndexedAtNotIn applies the NotIn predicate on the "indexed_at" field.
func IndexedAtNotNil ¶
IndexedAtNotNil applies the NotNil predicate on the "indexed_at" field.
func LinkID ¶
LinkID applies equality check predicate on the "link_id" field. It's identical to LinkIDEQ.
func LinkIDContains ¶
LinkIDContains applies the Contains predicate on the "link_id" field.
func LinkIDContainsFold ¶
LinkIDContainsFold applies the ContainsFold predicate on the "link_id" field.
func LinkIDEqualFold ¶
LinkIDEqualFold applies the EqualFold predicate on the "link_id" field.
func LinkIDHasPrefix ¶
LinkIDHasPrefix applies the HasPrefix predicate on the "link_id" field.
func LinkIDHasSuffix ¶
LinkIDHasSuffix applies the HasSuffix predicate on the "link_id" field.
func LinkIDIsNil ¶
LinkIDIsNil applies the IsNil predicate on the "link_id" field.
func LinkIDNotIn ¶
LinkIDNotIn applies the NotIn predicate on the "link_id" field.
func LinkIDNotNil ¶
LinkIDNotNil applies the NotNil predicate on the "link_id" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" 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 ParentNodeID ¶
ParentNodeID applies equality check predicate on the "parent_node_id" field. It's identical to ParentNodeIDEQ.
func ParentNodeIDContains ¶
ParentNodeIDContains applies the Contains predicate on the "parent_node_id" field.
func ParentNodeIDContainsFold ¶
ParentNodeIDContainsFold applies the ContainsFold predicate on the "parent_node_id" field.
func ParentNodeIDEQ ¶
ParentNodeIDEQ applies the EQ predicate on the "parent_node_id" field.
func ParentNodeIDEqualFold ¶
ParentNodeIDEqualFold applies the EqualFold predicate on the "parent_node_id" field.
func ParentNodeIDGT ¶
ParentNodeIDGT applies the GT predicate on the "parent_node_id" field.
func ParentNodeIDGTE ¶
ParentNodeIDGTE applies the GTE predicate on the "parent_node_id" field.
func ParentNodeIDHasPrefix ¶
ParentNodeIDHasPrefix applies the HasPrefix predicate on the "parent_node_id" field.
func ParentNodeIDHasSuffix ¶
ParentNodeIDHasSuffix applies the HasSuffix predicate on the "parent_node_id" field.
func ParentNodeIDIn ¶
ParentNodeIDIn applies the In predicate on the "parent_node_id" field.
func ParentNodeIDIsNil ¶
ParentNodeIDIsNil applies the IsNil predicate on the "parent_node_id" field.
func ParentNodeIDLT ¶
ParentNodeIDLT applies the LT predicate on the "parent_node_id" field.
func ParentNodeIDLTE ¶
ParentNodeIDLTE applies the LTE predicate on the "parent_node_id" field.
func ParentNodeIDNEQ ¶
ParentNodeIDNEQ applies the NEQ predicate on the "parent_node_id" field.
func ParentNodeIDNotIn ¶
ParentNodeIDNotIn applies the NotIn predicate on the "parent_node_id" field.
func ParentNodeIDNotNil ¶
ParentNodeIDNotNil applies the NotNil predicate on the "parent_node_id" field.
func PrimaryAssetID ¶
PrimaryAssetID applies equality check predicate on the "primary_asset_id" field. It's identical to PrimaryAssetIDEQ.
func PrimaryAssetIDContains ¶
PrimaryAssetIDContains applies the Contains predicate on the "primary_asset_id" field.
func PrimaryAssetIDContainsFold ¶
PrimaryAssetIDContainsFold applies the ContainsFold predicate on the "primary_asset_id" field.
func PrimaryAssetIDEQ ¶
PrimaryAssetIDEQ applies the EQ predicate on the "primary_asset_id" field.
func PrimaryAssetIDEqualFold ¶
PrimaryAssetIDEqualFold applies the EqualFold predicate on the "primary_asset_id" field.
func PrimaryAssetIDGT ¶
PrimaryAssetIDGT applies the GT predicate on the "primary_asset_id" field.
func PrimaryAssetIDGTE ¶
PrimaryAssetIDGTE applies the GTE predicate on the "primary_asset_id" field.
func PrimaryAssetIDHasPrefix ¶
PrimaryAssetIDHasPrefix applies the HasPrefix predicate on the "primary_asset_id" field.
func PrimaryAssetIDHasSuffix ¶
PrimaryAssetIDHasSuffix applies the HasSuffix predicate on the "primary_asset_id" field.
func PrimaryAssetIDIn ¶
PrimaryAssetIDIn applies the In predicate on the "primary_asset_id" field.
func PrimaryAssetIDIsNil ¶
PrimaryAssetIDIsNil applies the IsNil predicate on the "primary_asset_id" field.
func PrimaryAssetIDLT ¶
PrimaryAssetIDLT applies the LT predicate on the "primary_asset_id" field.
func PrimaryAssetIDLTE ¶
PrimaryAssetIDLTE applies the LTE predicate on the "primary_asset_id" field.
func PrimaryAssetIDNEQ ¶
PrimaryAssetIDNEQ applies the NEQ predicate on the "primary_asset_id" field.
func PrimaryAssetIDNotIn ¶
PrimaryAssetIDNotIn applies the NotIn predicate on the "primary_asset_id" field.
func PrimaryAssetIDNotNil ¶
PrimaryAssetIDNotNil applies the NotNil predicate on the "primary_asset_id" field.
func PropertySchemaID ¶
PropertySchemaID applies equality check predicate on the "property_schema_id" field. It's identical to PropertySchemaIDEQ.
func PropertySchemaIDContains ¶
PropertySchemaIDContains applies the Contains predicate on the "property_schema_id" field.
func PropertySchemaIDContainsFold ¶
PropertySchemaIDContainsFold applies the ContainsFold predicate on the "property_schema_id" field.
func PropertySchemaIDEQ ¶
PropertySchemaIDEQ applies the EQ predicate on the "property_schema_id" field.
func PropertySchemaIDEqualFold ¶
PropertySchemaIDEqualFold applies the EqualFold predicate on the "property_schema_id" field.
func PropertySchemaIDGT ¶
PropertySchemaIDGT applies the GT predicate on the "property_schema_id" field.
func PropertySchemaIDGTE ¶
PropertySchemaIDGTE applies the GTE predicate on the "property_schema_id" field.
func PropertySchemaIDHasPrefix ¶
PropertySchemaIDHasPrefix applies the HasPrefix predicate on the "property_schema_id" field.
func PropertySchemaIDHasSuffix ¶
PropertySchemaIDHasSuffix applies the HasSuffix predicate on the "property_schema_id" field.
func PropertySchemaIDIn ¶
PropertySchemaIDIn applies the In predicate on the "property_schema_id" field.
func PropertySchemaIDIsNil ¶
PropertySchemaIDIsNil applies the IsNil predicate on the "property_schema_id" field.
func PropertySchemaIDLT ¶
PropertySchemaIDLT applies the LT predicate on the "property_schema_id" field.
func PropertySchemaIDLTE ¶
PropertySchemaIDLTE applies the LTE predicate on the "property_schema_id" field.
func PropertySchemaIDNEQ ¶
PropertySchemaIDNEQ applies the NEQ predicate on the "property_schema_id" field.
func PropertySchemaIDNotIn ¶
PropertySchemaIDNotIn applies the NotIn predicate on the "property_schema_id" field.
func PropertySchemaIDNotNil ¶
PropertySchemaIDNotNil applies the NotNil predicate on the "property_schema_id" field.
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
func SortContains ¶
SortContains applies the Contains predicate on the "sort" field.
func SortContainsFold ¶
SortContainsFold applies the ContainsFold predicate on the "sort" field.
func SortEqualFold ¶
SortEqualFold applies the EqualFold predicate on the "sort" field.
func SortHasPrefix ¶
SortHasPrefix applies the HasPrefix predicate on the "sort" field.
func SortHasSuffix ¶
SortHasSuffix applies the HasSuffix predicate on the "sort" 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).
func VisibilityEQ ¶
func VisibilityEQ(v Visibility) predicate.Node
VisibilityEQ applies the EQ predicate on the "visibility" field.
func VisibilityIn ¶
func VisibilityIn(vs ...Visibility) predicate.Node
VisibilityIn applies the In predicate on the "visibility" field.
func VisibilityNEQ ¶
func VisibilityNEQ(v Visibility) predicate.Node
VisibilityNEQ applies the NEQ predicate on the "visibility" field.
func VisibilityNotIn ¶
func VisibilityNotIn(vs ...Visibility) predicate.Node
VisibilityNotIn applies the NotIn predicate on the "visibility" field.
func VisibilityValidator ¶
func VisibilityValidator(v Visibility) error
VisibilityValidator is a validator for the "visibility" field enum values. It is called by the builders before save.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Node queries.
func ByAccountID ¶
func ByAccountID(opts ...sql.OrderTermOption) OrderOption
ByAccountID orders the results by the account_id field.
func ByAssets ¶
func ByAssets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAssets orders the results by assets terms.
func ByAssetsCount ¶
func ByAssetsCount(opts ...sql.OrderTermOption) OrderOption
ByAssetsCount orders the results by assets count.
func ByCollectionNodes ¶
func ByCollectionNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCollectionNodes orders the results by collection_nodes terms.
func ByCollectionNodesCount ¶
func ByCollectionNodesCount(opts ...sql.OrderTermOption) OrderOption
ByCollectionNodesCount orders the results by collection_nodes count.
func ByCollections ¶
func ByCollections(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCollections orders the results by collections terms.
func ByCollectionsCount ¶
func ByCollectionsCount(opts ...sql.OrderTermOption) OrderOption
ByCollectionsCount orders the results by collections count.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByContentLinks ¶
func ByContentLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByContentLinks orders the results by content_links terms.
func ByContentLinksCount ¶
func ByContentLinksCount(opts ...sql.OrderTermOption) OrderOption
ByContentLinksCount orders the results by content_links count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByHideChildTree ¶
func ByHideChildTree(opts ...sql.OrderTermOption) OrderOption
ByHideChildTree orders the results by the hide_child_tree field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIndexedAt ¶
func ByIndexedAt(opts ...sql.OrderTermOption) OrderOption
ByIndexedAt orders the results by the indexed_at field.
func ByLinkField ¶
func ByLinkField(field string, opts ...sql.OrderTermOption) OrderOption
ByLinkField orders the results by link field.
func ByLinkID ¶
func ByLinkID(opts ...sql.OrderTermOption) OrderOption
ByLinkID orders the results by the link_id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNodes ¶
func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNodes orders the results by nodes terms.
func ByNodesCount ¶
func ByNodesCount(opts ...sql.OrderTermOption) OrderOption
ByNodesCount orders the results by nodes count.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.
func ByParentNodeID ¶
func ByParentNodeID(opts ...sql.OrderTermOption) OrderOption
ByParentNodeID orders the results by the parent_node_id field.
func ByPrimaryAssetID ¶
func ByPrimaryAssetID(opts ...sql.OrderTermOption) OrderOption
ByPrimaryAssetID orders the results by the primary_asset_id field.
func ByPrimaryImageField ¶
func ByPrimaryImageField(field string, opts ...sql.OrderTermOption) OrderOption
ByPrimaryImageField orders the results by primary_image field.
func ByProperties ¶
func ByProperties(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProperties orders the results by properties terms.
func ByPropertiesCount ¶
func ByPropertiesCount(opts ...sql.OrderTermOption) OrderOption
ByPropertiesCount orders the results by properties count.
func ByPropertySchemaField ¶
func ByPropertySchemaField(field string, opts ...sql.OrderTermOption) OrderOption
ByPropertySchemaField orders the results by property_schema field.
func ByPropertySchemaID ¶
func ByPropertySchemaID(opts ...sql.OrderTermOption) OrderOption
ByPropertySchemaID orders the results by the property_schema_id field.
func BySlug ¶
func BySlug(opts ...sql.OrderTermOption) OrderOption
BySlug orders the results by the slug field.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort 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 ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVisibility ¶
func ByVisibility(opts ...sql.OrderTermOption) OrderOption
ByVisibility orders the results by the visibility field.
type Visibility ¶
type Visibility string
Visibility defines the type for the "visibility" enum field.
const ( VisibilityDraft Visibility = "draft" VisibilityUnlisted Visibility = "unlisted" VisibilityReview Visibility = "review" VisibilityPublished Visibility = "published" )
Visibility values.
func (Visibility) String ¶
func (v Visibility) String() string